@inweb/markup 25.11.0 → 25.11.1
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/markup.js +3 -3
- package/dist/markup.js.map +1 -1
- package/dist/markup.min.js +1 -1
- package/dist/markup.module.js +2 -3
- package/dist/markup.module.js.map +1 -1
- package/lib/markup/IMarkup.d.ts +1 -1
- package/lib/markup/Konva/KonvaMarkup.d.ts +1 -1
- package/package.json +3 -3
- package/src/markup/IMarkup.ts +1 -1
- package/src/markup/Konva/KonvaMarkup.ts +2 -3
package/dist/markup.js
CHANGED
|
@@ -12697,8 +12697,9 @@
|
|
|
12697
12697
|
this.addImage(screenPoint, image.src, image.width, image.height, image.id);
|
|
12698
12698
|
});
|
|
12699
12699
|
}
|
|
12700
|
-
getViewpoint() {
|
|
12701
|
-
|
|
12700
|
+
getViewpoint(viewpoint) {
|
|
12701
|
+
if (!viewpoint)
|
|
12702
|
+
viewpoint = {};
|
|
12702
12703
|
viewpoint.lines = this.getMarkupLines();
|
|
12703
12704
|
viewpoint.texts = this.getMarkupTexts();
|
|
12704
12705
|
viewpoint.arrows = this.getMarkupArrows();
|
|
@@ -12708,7 +12709,6 @@
|
|
|
12708
12709
|
viewpoint.rectangles = this.getMarkupRectangles();
|
|
12709
12710
|
viewpoint.custom_fields = { markup_color: this.getMarkupColor() };
|
|
12710
12711
|
viewpoint.snapshot = { data: this.combineMarkupWithDrawing() };
|
|
12711
|
-
viewpoint.description = new Date().toDateString();
|
|
12712
12712
|
return viewpoint;
|
|
12713
12713
|
}
|
|
12714
12714
|
enableEditMode(mode) {
|