@inweb/markup 26.12.5 → 26.12.7

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
@@ -12855,7 +12855,7 @@ js: import "konva/skia-backend";
12855
12855
  }
12856
12856
  getViewpoint(viewpoint) {
12857
12857
  if (!viewpoint)
12858
- viewpoint = {};
12858
+ viewpoint = { custom_fields: {} };
12859
12859
  viewpoint.lines = this.getMarkupLines();
12860
12860
  viewpoint.texts = this.getMarkupTexts();
12861
12861
  viewpoint.arrows = this.getMarkupArrows();
@@ -12863,8 +12863,8 @@ js: import "konva/skia-backend";
12863
12863
  viewpoint.ellipses = this.getMarkupEllipses();
12864
12864
  viewpoint.images = this.getMarkupImages();
12865
12865
  viewpoint.rectangles = this.getMarkupRectangles();
12866
- viewpoint.custom_fields = { markup_color: this.getMarkupColor() };
12867
12866
  viewpoint.snapshot = { data: this.combineMarkupWithDrawing() };
12867
+ viewpoint.custom_fields.markup_color = this.getMarkupColor();
12868
12868
  return viewpoint;
12869
12869
  }
12870
12870
  enableEditMode(mode) {