Skip to content

Commit 7938b38

Browse files
committed
Website updates
1 parent 3bfa7ba commit 7938b38

18 files changed

+230
-28
lines changed

dist/en/main/apidoc/module-ol_interaction_Snap-Snap.html

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h4 class="name">
175175

176176
<div class="tag-source">
177177
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
178-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L119">line 119</a>
178+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L131">line 131</a>
179179
</div>
180180

181181
</div>
@@ -291,6 +291,33 @@ <h4 class="name">
291291

292292

293293

294+
<tr class="">
295+
296+
<td class="name"><code>intersection</code></td>
297+
298+
299+
300+
<td class="type">
301+
302+
303+
<span class="param-type">boolean</span>
304+
305+
306+
307+
(defaults to false)
308+
309+
310+
</td>
311+
312+
313+
314+
<td class="description last">
315+
316+
<p>Snap to intersections between segments.</p></td>
317+
</tr>
318+
319+
320+
294321
<tr class="">
295322

296323
<td class="name"><code>pixelTolerance</code></td>
@@ -531,7 +558,7 @@ <h4 class="name">
531558

532559
<div class="tag-source">
533560
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
534-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L254">line 254</a>
561+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L273">line 273</a>
535562
</div>
536563

537564
</div>
@@ -1600,7 +1627,7 @@ <h4 class="name">
16001627

16011628
<div class="tag-source">
16021629
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
1603-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L326">line 326</a>
1630+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L399">line 399</a>
16041631
</div>
16051632

16061633
</div>
@@ -2065,7 +2092,7 @@ <h4 class="name">
20652092

20662093
<div class="tag-source">
20672094
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
2068-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L414">line 414</a>
2095+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L487">line 487</a>
20692096
</div>
20702097

20712098
</div>

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,31 @@ <h5 class="subsection-title">Properties:</h5>
289289

290290

291291

292+
<tr>
293+
294+
<td class="name"><code>intersection</code></td>
295+
296+
297+
<td class="type">
298+
299+
300+
<span class="param-type">boolean</span>
301+
302+
303+
304+
<br>(defaults to false)
305+
306+
307+
</td>
308+
309+
<td class="description last">
310+
<p>Snap to intersections between segments.</p>
311+
312+
</td>
313+
</tr>
314+
315+
316+
292317
<tr>
293318

294319
<td class="name"><code>pixelTolerance</code></td>
@@ -627,6 +652,29 @@ <h5 class="subsection-title">Properties:</h5>
627652
</tr>
628653

629654

655+
656+
<tr>
657+
658+
<td class="name"><code>isIntersection</code></td>
659+
660+
661+
<td class="type">
662+
663+
664+
<span class="param-type">boolean</span>
665+
666+
| undefined
667+
668+
669+
</td>
670+
671+
<td class="description last">
672+
<p>Is intersection.</p>
673+
674+
</td>
675+
</tr>
676+
677+
630678
</tbody>
631679
</table></dl>
632680

dist/en/main/examples/common.js

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/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/examples/offscreen-canvas.worker.worker.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/examples/snap.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h5 class="modal-title" id="tag-example-title"></h5>
289289

290290
<div class="row-fluid">
291291
<p id="shortdesc">Example of using the snap interaction together with draw and modify interactions.</p>
292-
<div id="docs"><p>Example of using the snap interaction together with draw and modify interactions. The snap interaction must be added last, as it needs to be the first to handle the <code>pointermove</code> event.</p></p>
292+
<div id="docs"><p>Example of using the snap interaction together with draw and modify interactions. The snap interaction must be added last, as it needs to be the first to handle the <code>pointermove</code> event.</p> By default, the Snap interaction snaps to edges (<code>edge: true</code>) and vertices (<code>vertex: true</code>). It can also be configured to snap to intersections between edges, which is done here with the <code>intersection: true</code> option.</p>
293293
</div>
294294
</div>
295295

@@ -432,6 +432,7 @@ <h5 class="source-heading">main.js</h5>
432432
// are responsible of doing the snapping.
433433
const snap &#x3D; new Snap({
434434
source: vector.getSource(),
435+
intersection: true,
435436
});
436437

437438
const snappedElement &#x3D; document.getElementById(&#x27;snapped&#x27;);

dist/en/main/examples/snap.js

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

0 commit comments

Comments
 (0)