@inweb/viewer-three 27.1.7 → 27.1.8
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/viewer-three.js +12 -2
- package/dist/viewer-three.js.map +1 -1
- package/dist/viewer-three.min.js +1 -1
- package/package.json +5 -5
package/dist/viewer-three.js
CHANGED
|
@@ -56779,8 +56779,18 @@ js: import "konva/skia-backend";
|
|
|
56779
56779
|
getSelectedObjects() {
|
|
56780
56780
|
if (!this._konvaTransformer)
|
|
56781
56781
|
return [];
|
|
56782
|
-
|
|
56783
|
-
|
|
56782
|
+
const validNodes = this._konvaTransformer.nodes().filter((ref) => {
|
|
56783
|
+
try {
|
|
56784
|
+
return ref.getLayer() !== null && ref.getParent() !== null;
|
|
56785
|
+
}
|
|
56786
|
+
catch {
|
|
56787
|
+
return false;
|
|
56788
|
+
}
|
|
56789
|
+
});
|
|
56790
|
+
if (validNodes.length !== this._konvaTransformer.nodes().length) {
|
|
56791
|
+
this._konvaTransformer.nodes(validNodes);
|
|
56792
|
+
}
|
|
56793
|
+
return validNodes
|
|
56784
56794
|
.map((ref) => {
|
|
56785
56795
|
const name = ref.className;
|
|
56786
56796
|
const konvaShape = Object.values(MarkupMode2Konva).find((shape) => shape.name === name);
|