@reall3d/reall3dviewer 2.4.4 → 2.5.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 CHANGED
@@ -57,10 +57,10 @@ export declare interface CameraInfo {
57
57
  declare class Events {
58
58
  private map;
59
59
  constructor();
60
- on(key: number, fn?: Function, multiFn?: boolean): Function | Function[];
61
- fire(key: number, ...args: any): any;
62
- tryFire(key: number, ...args: any): any;
63
- off(key: number): void;
60
+ on(key: number | string, fn?: Function, multiFn?: boolean): Function | Function[];
61
+ fire(key: number | string, ...args: any): any;
62
+ tryFire(key: number | string, ...args: any): any;
63
+ off(key: number | string): void;
64
64
  clear(): void;
65
65
  }
66
66
 
@@ -171,6 +171,10 @@ export declare interface MetaData {
171
171
  * collision (glb)
172
172
  */
173
173
  collisionUrl?: string;
174
+ /** default to true */
175
+ addVirtualGround?: boolean;
176
+ /** default to true */
177
+ autuUpdateVirtualGroundPosition?: boolean;
174
178
  }
175
179
 
176
180
  /**
@@ -186,9 +190,9 @@ export declare interface ModelOptions {
186
190
  */
187
191
  baseUrl?: string;
188
192
  /**
189
- * Model format (ply | splat | spx | spz | sog | obj), auto-detected by default
193
+ * Model format (ply | splat | spx | spz | sog | obj | glb), auto-detected by default
190
194
  */
191
- format?: 'ply' | 'splat' | 'spx' | 'spz' | 'sog' | 'obj';
195
+ format?: 'ply' | 'splat' | 'spx' | 'spz' | 'sog' | 'obj' | 'glb';
192
196
  /**
193
197
  * Whether to force re-download
194
198
  */
@@ -217,6 +221,7 @@ export declare interface Player {
217
221
  walk?: string;
218
222
  /** Animation name for run state */
219
223
  run?: string;
224
+ colliderTranslation?: number[];
220
225
  trigerRunMp3?: string;
221
226
  }
222
227
 
@@ -331,6 +336,7 @@ export declare class Reall3dViewer {
331
336
  * @param urlOpts 高斯模型链接或元数据文件链接或选项
332
337
  */
333
338
  addModel(urlOpts: string | ModelOptions): Promise<void>;
339
+ private loadGlb;
334
340
  /**
335
341
  * 根据需要暴露的接口
336
342
  */