@archvisioninc/canvas 2.8.3 → 2.8.5
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.
|
@@ -52,6 +52,7 @@ export const initSceneObjects = () => {
|
|
|
52
52
|
checkForRootNode();
|
|
53
53
|
};
|
|
54
54
|
const initHighlightManagers = () => {
|
|
55
|
+
if (props.integration?.meshHighlighting === false) return;
|
|
55
56
|
highlightManager = newHighlightManager('selectHighlightManager');
|
|
56
57
|
hoverHighlightManager = newHighlightManager('hoverHighlightManager');
|
|
57
58
|
};
|
|
@@ -631,13 +631,18 @@ export const takePreviewScreenshots = () => {
|
|
|
631
631
|
scaleGizmoEnabled
|
|
632
632
|
} = gizmoManager;
|
|
633
633
|
const toggleUI = restore => {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
634
|
+
const setVisibility = (object, isVisible) => {
|
|
635
|
+
if (object !== null && object !== undefined) {
|
|
636
|
+
object.isVisible = isVisible;
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
setVisibility(mirrorGround, restore ? mirrorGroundVisible : false);
|
|
640
|
+
setVisibility(ground, restore ? groundVisible : false);
|
|
641
|
+
setVisibility(xAxisMesh, restore ? axesVisible : false);
|
|
642
|
+
setVisibility(yAxisMesh, restore ? axesVisible : false);
|
|
643
|
+
setVisibility(zAxisMesh, restore ? axesVisible : false);
|
|
644
|
+
setVisibility(hdrSkyBox, restore ? skyBoxVisible : false);
|
|
645
|
+
setVisibility(outerFrame, restore ? frameVisible : false);
|
|
641
646
|
gizmoManager.positionGizmoEnabled = restore ? positionGizmoEnabled : false;
|
|
642
647
|
gizmoManager.rotationGizmoEnabled = restore ? rotationGizmoEnabled : false;
|
|
643
648
|
gizmoManager.boundingBoxGizmoEnabled = restore ? boundingBoxGizmoEnabled : false;
|
package/package.json
CHANGED
|
@@ -97,6 +97,8 @@ export const initSceneObjects = () => {
|
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
const initHighlightManagers = () => {
|
|
100
|
+
if (props.integration?.meshHighlighting === false) return;
|
|
101
|
+
|
|
100
102
|
highlightManager = newHighlightManager('selectHighlightManager');
|
|
101
103
|
hoverHighlightManager = newHighlightManager('hoverHighlightManager');
|
|
102
104
|
};
|
|
@@ -696,13 +696,19 @@ export const takePreviewScreenshots = () => {
|
|
|
696
696
|
} = gizmoManager;
|
|
697
697
|
|
|
698
698
|
const toggleUI = restore => {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
699
|
+
const setVisibility = (object, isVisible) => {
|
|
700
|
+
if (object !== null && object !== undefined) {
|
|
701
|
+
object.isVisible = isVisible;
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
setVisibility(mirrorGround, restore ? mirrorGroundVisible : false);
|
|
706
|
+
setVisibility(ground, restore ? groundVisible : false);
|
|
707
|
+
setVisibility(xAxisMesh, restore ? axesVisible : false);
|
|
708
|
+
setVisibility(yAxisMesh, restore ? axesVisible : false);
|
|
709
|
+
setVisibility(zAxisMesh, restore ? axesVisible : false);
|
|
710
|
+
setVisibility(hdrSkyBox, restore ? skyBoxVisible : false);
|
|
711
|
+
setVisibility(outerFrame, restore ? frameVisible : false);
|
|
706
712
|
|
|
707
713
|
gizmoManager.positionGizmoEnabled = restore ? positionGizmoEnabled : false;
|
|
708
714
|
gizmoManager.rotationGizmoEnabled = restore ? rotationGizmoEnabled : false;
|