@thinkersteps_labs/3d-viewer-core 1.0.0 → 1.1.0
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/index.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1878 -1798
- package/dist/index.js.map +1 -1
- package/package.json +46 -46
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ export declare function convert(source: ModelSource, signal?: AbortSignal, onPro
|
|
|
23
23
|
|
|
24
24
|
export declare interface ConvertedModel {
|
|
25
25
|
glb: ArrayBuffer;
|
|
26
|
+
/**
|
|
27
|
+
* Pre-parsed Three.js scene graph.
|
|
28
|
+
* Lifecycle Contract: Ownership of this scene is transferred to the Viewer instance
|
|
29
|
+
* upon adoption in viewer.load(). The viewer will manage its disposal.
|
|
30
|
+
* If caching ConvertedModel, do not reuse this scene instance across multiple viewers.
|
|
31
|
+
*/
|
|
32
|
+
scene?: THREE_2.Group;
|
|
33
|
+
animations?: THREE_2.AnimationClip[];
|
|
26
34
|
sourceFormat: SupportedFormat;
|
|
27
35
|
meshCount: number;
|
|
28
36
|
warnings: string[];
|
|
@@ -319,6 +327,12 @@ export declare interface Viewer {
|
|
|
319
327
|
* Triggers a shader recompile (debounced 300 ms) and baker re-acquisition at the new resolution.
|
|
320
328
|
*/
|
|
321
329
|
setDiamondQuality(quality: DiamondQuality): void;
|
|
330
|
+
/**
|
|
331
|
+
* Request an on-demand redraw frame.
|
|
332
|
+
*/
|
|
333
|
+
requestRender?(): void;
|
|
334
|
+
/** Updates camera position and orbit target directly without full-scene state restoration */
|
|
335
|
+
setCameraPosition?(position: [number, number, number], target: [number, number, number]): void;
|
|
322
336
|
}
|
|
323
337
|
|
|
324
338
|
export declare interface ViewerEvents {
|