@@ -137,7 +137,8 @@ <h2 class="my-3">
137137
138138 < div class ="class-description col-lg-7 align-self-center ps-0 "> < p > Allows the user to draw a vector box by clicking and dragging on the map.
139139Once drawn, the vector box can be modified by dragging its vertices or edges.
140- This interaction is only supported for mouse devices.</ p > </ div >
140+ The interaction can also be configured with an initial extent and a < code > createCondition</ code >
141+ to prevent the creation of a new extent on < code > pointerdown</ code > , if desired.</ p > </ div >
141142
142143 </ div >
143144</ header >
@@ -163,7 +164,7 @@ <h4 class="name">
163164
164165 < div class ="tag-source ">
165166 < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js "> interaction/Extent.js</ a > ,
166- < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L99 "> line 99 </ a >
167+ < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L105 "> line 105 </ a >
167168 </ div >
168169
169170 </ div >
@@ -228,6 +229,66 @@ <h4 class="name">
228229
229230
230231
232+ < tr class ="">
233+
234+ < td class ="name "> < code > createCondition</ code > </ td >
235+
236+
237+
238+ < td class ="type ">
239+
240+
241+ < span class ="param-type "> < a href ="module-ol_events_condition.html#~Condition "> Condition</ a > </ span >
242+ |
243+
244+ < span class ="param-type "> null</ span >
245+
246+
247+
248+ (defaults to null)
249+
250+
251+ </ td >
252+
253+
254+
255+ < td class ="description last ">
256+
257+ < p > A function that
258+ takes a < a href ="module-ol_MapBrowserEvent-MapBrowserEvent.html "> < code > MapBrowserEvent</ code > </ a > and returns a
259+ boolean to indicate whether that event should be handled to create a new extent.
260+ If < code > null</ code > , the < code > condition</ code > will also be used as < code > createCondition</ code > .</ p > </ td >
261+ </ tr >
262+
263+
264+
265+ < tr class ="">
266+
267+ < td class ="name "> < code > drag</ code > </ td >
268+
269+
270+
271+ < td class ="type ">
272+
273+
274+ < span class ="param-type "> boolean</ span >
275+
276+
277+
278+ (defaults to false)
279+
280+
281+ </ td >
282+
283+
284+
285+ < td class ="description last ">
286+
287+ < p > An extent can be dragged.</ p > </ td >
288+ </ tr >
289+
290+
291+
231292 < tr class ="">
232293
233294 < td class ="name "> < code > extent</ code > </ td >
@@ -1004,7 +1065,7 @@ <h4 class="name">
10041065
10051066 < div class ="tag-source ">
10061067 < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js "> interaction/Extent.js</ a > ,
1007- < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L450 "> line 450 </ a >
1068+ < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L508 "> line 508 </ a >
10081069 </ div >
10091070
10101071 </ div >
@@ -1094,7 +1155,7 @@ <h4 class="name">
10941155
10951156 < div class ="tag-source ">
10961157 < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js "> interaction/Extent.js</ a > ,
1097- < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L463 "> line 463 </ a >
1158+ < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L522 "> line 522 </ a >
10981159 </ div >
10991160
11001161 </ div >
@@ -1128,6 +1189,8 @@ <h4 class="name">
11281189
11291190
11301191
1192+ < dt class ="important tag-deprecated "> Deprecated</ dt > < dd > < ul class ="dummy "> < li > Use < a href ="module-ol_interaction_Extent-Extent.html#getExtent "> < code > getExtent</ code > </ a > instead.</ li > < ul > </ dd >
1193+
11311194
11321195
11331196
@@ -2286,7 +2349,7 @@ <h4 class="name">
22862349
22872350 < div class ="tag-source ">
22882351 < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js "> interaction/Extent.js</ a > ,
2289- < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L473 "> line 473 </ a >
2352+ < a href ="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Extent.js#L532 "> line 532 </ a >
22902353 </ div >
22912354
22922355 </ div >
0 commit comments