@reall3d/reall3dviewer 2.3.5 → 2.4.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 +40 -3
- package/dist/pkg.js +3383 -3346
- package/dist/pkg.umd.cjs +27 -27
- package/package.json +1 -1
package/dist/pkg.d.ts
CHANGED
|
@@ -130,8 +130,29 @@ export declare interface MetaData {
|
|
|
130
130
|
transform?: number[];
|
|
131
131
|
/** Geolocation (EPSG:4326 WGS 84) */
|
|
132
132
|
WGS84?: number[];
|
|
133
|
-
/** Model URL */
|
|
133
|
+
/** Model URL | lod-meta.json | *.lod.json */
|
|
134
134
|
url?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Target LOD levels to select from available data levels.
|
|
137
|
+
* For example, if data contains levels 0~6, you may select only three levels [0,1,6] for actual use.
|
|
138
|
+
* Defaults to all available levels in the data.
|
|
139
|
+
*/
|
|
140
|
+
pcLodTargets?: number[];
|
|
141
|
+
mobileLodTargets?: number[];
|
|
142
|
+
/**
|
|
143
|
+
* Distance thresholds to switch between LOD levels.
|
|
144
|
+
* Different camera distances determine which LOD level to render.
|
|
145
|
+
* For three LOD levels, define two split points [100,50],
|
|
146
|
+
* meaning: beyond 100 units uses lowest detail, within 50 units uses highest detail.
|
|
147
|
+
*/
|
|
148
|
+
pcLodDistances?: number[];
|
|
149
|
+
mobileLodDistances?: number[];
|
|
150
|
+
mobileLodCacheCount?: number;
|
|
151
|
+
pcLodCacheCount?: number;
|
|
152
|
+
/**
|
|
153
|
+
* Environment(skybox) flag. Defaults to false.
|
|
154
|
+
*/
|
|
155
|
+
enableEnvironment?: boolean;
|
|
135
156
|
}
|
|
136
157
|
|
|
137
158
|
/**
|
|
@@ -142,6 +163,10 @@ export declare interface ModelOptions {
|
|
|
142
163
|
* Model URL
|
|
143
164
|
*/
|
|
144
165
|
url: string;
|
|
166
|
+
/**
|
|
167
|
+
* Base URL
|
|
168
|
+
*/
|
|
169
|
+
baseUrl?: string;
|
|
145
170
|
/**
|
|
146
171
|
* Model format (ply | splat | spx | spz | sog | obj), auto-detected by default
|
|
147
172
|
*/
|
|
@@ -254,7 +279,7 @@ export declare class Reall3dViewer {
|
|
|
254
279
|
*/
|
|
255
280
|
switchDeiplayMode(): void;
|
|
256
281
|
/**
|
|
257
|
-
*
|
|
282
|
+
* 添加大场景
|
|
258
283
|
* @param sceneUrl 场景地址
|
|
259
284
|
*/
|
|
260
285
|
addScene(sceneUrl: string): Promise<void>;
|
|
@@ -434,6 +459,10 @@ export declare interface Reall3dViewerOptions {
|
|
|
434
459
|
* disable transition effect on load; defaults to false
|
|
435
460
|
*/
|
|
436
461
|
disableTransitionEffectOnLoad?: boolean;
|
|
462
|
+
/**
|
|
463
|
+
* disable right click focus effect; defaults to false
|
|
464
|
+
*/
|
|
465
|
+
disableRightClickFocus?: boolean;
|
|
437
466
|
/**
|
|
438
467
|
* transition effect type; defaults to ModelCenterCirccle
|
|
439
468
|
*/
|
|
@@ -442,6 +471,10 @@ export declare interface Reall3dViewerOptions {
|
|
|
442
471
|
* Auto play background audio (defaults to false)
|
|
443
472
|
*/
|
|
444
473
|
autoPlayBgAudio?: boolean;
|
|
474
|
+
/**
|
|
475
|
+
* Environment(skybox) flag. Defaults to false.
|
|
476
|
+
*/
|
|
477
|
+
enableEnvironment?: boolean;
|
|
445
478
|
}
|
|
446
479
|
|
|
447
480
|
/**
|
|
@@ -535,7 +568,7 @@ export declare interface SplatMeshOptions {
|
|
|
535
568
|
*/
|
|
536
569
|
lightFactor?: number;
|
|
537
570
|
/**
|
|
538
|
-
* Whether to display a watermark; defaults to
|
|
571
|
+
* Whether to display a watermark; defaults to false
|
|
539
572
|
*/
|
|
540
573
|
showWatermark?: boolean;
|
|
541
574
|
/**
|
|
@@ -578,6 +611,10 @@ export declare interface SplatMeshOptions {
|
|
|
578
611
|
* 最小可渲染透明度
|
|
579
612
|
*/
|
|
580
613
|
minAlpha?: number;
|
|
614
|
+
/**
|
|
615
|
+
* Environment(skybox) flag. Defaults to false.
|
|
616
|
+
*/
|
|
617
|
+
enableEnvironment?: boolean;
|
|
581
618
|
}
|
|
582
619
|
|
|
583
620
|
/** 过渡效果 */
|