@watergis/maplibre-gl-terradraw 1.3.13 → 1.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4355,7 +4355,7 @@ class Fo {
4355
4355
  * Activate Terra Draw to start drawing
4356
4356
  */
4357
4357
  activate() {
4358
- this.terradraw && (this.terradraw.enabled || (this.terradraw.start(), this.dispatchEvent("mode-changed")));
4358
+ this.terradraw && (this.terradraw.enabled || this.terradraw.start());
4359
4359
  }
4360
4360
  /**
4361
4361
  * Deactivate Terra Draw to stop drawing
@@ -4414,7 +4414,7 @@ class Fo {
4414
4414
  })) : t === "download" ? (e.classList.add(`maplibregl-terradraw-${t}-button`), e.addEventListener("click", this.handleDownload.bind(this))) : (e.classList.add(`maplibregl-terradraw-add-${t}-button`), e.addEventListener("click", () => {
4415
4415
  if (!this.terradraw) return;
4416
4416
  const i = e.classList.contains("active");
4417
- this.activate(), this.resetActiveMode(), i || (this.terradraw.setMode(t), e.classList.add("active")), this.toggleDeleteSelectionButton(), this.toggleButtonsWhenNoFeature();
4417
+ this.activate(), this.resetActiveMode(), i || (this.terradraw.setMode(t), e.classList.add("active")), this.dispatchEvent("mode-changed"), this.toggleDeleteSelectionButton(), this.toggleButtonsWhenNoFeature();
4418
4418
  })));
4419
4419
  }
4420
4420
  /**