vim-web 0.3.44-dev.24 → 0.3.44-dev.25
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/vim-web.iife.js
CHANGED
|
@@ -75867,6 +75867,13 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75867
75867
|
const sideOffset = useStateRef("1");
|
|
75868
75868
|
const bottomOffset = useStateRef("1");
|
|
75869
75869
|
const boxRef = React2.useRef(adapter.getBox());
|
|
75870
|
+
React2.useEffect(() => {
|
|
75871
|
+
adapter.setClip(true);
|
|
75872
|
+
adapter.setVisible(false);
|
|
75873
|
+
return adapter.onSelectionChanged.sub(() => {
|
|
75874
|
+
if (auto.get() && enable.get()) sectionSelection.call();
|
|
75875
|
+
});
|
|
75876
|
+
}, []);
|
|
75870
75877
|
enable.useOnChange((v) => {
|
|
75871
75878
|
visible2.set(v);
|
|
75872
75879
|
showOffsetPanel.set(false);
|
|
@@ -75888,12 +75895,6 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75888
75895
|
if (v) sectionSelection.call();
|
|
75889
75896
|
});
|
|
75890
75897
|
visible2.useOnChange((v) => adapter.setVisible(v));
|
|
75891
|
-
React2.useEffect(() => {
|
|
75892
|
-
adapter.setVisible(false);
|
|
75893
|
-
return adapter.onSelectionChanged.sub(() => {
|
|
75894
|
-
if (auto.get() && enable.get()) sectionSelection.call();
|
|
75895
|
-
});
|
|
75896
|
-
}, []);
|
|
75897
75898
|
const section = useArgActionRef((baseBox) => {
|
|
75898
75899
|
boxRef.current = baseBox;
|
|
75899
75900
|
const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
|
|
@@ -75946,10 +75947,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75946
75947
|
}
|
|
75947
75948
|
function useWebglSectionBox(viewer) {
|
|
75948
75949
|
const vimAdapter = {
|
|
75950
|
+
setClip: (b) => {
|
|
75951
|
+
viewer.gizmos.sectionBox.clip = b;
|
|
75952
|
+
},
|
|
75949
75953
|
setVisible: (b) => {
|
|
75950
75954
|
viewer.gizmos.sectionBox.visible = b;
|
|
75951
75955
|
viewer.gizmos.sectionBox.interactive = b;
|
|
75952
|
-
viewer.gizmos.sectionBox.clip = b;
|
|
75953
75956
|
},
|
|
75954
75957
|
getBox: () => viewer.gizmos.sectionBox.box.clone(),
|
|
75955
75958
|
fitBox: (box) => viewer.gizmos.sectionBox.fitBox(box),
|
|
@@ -76495,11 +76498,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76495
76498
|
}
|
|
76496
76499
|
function useUltraSectionBox(viewer) {
|
|
76497
76500
|
const ultraAdapter = {
|
|
76501
|
+
setClip: (b) => {
|
|
76502
|
+
viewer.sectionBox.clip = b;
|
|
76503
|
+
},
|
|
76498
76504
|
setVisible: (b) => {
|
|
76499
|
-
console.log("SetVisible!", b);
|
|
76500
76505
|
viewer.sectionBox.visible = b;
|
|
76501
76506
|
viewer.sectionBox.interactive = b;
|
|
76502
|
-
viewer.sectionBox.clip = b;
|
|
76503
76507
|
},
|
|
76504
76508
|
getBox: () => viewer.sectionBox.getBox().clone(),
|
|
76505
76509
|
fitBox: (box) => viewer.sectionBox.fitBox(box),
|