@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.
@@ -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
- const viewpoint = {};
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) {