vim-web 0.3.44-dev.0 → 0.3.44-dev.1

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.
@@ -1,4 +1,4 @@
1
- import { RGBA } from "../utils/math3d";
1
+ import { Box3, RGBA } from "../utils/math3d";
2
2
  import { ILogger } from "./logger";
3
3
  import { RpcSafeClient, SceneSettings } from "./rpcSafeClient";
4
4
  import { ClientStreamError } from "./socketClient";
@@ -27,6 +27,7 @@ export interface IRenderer {
27
27
  hdrBackgroundSaturation: number;
28
28
  backgroundBlur: number;
29
29
  backgroundColor: RGBA;
30
+ getBoundingBox(): Promise<Box3 | undefined>;
30
31
  }
31
32
  /**
32
33
  * Renderer class that handles 3D scene rendering and settings management
@@ -135,6 +136,7 @@ export declare class Renderer implements IRenderer {
135
136
  * @param value - New background color as RGBA
136
137
  */
137
138
  set backgroundColor(value: RGBA);
139
+ getBoundingBox(): Promise<Box3 | undefined>;
138
140
  /**
139
141
  * Requests an update to be performed on the next animation frame.
140
142
  * Multiple setting changes will be batched into a single update.
@@ -57,6 +57,7 @@ export declare class RpcSafeClient {
57
57
  */
58
58
  RPCSetLighting(settings: SceneSettings): void;
59
59
  RPCLockIblRotation(lock: boolean): void;
60
+ RPCGetSceneAABB(): Promise<Box3 | undefined>;
60
61
  /*******************************************************************************
61
62
  * NODE VISIBILITY METHODS
62
63
  * Methods for controlling node visibility, including show/hide, ghosting,
@@ -59158,6 +59158,12 @@ void main() {
59158
59158
  RPCLockIblRotation(lock) {
59159
59159
  this.rpc.RPCLockIblRotation(lock);
59160
59160
  }
59161
+ RPCGetSceneAABB() {
59162
+ return this.safeCall(
59163
+ () => this.rpc.RPCGetSceneAABB(),
59164
+ void 0
59165
+ );
59166
+ }
59161
59167
  /*******************************************************************************
59162
59168
  * NODE VISIBILITY METHODS
59163
59169
  * Methods for controlling node visibility, including show/hide, ghosting,
@@ -61826,6 +61832,9 @@ Averrage Date/Second ${avgDataRatePS} kb
61826
61832
  this._updateLighting = true;
61827
61833
  this.requestSettingsUpdate();
61828
61834
  }
61835
+ getBoundingBox() {
61836
+ return this._rpc.RPCGetSceneAABB();
61837
+ }
61829
61838
  /**
61830
61839
  * Requests an update to be performed on the next animation frame.
61831
61840
  * Multiple setting changes will be batched into a single update.