vim-web 0.3.44-dev.60 → 0.3.44-dev.61
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/types/react-viewers/panels/messageBox.d.ts +1 -1
- package/dist/types/react-viewers/panels/modal.d.ts +1 -1
- package/dist/types/react-viewers/state/sharedIsolation.d.ts +3 -1
- package/dist/vim-web.iife.js +18 -11
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +18 -11
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -75362,6 +75362,7 @@ const Modal = forwardRef((props, ref) => {
|
|
|
75362
75362
|
const getActiveState = () => {
|
|
75363
75363
|
return (state == null ? void 0 : state[0]) ?? (state == null ? void 0 : state[1]) ?? (state == null ? void 0 : state[2]);
|
|
75364
75364
|
};
|
|
75365
|
+
console.log("REnder Modal and setup Imperative handle");
|
|
75365
75366
|
useImperativeHandle(ref, () => ({
|
|
75366
75367
|
getActiveState,
|
|
75367
75368
|
loading(content2) {
|
|
@@ -75740,18 +75741,28 @@ function useSharedIsolation(adapter) {
|
|
|
75740
75741
|
const showRooms = useStateRef(false);
|
|
75741
75742
|
const showGhost = useStateRef(false);
|
|
75742
75743
|
const ghostOpacity = useStateRef(() => adapter.getGhostOpacity().toFixed(4));
|
|
75744
|
+
const onAutoIsolate = useFuncRef(() => {
|
|
75745
|
+
if (adapter.hasSelection()) {
|
|
75746
|
+
adapter.isolateSelection();
|
|
75747
|
+
} else {
|
|
75748
|
+
adapter.showAll();
|
|
75749
|
+
}
|
|
75750
|
+
});
|
|
75751
|
+
const onVisibilityChange = useFuncRef(() => {
|
|
75752
|
+
visibility.set(adapter.computeVisibility());
|
|
75753
|
+
});
|
|
75743
75754
|
useEffect(() => {
|
|
75744
75755
|
adapter.showGhost(showGhost.get());
|
|
75745
75756
|
adapter.onVisibilityChange.sub(() => {
|
|
75746
|
-
|
|
75757
|
+
onVisibilityChange.call();
|
|
75747
75758
|
});
|
|
75748
75759
|
adapter.onSelectionChanged.sub(() => {
|
|
75749
|
-
if (autoIsolate2.get()) onAutoIsolate(
|
|
75760
|
+
if (autoIsolate2.get()) onAutoIsolate.call();
|
|
75750
75761
|
});
|
|
75751
75762
|
}, []);
|
|
75752
75763
|
ghostOpacity.useConfirm((v) => sanitize(v, true, 0.04));
|
|
75753
75764
|
autoIsolate2.useOnChange((v) => {
|
|
75754
|
-
if (v) onAutoIsolate(
|
|
75765
|
+
if (v) onAutoIsolate.call();
|
|
75755
75766
|
});
|
|
75756
75767
|
showGhost.useOnChange((v) => adapter.showGhost(v));
|
|
75757
75768
|
showRooms.useOnChange((v) => adapter.setShowRooms(v));
|
|
@@ -75763,16 +75774,11 @@ function useSharedIsolation(adapter) {
|
|
|
75763
75774
|
showPanel,
|
|
75764
75775
|
showGhost,
|
|
75765
75776
|
showRooms,
|
|
75766
|
-
ghostOpacity
|
|
75777
|
+
ghostOpacity,
|
|
75778
|
+
onAutoIsolate,
|
|
75779
|
+
onVisibilityChange
|
|
75767
75780
|
};
|
|
75768
75781
|
}
|
|
75769
|
-
function onAutoIsolate(adapter) {
|
|
75770
|
-
if (adapter.hasSelection()) {
|
|
75771
|
-
adapter.isolateSelection();
|
|
75772
|
-
} else {
|
|
75773
|
-
adapter.showAll();
|
|
75774
|
-
}
|
|
75775
|
-
}
|
|
75776
75782
|
function useWebglIsolation(viewer) {
|
|
75777
75783
|
const adapter = createWebglIsolationAdapter(viewer);
|
|
75778
75784
|
return useSharedIsolation(adapter);
|
|
@@ -75922,6 +75928,7 @@ function Viewer$1(props) {
|
|
|
75922
75928
|
props.viewer.viewport.canvas.tabIndex = 0;
|
|
75923
75929
|
applyWebglBindings(props.viewer, camera2, isolationRef, side);
|
|
75924
75930
|
const subContext = props.viewer.inputs.onContextMenu.subscribe(showContextMenu);
|
|
75931
|
+
console.log("ON MOUNT");
|
|
75925
75932
|
props.onMount({
|
|
75926
75933
|
container: props.container,
|
|
75927
75934
|
core: props.viewer,
|