Skip to content

Commit

Permalink
[UPD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Jun 21, 2024
1 parent d1a9f23 commit b0bce65
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -28769,8 +28769,7 @@ ol.interaction.Splitter = class olinteractionSplitter extends ol.interaction.Int
* @private
*/
splitSource(feature, change) {
if (!this.getActive())
return
if (!this.getActive()) return
// Allready perform a split
if (this.splitting)
return
Expand Down Expand Up @@ -28903,6 +28902,7 @@ ol.interaction.Splitter = class olinteractionSplitter extends ol.interaction.Int
* @private
*/
onAddFeature(e) {
if (!this.getActive()) return;
this.splitSource(e.feature)
if (this.splitting) {
this.added_.push(e.feature)
Expand All @@ -28912,6 +28912,7 @@ ol.interaction.Splitter = class olinteractionSplitter extends ol.interaction.Int
* @private
*/
onRemoveFeature(e) {
if (!this.getActive()) return;
if (this.splitting) {
var n = this.added_.indexOf(e.feature)
if (n == -1) {
Expand All @@ -28925,6 +28926,7 @@ ol.interaction.Splitter = class olinteractionSplitter extends ol.interaction.Int
* @private
*/
onChangeFeature(e) {
if (!this.getActive()) return;
if (this.moving_) {
this.lastEvent_ = e
} else {
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions src/interaction/Splitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ var ol_interaction_Splitter = class olinteractionSplitter extends ol_interaction
* @private
*/
splitSource(feature, change) {
if (!this.getActive())
return
if (!this.getActive()) return

// Allready perform a split
if (this.splitting)
Expand Down Expand Up @@ -280,6 +279,8 @@ var ol_interaction_Splitter = class olinteractionSplitter extends ol_interaction
* @private
*/
onAddFeature(e) {
if (!this.getActive()) return;

this.splitSource(e.feature)
if (this.splitting) {
this.added_.push(e.feature)
Expand All @@ -289,6 +290,8 @@ var ol_interaction_Splitter = class olinteractionSplitter extends ol_interaction
* @private
*/
onRemoveFeature(e) {
if (!this.getActive()) return;

if (this.splitting) {
var n = this.added_.indexOf(e.feature)
if (n == -1) {
Expand All @@ -302,6 +305,8 @@ var ol_interaction_Splitter = class olinteractionSplitter extends ol_interaction
* @private
*/
onChangeFeature(e) {
if (!this.getActive()) return;

if (this.moving_) {
this.lastEvent_ = e
} else {
Expand Down

0 comments on commit b0bce65

Please sign in to comment.