@inweb/viewer-visualize 25.7.8 → 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.
- package/dist/viewer-visualize.js +14 -8
- package/dist/viewer-visualize.js.map +1 -1
- package/dist/viewer-visualize.min.js +1 -1
- package/dist/viewer-visualize.module.js +14 -8
- package/dist/viewer-visualize.module.js.map +1 -1
- package/lib/Viewer/Markup/Visualize/VisualizeMarkup.d.ts +2 -1
- package/package.json +5 -5
- package/src/Viewer/Markup/Visualize/VisualizeMarkup.ts +5 -1
|
@@ -1614,14 +1614,7 @@ class KonvaMarkup {
|
|
|
1614
1614
|
this._markupContainer.className = this._container.className.split(" ").filter((x => !x.startsWith("oda-cursor-"))).filter((x => x)).concat(`oda-cursor-${draggerName.toLowerCase()}`).join(" ");
|
|
1615
1615
|
this.removeTextInput();
|
|
1616
1616
|
this.removeImageInput();
|
|
1617
|
-
|
|
1618
|
-
if (konvaShape) {
|
|
1619
|
-
this._markupMode = draggerName;
|
|
1620
|
-
this._markupIsActive = true;
|
|
1621
|
-
} else {
|
|
1622
|
-
this._markupIsActive = false;
|
|
1623
|
-
this._konvaTransformer.nodes([]);
|
|
1624
|
-
}
|
|
1617
|
+
this.enableEditMode(draggerName);
|
|
1625
1618
|
};
|
|
1626
1619
|
this.resizeContainer = entries => {
|
|
1627
1620
|
var _a, _b;
|
|
@@ -1746,6 +1739,16 @@ class KonvaMarkup {
|
|
|
1746
1739
|
viewpoint.description = (new Date).toDateString();
|
|
1747
1740
|
return viewpoint;
|
|
1748
1741
|
}
|
|
1742
|
+
enableEditMode(mode) {
|
|
1743
|
+
if (!mode || !MarkupMode2Konva[mode]) {
|
|
1744
|
+
this.clearSelected();
|
|
1745
|
+
this._markupIsActive = false;
|
|
1746
|
+
} else {
|
|
1747
|
+
this._markupMode = mode;
|
|
1748
|
+
this._markupIsActive = true;
|
|
1749
|
+
}
|
|
1750
|
+
return this;
|
|
1751
|
+
}
|
|
1749
1752
|
createObject(type, params) {
|
|
1750
1753
|
let object = null;
|
|
1751
1754
|
let zIndex = this._zIndex;
|
|
@@ -5144,6 +5147,9 @@ class VisualizeMarkup {
|
|
|
5144
5147
|
viewpoint.description = (new Date).toDateString();
|
|
5145
5148
|
return viewpoint;
|
|
5146
5149
|
}
|
|
5150
|
+
enableEditMode(mode) {
|
|
5151
|
+
throw new Error("Not implemented yet");
|
|
5152
|
+
}
|
|
5147
5153
|
createObject(type, params) {
|
|
5148
5154
|
throw new Error("Not implemented yet");
|
|
5149
5155
|
}
|