Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Dec 31, 2024
1 parent 4f2016f commit 8174ff2
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/en/main/apidoc/module-ol_interaction_Modify-Modify.html
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1621">line 1621</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1632">line 1632</a>
</div>

</div>
Expand Down Expand Up @@ -794,7 +794,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1429">line 1429</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1440">line 1440</a>
</div>

</div>
Expand Down Expand Up @@ -1892,7 +1892,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1654">line 1654</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1665">line 1665</a>
</div>

</div>
Expand Down Expand Up @@ -2362,7 +2362,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1460">line 1460</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1471">line 1471</a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/interaction/Modify.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/en/main/ol/interaction/Modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,17 @@ class Modify extends PointerInteraction {
const squaredDist2 = squaredCoordinateDistance(vertexPixel, pixel2);
dist = Math.sqrt(Math.min(squaredDist1, squaredDist2));
this.snappedToVertex_ = dist <= this.pixelTolerance_;
// Stop and cleanup overlay vertex feature if a segment was hit and new vertex creation is not allowed by the insertVertexCondition
if (
!this.snappedToVertex_ &&
!this.insertVertexCondition_(this.lastPointerEvent_)
) {
if (this.vertexFeature_) {
this.overlay_.getSource().removeFeature(this.vertexFeature_);
this.vertexFeature_ = null;
}
return;
}
if (this.snappedToVertex_) {
vertex =
squaredDist1 > squaredDist2
Expand Down

0 comments on commit 8174ff2

Please sign in to comment.