Skip to content

Commit ab8a686

Browse files
committed
Website updates
1 parent c934184 commit ab8a686

File tree

95 files changed

+1295
-406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1295
-406
lines changed

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

Lines changed: 43 additions & 7 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#L131">line 131</a>
178+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L319">line 319</a>
179179
</div>
180180

181181
</div>
@@ -237,6 +237,31 @@ <h4 class="name">
237237

238238

239239

240+
<tr class="">
241+
242+
<td class="name"><code>source</code></td>
243+
244+
245+
246+
<td class="type">
247+
248+
249+
<span class="param-type"><a href="module-ol_source_Vector-VectorSource.html">VectorSource</a></span>
250+
251+
| undefined
252+
253+
254+
</td>
255+
256+
257+
258+
<td class="description last">
259+
260+
<p>Snap to features from this source. Either this option or features should be provided</p></td>
261+
</tr>
262+
263+
264+
240265
<tr class="">
241266

242267
<td class="name"><code>edge</code></td>
@@ -348,14 +373,14 @@ <h4 class="name">
348373

349374
<tr class="">
350375

351-
<td class="name"><code>source</code></td>
376+
<td class="name"><code>segmenters</code></td>
352377

353378

354379

355380
<td class="type">
356381

357382

358-
<span class="param-type"><a href="module-ol_source_Vector-VectorSource.html">VectorSource</a></span>
383+
<span class="param-type"><a href="module-ol_interaction_Snap.html#~Segmenters">Segmenters</a></span>
359384

360385
| undefined
361386

@@ -366,7 +391,18 @@ <h4 class="name">
366391

367392
<td class="description last">
368393

369-
<p>Snap to features from this source. Either this option or features should be provided</p></td>
394+
<p>Custom segmenters by <a href="module-ol_geom_Geometry.html#~Type"><code>Type</code></a>. By default, the
395+
following segmenters are used:</p>
396+
<ul>
397+
<li><code>Point</code>: A one-dimensional segment (e.g. <code>[[10, 20]]</code>) representing the point.</li>
398+
<li><code>LineString</code>: One two-dimensional segment (e.g. <code>[[10, 20], [30, 40]]</code>) for each segment of the linestring.</li>
399+
<li><code>Polygon</code>: One two-dimensional segment for each segment of the exterior ring and the interior rings.</li>
400+
<li><code>Circle</code>: One two-dimensional segment for each segment of a regular polygon with 32 points representing the circle circumference.</li>
401+
<li><code>GeometryCollection</code>: All segments of the contained geometries.</li>
402+
<li><code>MultiPoint</code>: One one-dimensional segment for each point.</li>
403+
<li><code>MultiLineString</code>: One two-dimensional segment for each segment of the linestrings.</li>
404+
<li><code>MultiPolygon</code>: One two-dimensional segment for each segment of the polygons.</li>
405+
</ul></td>
370406
</tr>
371407

372408

@@ -558,7 +594,7 @@ <h4 class="name">
558594

559595
<div class="tag-source">
560596
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
561-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L273">line 273</a>
597+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L454">line 454</a>
562598
</div>
563599

564600
</div>
@@ -1627,7 +1663,7 @@ <h4 class="name">
16271663

16281664
<div class="tag-source">
16291665
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
1630-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L399">line 399</a>
1666+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L581">line 581</a>
16311667
</div>
16321668

16331669
</div>
@@ -2092,7 +2128,7 @@ <h4 class="name">
20922128

20932129
<div class="tag-source">
20942130
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js">interaction/Snap.js</a>,
2095-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L487">line 487</a>
2131+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Snap.js#L670">line 670</a>
20962132
</div>
20972133

20982134
</div>

0 commit comments

Comments
 (0)