@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.module.js
CHANGED
|
@@ -1512,7 +1512,7 @@ class KonvaMarkup {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
getViewpoint(viewpoint) {
|
|
1514
1514
|
if (!viewpoint)
|
|
1515
|
-
viewpoint = {};
|
|
1515
|
+
viewpoint = { custom_fields: {} };
|
|
1516
1516
|
viewpoint.lines = this.getMarkupLines();
|
|
1517
1517
|
viewpoint.texts = this.getMarkupTexts();
|
|
1518
1518
|
viewpoint.arrows = this.getMarkupArrows();
|
|
@@ -1520,8 +1520,8 @@ class KonvaMarkup {
|
|
|
1520
1520
|
viewpoint.ellipses = this.getMarkupEllipses();
|
|
1521
1521
|
viewpoint.images = this.getMarkupImages();
|
|
1522
1522
|
viewpoint.rectangles = this.getMarkupRectangles();
|
|
1523
|
-
viewpoint.custom_fields = { markup_color: this.getMarkupColor() };
|
|
1524
1523
|
viewpoint.snapshot = { data: this.combineMarkupWithDrawing() };
|
|
1524
|
+
viewpoint.custom_fields.markup_color = this.getMarkupColor();
|
|
1525
1525
|
return viewpoint;
|
|
1526
1526
|
}
|
|
1527
1527
|
enableEditMode(mode) {
|