@inweb/viewer-visualize 25.7.9 → 25.7.10

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.
@@ -13052,14 +13052,7 @@
13052
13052
  this._markupContainer.className = this._container.className.split(" ").filter((x => !x.startsWith("oda-cursor-"))).filter((x => x)).concat(`oda-cursor-${draggerName.toLowerCase()}`).join(" ");
13053
13053
  this.removeTextInput();
13054
13054
  this.removeImageInput();
13055
- const konvaShape = MarkupMode2Konva[draggerName];
13056
- if (konvaShape) {
13057
- this._markupMode = draggerName;
13058
- this._markupIsActive = true;
13059
- } else {
13060
- this._markupIsActive = false;
13061
- this._konvaTransformer.nodes([]);
13062
- }
13055
+ this.enableEditMode(draggerName);
13063
13056
  };
13064
13057
  this.resizeContainer = entries => {
13065
13058
  var _a, _b;
@@ -13184,6 +13177,16 @@
13184
13177
  viewpoint.description = (new Date).toDateString();
13185
13178
  return viewpoint;
13186
13179
  }
13180
+ enableEditMode(mode) {
13181
+ if (!mode || !MarkupMode2Konva[mode]) {
13182
+ this.clearSelected();
13183
+ this._markupIsActive = false;
13184
+ } else {
13185
+ this._markupMode = mode;
13186
+ this._markupIsActive = true;
13187
+ }
13188
+ return this;
13189
+ }
13187
13190
  createObject(type, params) {
13188
13191
  let object = null;
13189
13192
  let zIndex = this._zIndex;
@@ -16618,6 +16621,9 @@
16618
16621
  viewpoint.description = new Date().toDateString();
16619
16622
  return viewpoint;
16620
16623
  }
16624
+ enableEditMode(mode) {
16625
+ throw new Error("Not implemented yet");
16626
+ }
16621
16627
  createObject(type, params) {
16622
16628
  throw new Error("Not implemented yet");
16623
16629
  }