@inweb/markup 26.10.1 → 26.10.3
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
|
@@ -13315,16 +13315,17 @@
|
|
|
13315
13315
|
this._markupContainer = document.createElement("div");
|
|
13316
13316
|
this._markupContainer.id = "markup-container";
|
|
13317
13317
|
this._markupContainer.style.position = "absolute";
|
|
13318
|
-
this._markupContainer.style.top = "0px";
|
|
13319
|
-
this._markupContainer.style.left = "0px";
|
|
13320
13318
|
this._markupContainer.style.outline = "0px";
|
|
13321
13319
|
this._markupContainer.style.pointerEvents = "none";
|
|
13322
13320
|
const parentDiv = this._container.parentElement;
|
|
13323
13321
|
parentDiv.appendChild(this._markupContainer);
|
|
13324
|
-
if (viewer)
|
|
13322
|
+
if (viewer) {
|
|
13325
13323
|
this._viewer.addEventListener("resize", this.resizeViewer);
|
|
13326
|
-
|
|
13324
|
+
}
|
|
13325
|
+
else {
|
|
13327
13326
|
this._resizeObserver = new ResizeObserver(debounce(this.resizeContainer, 100));
|
|
13327
|
+
this._resizeObserver.observe(parentDiv);
|
|
13328
|
+
}
|
|
13328
13329
|
this._markupColor.setColor(255, 0, 0);
|
|
13329
13330
|
this.initializeKonva();
|
|
13330
13331
|
if (this._viewer) {
|