vim-web 0.3.44-dev.10 → 0.3.44-dev.12
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 +4 -6
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +4 -6
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -75863,11 +75863,9 @@ function useSectionBox(adapter) {
|
|
|
75863
75863
|
topOffset.useConfirm((v) => sanitize(v, true));
|
|
75864
75864
|
sideOffset.useConfirm((v) => sanitize(v, true));
|
|
75865
75865
|
bottomOffset.useConfirm((v) => sanitize(v, true));
|
|
75866
|
-
|
|
75867
|
-
|
|
75868
|
-
|
|
75869
|
-
);
|
|
75870
|
-
useEffect(() => section(boxRef.current), [offsetBox]);
|
|
75866
|
+
topOffset.useRegister((v) => section(boxRef.current));
|
|
75867
|
+
sideOffset.useRegister((v) => section(boxRef.current));
|
|
75868
|
+
bottomOffset.useRegister((v) => section(boxRef.current));
|
|
75871
75869
|
auto.useRegister((v) => {
|
|
75872
75870
|
if (v) sectionSelection();
|
|
75873
75871
|
});
|
|
@@ -75879,7 +75877,7 @@ function useSectionBox(adapter) {
|
|
|
75879
75877
|
visible2.useRegister((v) => adapter.setVisible(v));
|
|
75880
75878
|
const section = (baseBox) => {
|
|
75881
75879
|
boxRef.current = baseBox;
|
|
75882
|
-
const newBox = addBox(baseBox,
|
|
75880
|
+
const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
|
|
75883
75881
|
adapter.fitBox(newBox);
|
|
75884
75882
|
};
|
|
75885
75883
|
const sectionSelection = async () => {
|