@reall3d/reall3dviewer 2.0.0 → 2.2.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/pkg.d.ts +10 -1
- package/dist/pkg.js +3308 -3123
- package/dist/pkg.umd.cjs +84 -49
- package/package.json +1 -1
package/dist/pkg.d.ts
CHANGED
|
@@ -102,6 +102,10 @@ export declare interface MetaData {
|
|
|
102
102
|
flyPositions?: number[];
|
|
103
103
|
/** Fly-through camera look-at points */
|
|
104
104
|
flyTargets?: number[];
|
|
105
|
+
/** Fly duration */
|
|
106
|
+
flyDuration?: number;
|
|
107
|
+
/** Audio */
|
|
108
|
+
audio?: any;
|
|
105
109
|
/** render quality level */
|
|
106
110
|
qualityLevel?: number;
|
|
107
111
|
/** sort type */
|
|
@@ -447,6 +451,7 @@ export declare class SplatMesh extends Mesh {
|
|
|
447
451
|
private disposed;
|
|
448
452
|
private events;
|
|
449
453
|
private opts;
|
|
454
|
+
private audioText;
|
|
450
455
|
boundBox: BoundBox;
|
|
451
456
|
/**
|
|
452
457
|
* 构造函数
|
|
@@ -464,7 +469,7 @@ export declare class SplatMesh extends Mesh {
|
|
|
464
469
|
* @param opts 高斯模型选项
|
|
465
470
|
* @param meta 元数据
|
|
466
471
|
*/
|
|
467
|
-
addModel(opts: ModelOptions, meta?: MetaData):
|
|
472
|
+
addModel(opts: ModelOptions, meta?: MetaData): void;
|
|
468
473
|
fire(key: number, ...args: any): any;
|
|
469
474
|
/**
|
|
470
475
|
* 销毁
|
|
@@ -492,6 +497,10 @@ export declare interface SplatMeshOptions {
|
|
|
492
497
|
* Camera controls
|
|
493
498
|
*/
|
|
494
499
|
controls?: OrbitControls;
|
|
500
|
+
/**
|
|
501
|
+
* In VR mode, when no controls is used, pass the camera instead.
|
|
502
|
+
*/
|
|
503
|
+
camera?: PerspectiveCamera;
|
|
495
504
|
/**
|
|
496
505
|
* Renderer event manager
|
|
497
506
|
*/
|