@reall3d/reall3dviewer 2.4.5 → 2.5.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.
package/dist/pkg.d.ts CHANGED
@@ -110,6 +110,8 @@ export declare interface MetaData {
110
110
  pcEnableJoystick?: boolean;
111
111
  /** Enable joystick, default to false */
112
112
  mobileEnableJoystick?: boolean;
113
+ /** disable right click focus effect; defaults to false */
114
+ disableRightClickFocus?: boolean;
113
115
  /** Audio */
114
116
  audio?: any;
115
117
  /** render quality level */
@@ -171,6 +173,10 @@ export declare interface MetaData {
171
173
  * collision (glb)
172
174
  */
173
175
  collisionUrl?: string;
176
+ /** default to true */
177
+ addVirtualGround?: boolean;
178
+ /** default to true */
179
+ autuUpdateVirtualGroundPosition?: boolean;
174
180
  }
175
181
 
176
182
  /**
@@ -186,9 +192,9 @@ export declare interface ModelOptions {
186
192
  */
187
193
  baseUrl?: string;
188
194
  /**
189
- * Model format (ply | splat | spx | spz | sog | obj), auto-detected by default
195
+ * Model format (ply | splat | spx | spz | sog | obj | glb), auto-detected by default
190
196
  */
191
- format?: 'ply' | 'splat' | 'spx' | 'spz' | 'sog' | 'obj';
197
+ format?: 'ply' | 'splat' | 'spx' | 'spz' | 'sog' | 'obj' | 'glb';
192
198
  /**
193
199
  * Whether to force re-download
194
200
  */
@@ -217,6 +223,7 @@ export declare interface Player {
217
223
  walk?: string;
218
224
  /** Animation name for run state */
219
225
  run?: string;
226
+ colliderTranslation?: number[];
220
227
  trigerRunMp3?: string;
221
228
  }
222
229
 
@@ -331,6 +338,7 @@ export declare class Reall3dViewer {
331
338
  * @param urlOpts 高斯模型链接或元数据文件链接或选项
332
339
  */
333
340
  addModel(urlOpts: string | ModelOptions): Promise<void>;
341
+ private loadGlb;
334
342
  /**
335
343
  * 根据需要暴露的接口
336
344
  */
@@ -467,9 +475,9 @@ export declare interface Reall3dViewerOptions {
467
475
  */
468
476
  markMode?: boolean | undefined;
469
477
  /**
470
- * Annotation type (point/lines/plans/distance/area/circle)
478
+ * Annotation type
471
479
  */
472
- markType?: 'point' | 'lines' | 'plans' | 'distance' | 'area' | 'circle' | undefined;
480
+ markType?: 'point' | 'lines' | 'plans' | 'distance' | 'area' | 'circle' | 'tag3d' | undefined;
473
481
  /**
474
482
  * Annotation visibility flag. Defaults to true.
475
483
  */