vim-web 0.3.44-dev.35 → 0.3.44-dev.36
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.
|
@@ -13,7 +13,8 @@ export interface SectionBoxRef {
|
|
|
13
13
|
auto: StateRef<boolean>;
|
|
14
14
|
sectionSelection: AsyncFuncRef<void>;
|
|
15
15
|
sectionReset: AsyncFuncRef<void>;
|
|
16
|
-
|
|
16
|
+
sectionBox: ArgActionRef<THREE.Box3>;
|
|
17
|
+
getBox: () => THREE.Box3;
|
|
17
18
|
showOffsetPanel: StateRef<boolean>;
|
|
18
19
|
topOffset: StateRef<string>;
|
|
19
20
|
sideOffset: StateRef<string>;
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -75922,14 +75922,14 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75922
75922
|
topOffset.useConfirm((v) => sanitize(v, true));
|
|
75923
75923
|
sideOffset.useConfirm((v) => sanitize(v, true));
|
|
75924
75924
|
bottomOffset.useConfirm((v) => sanitize(v, true));
|
|
75925
|
-
topOffset.useOnChange((v) =>
|
|
75926
|
-
sideOffset.useOnChange((v) =>
|
|
75927
|
-
bottomOffset.useOnChange((v) =>
|
|
75925
|
+
topOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
|
|
75926
|
+
sideOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
|
|
75927
|
+
bottomOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
|
|
75928
75928
|
auto.useOnChange((v) => {
|
|
75929
75929
|
if (v) sectionSelection.call();
|
|
75930
75930
|
});
|
|
75931
75931
|
visible2.useOnChange((v) => adapter.setVisible(v));
|
|
75932
|
-
const
|
|
75932
|
+
const sectionBox2 = useArgActionRef((baseBox) => {
|
|
75933
75933
|
if (baseBox === void 0) return;
|
|
75934
75934
|
boxRef.current = baseBox;
|
|
75935
75935
|
const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
|
|
@@ -75938,14 +75938,14 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75938
75938
|
const sectionSelection = useFuncRef(async () => {
|
|
75939
75939
|
try {
|
|
75940
75940
|
const box = await adapter.getSelectionBox() ?? await adapter.getRendererBox();
|
|
75941
|
-
|
|
75941
|
+
sectionBox2.call(box);
|
|
75942
75942
|
} catch (e) {
|
|
75943
75943
|
console.error(e);
|
|
75944
75944
|
}
|
|
75945
75945
|
});
|
|
75946
75946
|
const sectionReset = useFuncRef(async () => {
|
|
75947
75947
|
const box = await adapter.getRendererBox();
|
|
75948
|
-
|
|
75948
|
+
sectionBox2.call(box);
|
|
75949
75949
|
});
|
|
75950
75950
|
return {
|
|
75951
75951
|
enable,
|
|
@@ -75957,7 +75957,8 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75957
75957
|
bottomOffset,
|
|
75958
75958
|
sectionSelection,
|
|
75959
75959
|
sectionReset,
|
|
75960
|
-
|
|
75960
|
+
sectionBox: sectionBox2,
|
|
75961
|
+
getBox: () => adapter.getBox()
|
|
75961
75962
|
};
|
|
75962
75963
|
}
|
|
75963
75964
|
const sanitize = (value, strict) => {
|