@inweb/markup 26.5.4 → 26.6.0

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
@@ -13499,6 +13499,8 @@
13499
13499
  this.enableEditMode(draggerName);
13500
13500
  };
13501
13501
  this.resizeContainer = (entries) => {
13502
+ if (!entries || !entries[0] || !entries[0].contentRect)
13503
+ return;
13502
13504
  const { width, height } = entries[0].contentRect;
13503
13505
  if (!width || !height)
13504
13506
  return; // <- invisible container, or container with parent removed
@@ -13608,6 +13610,7 @@
13608
13610
  this.redirectToViewer({ type: "changemarkupcolor", data: { r, g, b } });
13609
13611
  }
13610
13612
  colorizeAllMarkup(r, g, b) {
13613
+ this.setMarkupColor(r, g, b);
13611
13614
  const hexColor = new MarkupColor(r, g, b).asHex();
13612
13615
  this.getObjects().filter((obj) => { var _a; return (_a = obj.setColor) === null || _a === undefined ? undefined : _a.call(obj, hexColor); });
13613
13616
  }