Skip to content

Commit 62db744

Browse files
committed
Website updates
1 parent 9c82619 commit 62db744

File tree

7 files changed

+40
-12
lines changed

7 files changed

+40
-12
lines changed

dist/en/main/apidoc/module-ol_interaction_Modify-Modify.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ <h4 class="name">
177177

178178
<div class="tag-source">
179179
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
180-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L232">line 232</a>
180+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L240">line 240</a>
181181
</div>
182182

183183
</div>
@@ -267,7 +267,13 @@ <h4 class="name">
267267
that takes a <a href="module-ol_MapBrowserEvent-MapBrowserEvent.html"><code>MapBrowserEvent</code></a> and returns a
268268
boolean to indicate whether that event should be handled. By default,
269269
<a href="module-ol_events_condition.html#.singleClick"><code>singleClick</code></a> with
270-
<a href="module-ol_events_condition.html#.altKeyOnly"><code>altKeyOnly</code></a> results in a vertex deletion.</p></td>
270+
<a href="module-ol_events_condition.html#.altKeyOnly"><code>altKeyOnly</code></a> results in a vertex deletion.
271+
This combination is handled by wrapping the two condition checks in a single function:</p>
272+
<pre class="prettyprint source lang-js"><code>import { altKeyOnly, singleClick } from 'ol/events/condition.js';
273+
274+
function (event) {
275+
return altKeyOnly(event) && singleClick(event)
276+
}</code></pre></td>
271277
</tr>
272278

273279

@@ -761,7 +767,7 @@ <h4 class="name">
761767

762768
<div class="tag-source">
763769
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
764-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L2024">line 2024</a>
770+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L2032">line 2032</a>
765771
</div>
766772

767773
</div>
@@ -852,7 +858,7 @@ <h4 class="name">
852858

853859
<div class="tag-source">
854860
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
855-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1832">line 1832</a>
861+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1840">line 1840</a>
856862
</div>
857863

858864
</div>
@@ -1582,7 +1588,7 @@ <h4 class="name">
15821588

15831589
<div class="tag-source">
15841590
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
1585-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L632">line 632</a>
1591+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L640">line 640</a>
15861592
</div>
15871593

15881594
</div>
@@ -1950,7 +1956,7 @@ <h4 class="name">
19501956

19511957
<div class="tag-source">
19521958
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
1953-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L2057">line 2057</a>
1959+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L2065">line 2065</a>
19541960
</div>
19551961

19561962
</div>
@@ -2420,7 +2426,7 @@ <h4 class="name">
24202426

24212427
<div class="tag-source">
24222428
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
2423-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1863">line 1863</a>
2429+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1871">line 1871</a>
24242430
</div>
24252431

24262432
</div>
@@ -2734,7 +2740,7 @@ <h4 class="name">
27342740

27352741
<div class="tag-source">
27362742
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
2737-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L607">line 607</a>
2743+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L615">line 615</a>
27382744
</div>
27392745

27402746
</div>

dist/en/main/apidoc/module-ol_interaction_Modify.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,13 @@ <h5 class="subsection-title">Properties:</h5>
311311
that takes a <a href="module-ol_MapBrowserEvent-MapBrowserEvent.html"><code>MapBrowserEvent</code></a> and returns a
312312
boolean to indicate whether that event should be handled. By default,
313313
<a href="module-ol_events_condition.html#.singleClick"><code>singleClick</code></a> with
314-
<a href="module-ol_events_condition.html#.altKeyOnly"><code>altKeyOnly</code></a> results in a vertex deletion.</p>
314+
<a href="module-ol_events_condition.html#.altKeyOnly"><code>altKeyOnly</code></a> results in a vertex deletion.
315+
This combination is handled by wrapping the two condition checks in a single function:</p>
316+
<pre class="prettyprint source lang-js"><code>import { altKeyOnly, singleClick } from 'ol/events/condition.js';
317+
318+
function (event) {
319+
return altKeyOnly(event) && singleClick(event)
320+
}</code></pre>
315321

316322
</td>
317323
</tr>

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/interaction/Modify.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ export type Options = {
6868
* boolean to indicate whether that event should be handled. By default,
6969
* {@link module :ol/events/condition.singleClick} with
7070
* {@link module :ol/events/condition.altKeyOnly} results in a vertex deletion.
71+
* This combination is handled by wrapping the two condition checks in a single function:
72+
* ```js
73+
* import { altKeyOnly, singleClick } from 'ol/events/condition.js';
74+
*
75+
* function (event) {
76+
* return altKeyOnly(event) && singleClick(event)
77+
* }
78+
* ```
7179
*/
7280
deleteCondition?: import("../events/condition.js").Condition | undefined;
7381
/**

dist/en/main/ol/interaction/Modify.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/interaction/Modify.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ const ModifyEventType = {
110110
* boolean to indicate whether that event should be handled. By default,
111111
* {@link module:ol/events/condition.singleClick} with
112112
* {@link module:ol/events/condition.altKeyOnly} results in a vertex deletion.
113+
* This combination is handled by wrapping the two condition checks in a single function:
114+
* ```js
115+
* import { altKeyOnly, singleClick } from 'ol/events/condition.js';
116+
*
117+
* function (event) {
118+
* return altKeyOnly(event) && singleClick(event)
119+
* }
120+
* ```
113121
* @property {import("../events/condition.js").Condition} [insertVertexCondition] A
114122
* function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and
115123
* returns a boolean to indicate whether a new vertex should be added to the sketch

0 commit comments

Comments
 (0)