vim-web 0.3.44-dev.66 → 0.3.44-dev.68

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.
@@ -101,5 +101,5 @@ export declare class Selection<T extends IVimObject> {
101
101
  * Skips objects that do not implement `getBoundingBox()`.
102
102
  * @returns A promise resolving to the combined bounding box.
103
103
  */
104
- getBoundingBox(): Promise<THREE.Box3>;
104
+ getBoundingBox(): Promise<THREE.Box3 | undefined>;
105
105
  }
@@ -13,6 +13,7 @@
13
13
  * - useAsyncFuncRef: A reference for an asynchronous function.
14
14
  * - useArgFuncRef: A reference for a function that accepts an argument and returns a value.
15
15
  */
16
+ import { ISimpleEvent } from "ste-simple-events";
16
17
  /**
17
18
  * Interface for a state reference.
18
19
  * Provides methods to get, set, and confirm the current state.
@@ -31,6 +32,7 @@ export interface StateRef<T> {
31
32
  * Confirms the current state (potentially applying a confirmation transformation).
32
33
  */
33
34
  confirm(): void;
35
+ onChange: ISimpleEvent<T>;
34
36
  }
35
37
  export interface StateRefresher {
36
38
  refresh: () => void;
@@ -49,7 +51,7 @@ export declare function useStateRef<T>(initialValue: T | (() => T)): {
49
51
  */
50
52
  get(): T;
51
53
  set: (value: T) => void;
52
- onChange: import("ste-simple-events").ISimpleEvent<T>;
54
+ onChange: ISimpleEvent<T>;
53
55
  /**
54
56
  * Confirms the current state by applying the confirm function and updating the state.
55
57
  */
@@ -55413,6 +55413,7 @@ void main() {
55413
55413
  */
55414
55414
  async getBoundingBox() {
55415
55415
  var _a3;
55416
+ if (!this.any()) return void 0;
55416
55417
  const box = new Box3();
55417
55418
  let initialized = false;
55418
55419
  for (const obj of this._selection) {