@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/markup",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.6.0",
|
|
4
4
|
"description": "JavaScript 2D markups",
|
|
5
5
|
"homepage": "https://cloud.opendesign.com/docs/index.html",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"docs": "typedoc"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@inweb/eventemitter2": "~26.
|
|
30
|
-
"@inweb/viewer-core": "~26.
|
|
29
|
+
"@inweb/eventemitter2": "~26.6.0",
|
|
30
|
+
"@inweb/viewer-core": "~26.6.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"konva": "^9.3.18"
|
|
@@ -208,6 +208,7 @@ export class KonvaMarkup implements IMarkup {
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
resizeContainer = (entries: ResizeObserverEntry[]) => {
|
|
211
|
+
if (!entries || !entries[0] || !entries[0].contentRect) return;
|
|
211
212
|
const { width, height } = entries[0].contentRect;
|
|
212
213
|
|
|
213
214
|
if (!width || !height) return; // <- invisible container, or container with parent removed
|
|
@@ -270,6 +271,7 @@ export class KonvaMarkup implements IMarkup {
|
|
|
270
271
|
}
|
|
271
272
|
|
|
272
273
|
colorizeAllMarkup(r: number, g: number, b: number): void {
|
|
274
|
+
this.setMarkupColor(r, g, b);
|
|
273
275
|
const hexColor = new MarkupColor(r, g, b).asHex();
|
|
274
276
|
this.getObjects().filter((obj: any) => obj.setColor?.(hexColor));
|
|
275
277
|
}
|