@inweb/markup 25.11.0 → 25.11.2
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.module.js
CHANGED
|
@@ -1163,8 +1163,8 @@ class KonvaMarkup {
|
|
|
1163
1163
|
this.addImage(screenPoint, image.src, image.width, image.height, image.id);
|
|
1164
1164
|
}));
|
|
1165
1165
|
}
|
|
1166
|
-
getViewpoint() {
|
|
1167
|
-
|
|
1166
|
+
getViewpoint(viewpoint) {
|
|
1167
|
+
if (!viewpoint) viewpoint = {};
|
|
1168
1168
|
viewpoint.lines = this.getMarkupLines();
|
|
1169
1169
|
viewpoint.texts = this.getMarkupTexts();
|
|
1170
1170
|
viewpoint.arrows = this.getMarkupArrows();
|
|
@@ -1178,7 +1178,6 @@ class KonvaMarkup {
|
|
|
1178
1178
|
viewpoint.snapshot = {
|
|
1179
1179
|
data: this.combineMarkupWithDrawing()
|
|
1180
1180
|
};
|
|
1181
|
-
viewpoint.description = (new Date).toDateString();
|
|
1182
1181
|
return viewpoint;
|
|
1183
1182
|
}
|
|
1184
1183
|
enableEditMode(mode) {
|