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