vim-web 0.3.44-dev.38 → 0.3.44-dev.39

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.
@@ -28,6 +28,6 @@ export declare class SectionBox {
28
28
  * @param box - The new bounding box.
29
29
  */
30
30
  fitBox(box: Box3): void;
31
- getBox(): Box3;
31
+ getBox(): Box3 | undefined;
32
32
  dispose(): void;
33
33
  }
@@ -57,11 +57,10 @@ export declare class SectionBox {
57
57
  */
58
58
  constructor(viewer: Viewer);
59
59
  /**
60
- * The shared bounding box that defines the section region.
61
- *
62
- * To programmatically update the box, see {@link fitBox}.
60
+ * Returns a copy of the current section box.
61
+ * To programmatically update the box, see {@link setBox}.
63
62
  */
64
- get box(): THREE.Box3;
63
+ getBox(): THREE.Box3;
65
64
  /**
66
65
  * Determines whether the section gizmo applies clipping planes to the model.
67
66
  *
@@ -88,7 +87,7 @@ export declare class SectionBox {
88
87
  * @param box - The bounding box to match (required).
89
88
  * @param padding - The scalar amount by which to expand the bounding box. Default is `1`.
90
89
  */
91
- fitBox(box: THREE.Box3): void;
90
+ setBox(box: THREE.Box3): void;
92
91
  /**
93
92
  * Updates the section box to match the current size of `this.section.box`.
94
93
  *
@@ -24,7 +24,7 @@ export interface SectionBoxAdapter {
24
24
  setClip: (b: boolean) => void;
25
25
  setVisible: (visible: boolean) => void;
26
26
  getBox: () => THREE.Box3;
27
- fitBox: (box: THREE.Box3) => void;
27
+ setBox: (box: THREE.Box3) => void;
28
28
  getSelectionBox: () => Promise<THREE.Box3 | undefined>;
29
29
  getRendererBox: () => Promise<THREE.Box3>;
30
30
  onSelectionChanged: ISignal;
@@ -55733,12 +55733,12 @@ void main() {
55733
55733
  // Public Properties
55734
55734
  // -------------------------------------------------------------------------
55735
55735
  /**
55736
- * The shared bounding box that defines the section region.
55737
- *
55738
- * To programmatically update the box, see {@link fitBox}.
55736
+ * Returns a copy of the current section box.
55737
+ * To programmatically update the box, see {@link setBox}.
55739
55738
  */
55740
- get box() {
55741
- return this.section.box;
55739
+ getBox() {
55740
+ var _a2;
55741
+ return (_a2 = this.section.box) == null ? void 0 : _a2.clone();
55742
55742
  }
55743
55743
  /**
55744
55744
  * Determines whether the section gizmo applies clipping planes to the model.
@@ -55800,12 +55800,12 @@ void main() {
55800
55800
  * @param box - The bounding box to match (required).
55801
55801
  * @param padding - The scalar amount by which to expand the bounding box. Default is `1`.
55802
55802
  */
55803
- fitBox(box) {
55803
+ setBox(box) {
55804
55804
  if (!box) return;
55805
55805
  box = safeBox(box);
55806
55806
  this._gizmos.fitBox(box);
55807
55807
  this.renderer.section.fitBox(box);
55808
- this._onBoxConfirm.dispatch(this.box);
55808
+ this._onBoxConfirm.dispatch(box);
55809
55809
  this.renderer.needsUpdate = true;
55810
55810
  }
55811
55811
  /**
@@ -55814,7 +55814,7 @@ void main() {
55814
55814
  * Call this if the renderer's section box is changed by code outside this class.
55815
55815
  */
55816
55816
  update() {
55817
- this.fitBox(this.section.box);
55817
+ this.setBox(this.section.box);
55818
55818
  this.renderer.needsUpdate = true;
55819
55819
  }
55820
55820
  /**
@@ -61926,7 +61926,8 @@ Averrage Date/Second ${avgDataRatePS} kb
61926
61926
  this.scheduleUpdate();
61927
61927
  }
61928
61928
  getBox() {
61929
- return this._box;
61929
+ var _a2;
61930
+ return (_a2 = this._box) == null ? void 0 : _a2.clone();
61930
61931
  }
61931
61932
  dispose() {
61932
61933
  clearInterval(this._interval);
@@ -75938,7 +75939,7 @@ Averrage Date/Second ${avgDataRatePS} kb
75938
75939
  if (baseBox === void 0) return;
75939
75940
  boxRef.current = baseBox;
75940
75941
  const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
75941
- adapter.fitBox(newBox);
75942
+ adapter.setBox(newBox);
75942
75943
  });
75943
75944
  const sectionSelection = useFuncRef(async () => {
75944
75945
  try {
@@ -75995,8 +75996,8 @@ Averrage Date/Second ${avgDataRatePS} kb
75995
75996
  viewer.gizmos.sectionBox.visible = b;
75996
75997
  viewer.gizmos.sectionBox.interactive = b;
75997
75998
  },
75998
- getBox: () => viewer.gizmos.sectionBox.box.clone(),
75999
- fitBox: (box) => viewer.gizmos.sectionBox.fitBox(box),
75999
+ getBox: () => viewer.gizmos.sectionBox.getBox(),
76000
+ setBox: (box) => viewer.gizmos.sectionBox.setBox(box),
76000
76001
  getSelectionBox: () => Promise.resolve(viewer.selection.getBoundingBox()),
76001
76002
  getRendererBox: () => Promise.resolve(viewer.renderer.getBoundingBox()),
76002
76003
  onSelectionChanged: viewer.selection.onValueChanged
@@ -76556,8 +76557,8 @@ Averrage Date/Second ${avgDataRatePS} kb
76556
76557
  viewer.sectionBox.visible = b;
76557
76558
  viewer.sectionBox.interactive = b;
76558
76559
  },
76559
- getBox: () => viewer.sectionBox.getBox().clone(),
76560
- fitBox: (box) => viewer.sectionBox.fitBox(box),
76560
+ getBox: () => viewer.sectionBox.getBox(),
76561
+ setBox: (box) => viewer.sectionBox.fitBox(box),
76561
76562
  getSelectionBox: () => viewer.selection.getBoundingBox(),
76562
76563
  getRendererBox: () => viewer.renderer.getBoundingBox(),
76563
76564
  onSelectionChanged: viewer.selection.onValueChanged