@babylonjs/viewer 5.0.0 → 5.0.3
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/configuration/configuration.d.ts +107 -107
- package/configuration/configuration.js +15 -15
- package/configuration/configurationCompatibility.d.ts +8 -8
- package/configuration/configurationCompatibility.js +65 -65
- package/configuration/configurationContainer.d.ts +10 -10
- package/configuration/configurationContainer.js +9 -9
- package/configuration/globals.d.ts +6 -6
- package/configuration/globals.js +17 -17
- package/configuration/index.d.ts +2 -2
- package/configuration/index.js +3 -3
- package/configuration/interfaces/cameraConfiguration.d.ts +31 -31
- package/configuration/interfaces/cameraConfiguration.js +1 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -81
- package/configuration/interfaces/colorGradingConfiguration.js +1 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +1 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -22
- package/configuration/interfaces/environmentMapConfiguration.js +1 -1
- package/configuration/interfaces/groundConfiguration.d.ts +24 -24
- package/configuration/interfaces/groundConfiguration.js +1 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +43 -43
- package/configuration/interfaces/imageProcessingConfiguration.js +1 -1
- package/configuration/interfaces/index.d.ts +15 -15
- package/configuration/interfaces/index.js +15 -15
- package/configuration/interfaces/lightConfiguration.d.ts +60 -60
- package/configuration/interfaces/lightConfiguration.js +1 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +1 -1
- package/configuration/interfaces/modelConfiguration.d.ts +65 -65
- package/configuration/interfaces/modelConfiguration.js +1 -1
- package/configuration/interfaces/observersConfiguration.d.ts +5 -5
- package/configuration/interfaces/observersConfiguration.js +1 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +48 -48
- package/configuration/interfaces/sceneConfiguration.js +1 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +1 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +21 -21
- package/configuration/interfaces/skyboxConfiguration.js +1 -1
- package/configuration/interfaces/templateConfiguration.d.ts +67 -67
- package/configuration/interfaces/templateConfiguration.js +1 -1
- package/configuration/interfaces/vrConfiguration.d.ts +16 -16
- package/configuration/interfaces/vrConfiguration.js +1 -1
- package/configuration/loader.d.ts +4 -4
- package/configuration/loader.js +16 -16
- package/configuration/mappers.d.ts +42 -42
- package/configuration/mappers.js +190 -190
- package/configuration/renderOnlyLoader.d.ts +33 -33
- package/configuration/renderOnlyLoader.js +161 -161
- package/configuration/types/default.d.ts +6 -6
- package/configuration/types/default.js +120 -120
- package/configuration/types/environmentMap.d.ts +5 -5
- package/configuration/types/environmentMap.js +13 -13
- package/configuration/types/extended.d.ts +6 -6
- package/configuration/types/extended.js +316 -316
- package/configuration/types/index.d.ts +13 -13
- package/configuration/types/index.js +49 -49
- package/configuration/types/minimal.d.ts +6 -6
- package/configuration/types/minimal.js +42 -42
- package/configuration/types/renderOnlyDefault.d.ts +30 -30
- package/configuration/types/renderOnlyDefault.js +30 -30
- package/configuration/types/shadowLight.d.ts +9 -9
- package/configuration/types/shadowLight.js +63 -63
- package/helper/index.d.ts +26 -26
- package/helper/index.js +62 -62
- package/index.d.ts +30 -30
- package/index.js +45 -45
- package/initializer.d.ts +11 -11
- package/initializer.js +34 -34
- package/interfaces.d.ts +5 -5
- package/interfaces.js +1 -1
- package/labs/environmentSerializer.d.ts +126 -126
- package/labs/environmentSerializer.js +190 -190
- package/labs/texture.d.ts +183 -183
- package/labs/texture.js +300 -300
- package/labs/viewerLabs.d.ts +51 -51
- package/labs/viewerLabs.js +133 -133
- package/loader/modelLoader.d.ts +47 -47
- package/loader/modelLoader.js +189 -189
- package/loader/plugins/applyMaterialConfig.d.ts +12 -12
- package/loader/plugins/applyMaterialConfig.js +15 -15
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -9
- package/loader/plugins/extendedMaterialLoaderPlugin.js +15 -15
- package/loader/plugins/index.d.ts +18 -18
- package/loader/plugins/index.js +42 -42
- package/loader/plugins/loaderPlugin.d.ts +24 -24
- package/loader/plugins/loaderPlugin.js +1 -1
- package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -12
- package/loader/plugins/msftLodLoaderPlugin.js +20 -20
- package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -12
- package/loader/plugins/telemetryLoaderPlugin.js +35 -35
- package/managers/observablesManager.d.ts +66 -66
- package/managers/observablesManager.js +34 -34
- package/managers/sceneManager.d.ts +243 -243
- package/managers/sceneManager.js +1388 -1388
- package/managers/telemetryManager.d.ts +57 -57
- package/managers/telemetryManager.js +113 -113
- package/model/modelAnimation.d.ts +215 -215
- package/model/modelAnimation.js +232 -232
- package/model/viewerModel.d.ts +228 -228
- package/model/viewerModel.js +669 -669
- package/optimizer/custom/extended.d.ts +11 -11
- package/optimizer/custom/extended.js +98 -98
- package/optimizer/custom/index.d.ts +8 -8
- package/optimizer/custom/index.js +24 -24
- package/package.json +5 -5
- package/renderOnlyIndex.d.ts +11 -11
- package/renderOnlyIndex.js +17 -17
- package/templating/eventManager.d.ts +35 -35
- package/templating/eventManager.js +65 -65
- package/templating/plugins/hdButtonPlugin.d.ts +9 -9
- package/templating/plugins/hdButtonPlugin.js +21 -21
- package/templating/plugins/printButton.d.ts +9 -9
- package/templating/plugins/printButton.js +40 -40
- package/templating/templateManager.d.ts +190 -190
- package/templating/templateManager.js +553 -553
- package/templating/viewerTemplatePlugin.d.ts +21 -21
- package/templating/viewerTemplatePlugin.js +68 -68
- package/viewer/defaultViewer.d.ts +122 -122
- package/viewer/defaultViewer.js +665 -665
- package/viewer/renderOnlyViewer.d.ts +8 -8
- package/viewer/renderOnlyViewer.js +43 -43
- package/viewer/viewer.d.ts +254 -254
- package/viewer/viewer.js +777 -777
- package/viewer/viewerManager.d.ts +55 -55
- package/viewer/viewerManager.js +87 -87
- package/viewer/viewerWithTemplate.d.ts +9 -9
- package/viewer/viewerWithTemplate.js +19 -19
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import type { IModelAnimationConfiguration } from "./modelAnimationConfiguration";
|
|
2
|
-
export interface IModelConfiguration {
|
|
3
|
-
id?: string;
|
|
4
|
-
url?: string;
|
|
5
|
-
root?: string;
|
|
6
|
-
file?: string | File;
|
|
7
|
-
loader?: string;
|
|
8
|
-
position?: {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
z: number;
|
|
12
|
-
};
|
|
13
|
-
rotation?: {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
z: number;
|
|
17
|
-
w?: number;
|
|
18
|
-
};
|
|
19
|
-
scaling?: {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
z: number;
|
|
23
|
-
};
|
|
24
|
-
parentObjectIndex?: number;
|
|
25
|
-
castShadow?: boolean;
|
|
26
|
-
receiveShadows?: boolean;
|
|
27
|
-
normalize?: boolean | {
|
|
28
|
-
center?: boolean;
|
|
29
|
-
unitSize?: boolean;
|
|
30
|
-
parentIndex?: number;
|
|
31
|
-
};
|
|
32
|
-
title?: string;
|
|
33
|
-
subtitle?: string;
|
|
34
|
-
thumbnail?: string;
|
|
35
|
-
animation?: {
|
|
36
|
-
autoStart?: boolean | string;
|
|
37
|
-
playOnce?: boolean;
|
|
38
|
-
autoStartIndex?: number;
|
|
39
|
-
};
|
|
40
|
-
entryAnimation?: IModelAnimationConfiguration;
|
|
41
|
-
exitAnimation?: IModelAnimationConfiguration;
|
|
42
|
-
material?: {
|
|
43
|
-
directEnabled?: boolean;
|
|
44
|
-
directIntensity?: number;
|
|
45
|
-
emissiveIntensity?: number;
|
|
46
|
-
environmentIntensity?: number;
|
|
47
|
-
[propName: string]: any;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Rotation offset axis definition
|
|
51
|
-
*/
|
|
52
|
-
rotationOffsetAxis?: {
|
|
53
|
-
x: number;
|
|
54
|
-
y: number;
|
|
55
|
-
z: number;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* the offset angle
|
|
59
|
-
*/
|
|
60
|
-
rotationOffsetAngle?: number;
|
|
61
|
-
loaderConfiguration?: {
|
|
62
|
-
maxLODsToLoad?: number;
|
|
63
|
-
progressiveLoading?: boolean;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
1
|
+
import type { IModelAnimationConfiguration } from "./modelAnimationConfiguration";
|
|
2
|
+
export interface IModelConfiguration {
|
|
3
|
+
id?: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
root?: string;
|
|
6
|
+
file?: string | File;
|
|
7
|
+
loader?: string;
|
|
8
|
+
position?: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
};
|
|
13
|
+
rotation?: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
z: number;
|
|
17
|
+
w?: number;
|
|
18
|
+
};
|
|
19
|
+
scaling?: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
z: number;
|
|
23
|
+
};
|
|
24
|
+
parentObjectIndex?: number;
|
|
25
|
+
castShadow?: boolean;
|
|
26
|
+
receiveShadows?: boolean;
|
|
27
|
+
normalize?: boolean | {
|
|
28
|
+
center?: boolean;
|
|
29
|
+
unitSize?: boolean;
|
|
30
|
+
parentIndex?: number;
|
|
31
|
+
};
|
|
32
|
+
title?: string;
|
|
33
|
+
subtitle?: string;
|
|
34
|
+
thumbnail?: string;
|
|
35
|
+
animation?: {
|
|
36
|
+
autoStart?: boolean | string;
|
|
37
|
+
playOnce?: boolean;
|
|
38
|
+
autoStartIndex?: number;
|
|
39
|
+
};
|
|
40
|
+
entryAnimation?: IModelAnimationConfiguration;
|
|
41
|
+
exitAnimation?: IModelAnimationConfiguration;
|
|
42
|
+
material?: {
|
|
43
|
+
directEnabled?: boolean;
|
|
44
|
+
directIntensity?: number;
|
|
45
|
+
emissiveIntensity?: number;
|
|
46
|
+
environmentIntensity?: number;
|
|
47
|
+
[propName: string]: any;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Rotation offset axis definition
|
|
51
|
+
*/
|
|
52
|
+
rotationOffsetAxis?: {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
z: number;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* the offset angle
|
|
59
|
+
*/
|
|
60
|
+
rotationOffsetAngle?: number;
|
|
61
|
+
loaderConfiguration?: {
|
|
62
|
+
maxLODsToLoad?: number;
|
|
63
|
+
progressiveLoading?: boolean;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=modelConfiguration.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface IObserversConfiguration {
|
|
2
|
-
onEngineInit?: string;
|
|
3
|
-
onSceneInit?: string;
|
|
4
|
-
onModelLoaded?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface IObserversConfiguration {
|
|
2
|
+
onEngineInit?: string;
|
|
3
|
+
onSceneInit?: string;
|
|
4
|
+
onModelLoaded?: string;
|
|
5
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=observersConfiguration.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
|
|
2
|
-
import type { IColorGradingConfiguration } from "./colorGradingConfiguration";
|
|
3
|
-
import type { IGlowLayerOptions } from "@babylonjs/core/Layers/glowLayer.js";
|
|
4
|
-
export interface ISceneConfiguration {
|
|
5
|
-
debug?: boolean;
|
|
6
|
-
clearColor?: {
|
|
7
|
-
r: number;
|
|
8
|
-
g: number;
|
|
9
|
-
b: number;
|
|
10
|
-
a: number;
|
|
11
|
-
};
|
|
12
|
-
/** @deprecated Please use environmentMap.mainColor instead. */
|
|
13
|
-
mainColor?: {
|
|
14
|
-
r?: number;
|
|
15
|
-
g?: number;
|
|
16
|
-
b?: number;
|
|
17
|
-
};
|
|
18
|
-
imageProcessingConfiguration?: IImageProcessingConfiguration;
|
|
19
|
-
environmentTexture?: string;
|
|
20
|
-
colorGrading?: IColorGradingConfiguration;
|
|
21
|
-
environmentRotationY?: number;
|
|
22
|
-
/** @deprecated Please use default rendering pipeline. */
|
|
23
|
-
glow?: boolean | IGlowLayerOptions;
|
|
24
|
-
disableHdr?: boolean;
|
|
25
|
-
renderInBackground?: boolean;
|
|
26
|
-
disableCameraControl?: boolean;
|
|
27
|
-
animationPropertiesOverride?: {
|
|
28
|
-
[propName: string]: any;
|
|
29
|
-
};
|
|
30
|
-
defaultMaterial?: {
|
|
31
|
-
materialType: "standard" | "pbr";
|
|
32
|
-
[propName: string]: any;
|
|
33
|
-
};
|
|
34
|
-
flags?: {
|
|
35
|
-
shadowsEnabled?: boolean;
|
|
36
|
-
particlesEnabled?: boolean;
|
|
37
|
-
collisionsEnabled?: boolean;
|
|
38
|
-
lightsEnabled?: boolean;
|
|
39
|
-
texturesEnabled?: boolean;
|
|
40
|
-
lensFlaresEnabled?: boolean;
|
|
41
|
-
proceduralTexturesEnabled?: boolean;
|
|
42
|
-
renderTargetsEnabled?: boolean;
|
|
43
|
-
spritesEnabled?: boolean;
|
|
44
|
-
skeletonsEnabled?: boolean;
|
|
45
|
-
audioEnabled?: boolean;
|
|
46
|
-
};
|
|
47
|
-
assetsRootURL?: string;
|
|
48
|
-
}
|
|
1
|
+
import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
|
|
2
|
+
import type { IColorGradingConfiguration } from "./colorGradingConfiguration";
|
|
3
|
+
import type { IGlowLayerOptions } from "@babylonjs/core/Layers/glowLayer.js";
|
|
4
|
+
export interface ISceneConfiguration {
|
|
5
|
+
debug?: boolean;
|
|
6
|
+
clearColor?: {
|
|
7
|
+
r: number;
|
|
8
|
+
g: number;
|
|
9
|
+
b: number;
|
|
10
|
+
a: number;
|
|
11
|
+
};
|
|
12
|
+
/** @deprecated Please use environmentMap.mainColor instead. */
|
|
13
|
+
mainColor?: {
|
|
14
|
+
r?: number;
|
|
15
|
+
g?: number;
|
|
16
|
+
b?: number;
|
|
17
|
+
};
|
|
18
|
+
imageProcessingConfiguration?: IImageProcessingConfiguration;
|
|
19
|
+
environmentTexture?: string;
|
|
20
|
+
colorGrading?: IColorGradingConfiguration;
|
|
21
|
+
environmentRotationY?: number;
|
|
22
|
+
/** @deprecated Please use default rendering pipeline. */
|
|
23
|
+
glow?: boolean | IGlowLayerOptions;
|
|
24
|
+
disableHdr?: boolean;
|
|
25
|
+
renderInBackground?: boolean;
|
|
26
|
+
disableCameraControl?: boolean;
|
|
27
|
+
animationPropertiesOverride?: {
|
|
28
|
+
[propName: string]: any;
|
|
29
|
+
};
|
|
30
|
+
defaultMaterial?: {
|
|
31
|
+
materialType: "standard" | "pbr";
|
|
32
|
+
[propName: string]: any;
|
|
33
|
+
};
|
|
34
|
+
flags?: {
|
|
35
|
+
shadowsEnabled?: boolean;
|
|
36
|
+
particlesEnabled?: boolean;
|
|
37
|
+
collisionsEnabled?: boolean;
|
|
38
|
+
lightsEnabled?: boolean;
|
|
39
|
+
texturesEnabled?: boolean;
|
|
40
|
+
lensFlaresEnabled?: boolean;
|
|
41
|
+
proceduralTexturesEnabled?: boolean;
|
|
42
|
+
renderTargetsEnabled?: boolean;
|
|
43
|
+
spritesEnabled?: boolean;
|
|
44
|
+
skeletonsEnabled?: boolean;
|
|
45
|
+
audioEnabled?: boolean;
|
|
46
|
+
};
|
|
47
|
+
assetsRootURL?: string;
|
|
48
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=sceneConfiguration.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export interface ISceneOptimizerConfiguration {
|
|
2
|
-
targetFrameRate?: number;
|
|
3
|
-
trackerDuration?: number;
|
|
4
|
-
autoGeneratePriorities?: boolean;
|
|
5
|
-
improvementMode?: boolean;
|
|
6
|
-
degradation?: string;
|
|
7
|
-
types?: {
|
|
8
|
-
texture?: ISceneOptimizerParameters;
|
|
9
|
-
hardwareScaling?: ISceneOptimizerParameters;
|
|
10
|
-
shadow?: ISceneOptimizerParameters;
|
|
11
|
-
postProcess?: ISceneOptimizerParameters;
|
|
12
|
-
lensFlare?: ISceneOptimizerParameters;
|
|
13
|
-
particles?: ISceneOptimizerParameters;
|
|
14
|
-
renderTarget?: ISceneOptimizerParameters;
|
|
15
|
-
mergeMeshes?: ISceneOptimizerParameters;
|
|
16
|
-
};
|
|
17
|
-
custom?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ISceneOptimizerParameters {
|
|
20
|
-
priority?: number;
|
|
21
|
-
maximumSize?: number;
|
|
22
|
-
step?: number;
|
|
23
|
-
}
|
|
1
|
+
export interface ISceneOptimizerConfiguration {
|
|
2
|
+
targetFrameRate?: number;
|
|
3
|
+
trackerDuration?: number;
|
|
4
|
+
autoGeneratePriorities?: boolean;
|
|
5
|
+
improvementMode?: boolean;
|
|
6
|
+
degradation?: string;
|
|
7
|
+
types?: {
|
|
8
|
+
texture?: ISceneOptimizerParameters;
|
|
9
|
+
hardwareScaling?: ISceneOptimizerParameters;
|
|
10
|
+
shadow?: ISceneOptimizerParameters;
|
|
11
|
+
postProcess?: ISceneOptimizerParameters;
|
|
12
|
+
lensFlare?: ISceneOptimizerParameters;
|
|
13
|
+
particles?: ISceneOptimizerParameters;
|
|
14
|
+
renderTarget?: ISceneOptimizerParameters;
|
|
15
|
+
mergeMeshes?: ISceneOptimizerParameters;
|
|
16
|
+
};
|
|
17
|
+
custom?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ISceneOptimizerParameters {
|
|
20
|
+
priority?: number;
|
|
21
|
+
maximumSize?: number;
|
|
22
|
+
step?: number;
|
|
23
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=sceneOptimizerConfiguration.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
|
|
2
|
-
export interface ISkyboxConfiguration {
|
|
3
|
-
cubeTexture?: {
|
|
4
|
-
noMipMap?: boolean;
|
|
5
|
-
gammaSpace?: boolean;
|
|
6
|
-
url?: string | Array<string>;
|
|
7
|
-
};
|
|
8
|
-
color?: {
|
|
9
|
-
r: number;
|
|
10
|
-
g: number;
|
|
11
|
-
b: number;
|
|
12
|
-
};
|
|
13
|
-
/** @deprecated */ pbr?: boolean;
|
|
14
|
-
scale?: number;
|
|
15
|
-
/** @deprecated */ blur?: number;
|
|
16
|
-
material?: {
|
|
17
|
-
imageProcessingConfiguration?: IImageProcessingConfiguration;
|
|
18
|
-
[propName: string]: any;
|
|
19
|
-
};
|
|
20
|
-
infiniteDistance?: boolean;
|
|
21
|
-
}
|
|
1
|
+
import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
|
|
2
|
+
export interface ISkyboxConfiguration {
|
|
3
|
+
cubeTexture?: {
|
|
4
|
+
noMipMap?: boolean;
|
|
5
|
+
gammaSpace?: boolean;
|
|
6
|
+
url?: string | Array<string>;
|
|
7
|
+
};
|
|
8
|
+
color?: {
|
|
9
|
+
r: number;
|
|
10
|
+
g: number;
|
|
11
|
+
b: number;
|
|
12
|
+
};
|
|
13
|
+
/** @deprecated */ pbr?: boolean;
|
|
14
|
+
scale?: number;
|
|
15
|
+
/** @deprecated */ blur?: number;
|
|
16
|
+
material?: {
|
|
17
|
+
imageProcessingConfiguration?: IImageProcessingConfiguration;
|
|
18
|
+
[propName: string]: any;
|
|
19
|
+
};
|
|
20
|
+
infiniteDistance?: boolean;
|
|
21
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=skyboxConfiguration.js.map
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A single template configuration object
|
|
3
|
-
*/
|
|
4
|
-
export interface ITemplateConfiguration {
|
|
5
|
-
/**
|
|
6
|
-
* can be either the id of the template's html element or a URL.
|
|
7
|
-
* See - https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html
|
|
8
|
-
*/
|
|
9
|
-
location?: string;
|
|
10
|
-
/**
|
|
11
|
-
* If no location is provided you can provide here the raw html of this template.
|
|
12
|
-
* See https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html
|
|
13
|
-
*/
|
|
14
|
-
html?: string;
|
|
15
|
-
id?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Parameters that will be delivered to the template and will render it accordingly.
|
|
18
|
-
*/
|
|
19
|
-
params?: {
|
|
20
|
-
[key: string]: string | number | boolean | object;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Events to attach to this template.
|
|
24
|
-
* event name is the key. the value can either be a boolean (attach to the parent element)
|
|
25
|
-
* or a map of html id elements.
|
|
26
|
-
*
|
|
27
|
-
* See - https://doc.babylonjs.com/extensions/the_templating_system#event-binding
|
|
28
|
-
*/
|
|
29
|
-
events?: {
|
|
30
|
-
pointerdown?: boolean | {
|
|
31
|
-
[id: string]: boolean;
|
|
32
|
-
};
|
|
33
|
-
pointerup?: boolean | {
|
|
34
|
-
[id: string]: boolean;
|
|
35
|
-
};
|
|
36
|
-
pointermove?: boolean | {
|
|
37
|
-
[id: string]: boolean;
|
|
38
|
-
};
|
|
39
|
-
pointerover?: boolean | {
|
|
40
|
-
[id: string]: boolean;
|
|
41
|
-
};
|
|
42
|
-
pointerout?: boolean | {
|
|
43
|
-
[id: string]: boolean;
|
|
44
|
-
};
|
|
45
|
-
pointerenter?: boolean | {
|
|
46
|
-
[id: string]: boolean;
|
|
47
|
-
};
|
|
48
|
-
pointerleave?: boolean | {
|
|
49
|
-
[id: string]: boolean;
|
|
50
|
-
};
|
|
51
|
-
pointercancel?: boolean | {
|
|
52
|
-
[id: string]: boolean;
|
|
53
|
-
};
|
|
54
|
-
click?: boolean | {
|
|
55
|
-
[id: string]: boolean;
|
|
56
|
-
};
|
|
57
|
-
dragstart?: boolean | {
|
|
58
|
-
[id: string]: boolean;
|
|
59
|
-
};
|
|
60
|
-
drop?: boolean | {
|
|
61
|
-
[id: string]: boolean;
|
|
62
|
-
};
|
|
63
|
-
[key: string]: boolean | {
|
|
64
|
-
[id: string]: boolean;
|
|
65
|
-
} | undefined;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* A single template configuration object
|
|
3
|
+
*/
|
|
4
|
+
export interface ITemplateConfiguration {
|
|
5
|
+
/**
|
|
6
|
+
* can be either the id of the template's html element or a URL.
|
|
7
|
+
* See - https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html
|
|
8
|
+
*/
|
|
9
|
+
location?: string;
|
|
10
|
+
/**
|
|
11
|
+
* If no location is provided you can provide here the raw html of this template.
|
|
12
|
+
* See https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html
|
|
13
|
+
*/
|
|
14
|
+
html?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Parameters that will be delivered to the template and will render it accordingly.
|
|
18
|
+
*/
|
|
19
|
+
params?: {
|
|
20
|
+
[key: string]: string | number | boolean | object;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Events to attach to this template.
|
|
24
|
+
* event name is the key. the value can either be a boolean (attach to the parent element)
|
|
25
|
+
* or a map of html id elements.
|
|
26
|
+
*
|
|
27
|
+
* See - https://doc.babylonjs.com/extensions/the_templating_system#event-binding
|
|
28
|
+
*/
|
|
29
|
+
events?: {
|
|
30
|
+
pointerdown?: boolean | {
|
|
31
|
+
[id: string]: boolean;
|
|
32
|
+
};
|
|
33
|
+
pointerup?: boolean | {
|
|
34
|
+
[id: string]: boolean;
|
|
35
|
+
};
|
|
36
|
+
pointermove?: boolean | {
|
|
37
|
+
[id: string]: boolean;
|
|
38
|
+
};
|
|
39
|
+
pointerover?: boolean | {
|
|
40
|
+
[id: string]: boolean;
|
|
41
|
+
};
|
|
42
|
+
pointerout?: boolean | {
|
|
43
|
+
[id: string]: boolean;
|
|
44
|
+
};
|
|
45
|
+
pointerenter?: boolean | {
|
|
46
|
+
[id: string]: boolean;
|
|
47
|
+
};
|
|
48
|
+
pointerleave?: boolean | {
|
|
49
|
+
[id: string]: boolean;
|
|
50
|
+
};
|
|
51
|
+
pointercancel?: boolean | {
|
|
52
|
+
[id: string]: boolean;
|
|
53
|
+
};
|
|
54
|
+
click?: boolean | {
|
|
55
|
+
[id: string]: boolean;
|
|
56
|
+
};
|
|
57
|
+
dragstart?: boolean | {
|
|
58
|
+
[id: string]: boolean;
|
|
59
|
+
};
|
|
60
|
+
drop?: boolean | {
|
|
61
|
+
[id: string]: boolean;
|
|
62
|
+
};
|
|
63
|
+
[key: string]: boolean | {
|
|
64
|
+
[id: string]: boolean;
|
|
65
|
+
} | undefined;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=templateConfiguration.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { VRExperienceHelperOptions } from "@babylonjs/core/Cameras/VR/vrExperienceHelper.js";
|
|
2
|
-
export interface IVRConfiguration {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
objectScaleFactor?: number;
|
|
5
|
-
disableInteractions?: boolean;
|
|
6
|
-
disableTeleportation?: boolean;
|
|
7
|
-
overrideFloorMeshName?: string;
|
|
8
|
-
vrOptions?: VRExperienceHelperOptions;
|
|
9
|
-
modelHeightCorrection?: number | boolean;
|
|
10
|
-
rotateUsingControllers?: boolean;
|
|
11
|
-
cameraPosition?: {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
z: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
import type { VRExperienceHelperOptions } from "@babylonjs/core/Cameras/VR/vrExperienceHelper.js";
|
|
2
|
+
export interface IVRConfiguration {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
objectScaleFactor?: number;
|
|
5
|
+
disableInteractions?: boolean;
|
|
6
|
+
disableTeleportation?: boolean;
|
|
7
|
+
overrideFloorMeshName?: string;
|
|
8
|
+
vrOptions?: VRExperienceHelperOptions;
|
|
9
|
+
modelHeightCorrection?: number | boolean;
|
|
10
|
+
rotateUsingControllers?: boolean;
|
|
11
|
+
cameraPosition?: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
z: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=vrConfiguration.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader";
|
|
2
|
-
export declare class ConfigurationLoader extends RenderOnlyConfigurationLoader {
|
|
3
|
-
protected getExtendedConfig(type: string | undefined): import("./configuration").ViewerConfiguration;
|
|
4
|
-
}
|
|
1
|
+
import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader";
|
|
2
|
+
export declare class ConfigurationLoader extends RenderOnlyConfigurationLoader {
|
|
3
|
+
protected getExtendedConfig(type: string | undefined): import("./configuration").ViewerConfiguration;
|
|
4
|
+
}
|
package/configuration/loader.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader.js";
|
|
3
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
4
|
-
import { getConfigurationType } from "./types/index.js";
|
|
5
|
-
var ConfigurationLoader = /** @class */ (function (_super) {
|
|
6
|
-
__extends(ConfigurationLoader, _super);
|
|
7
|
-
function ConfigurationLoader() {
|
|
8
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
9
|
-
}
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11
|
-
ConfigurationLoader.prototype.getExtendedConfig = function (type) {
|
|
12
|
-
return getConfigurationType(type || "extended");
|
|
13
|
-
};
|
|
14
|
-
return ConfigurationLoader;
|
|
15
|
-
}(RenderOnlyConfigurationLoader));
|
|
16
|
-
export { ConfigurationLoader };
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader.js";
|
|
3
|
+
// eslint-disable-next-line import/no-internal-modules
|
|
4
|
+
import { getConfigurationType } from "./types/index.js";
|
|
5
|
+
var ConfigurationLoader = /** @class */ (function (_super) {
|
|
6
|
+
__extends(ConfigurationLoader, _super);
|
|
7
|
+
function ConfigurationLoader() {
|
|
8
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
9
|
+
}
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11
|
+
ConfigurationLoader.prototype.getExtendedConfig = function (type) {
|
|
12
|
+
return getConfigurationType(type || "extended");
|
|
13
|
+
};
|
|
14
|
+
return ConfigurationLoader;
|
|
15
|
+
}(RenderOnlyConfigurationLoader));
|
|
16
|
+
export { ConfigurationLoader };
|
|
17
17
|
//# sourceMappingURL=loader.js.map
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import type { ViewerConfiguration } from "./configuration";
|
|
2
|
-
/**
|
|
3
|
-
* This is the mapper's interface. Implement this function to create your own mapper and register it at the mapper manager
|
|
4
|
-
*/
|
|
5
|
-
export interface IMapper {
|
|
6
|
-
map(rawSource: any): ViewerConfiguration;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* The MapperManager manages the different implemented mappers.
|
|
10
|
-
* It allows the user to register new mappers as well and use them to parse their own configuration data
|
|
11
|
-
*/
|
|
12
|
-
export declare class MapperManager {
|
|
13
|
-
private _mappers;
|
|
14
|
-
/**
|
|
15
|
-
* The default mapper is the JSON mapper.
|
|
16
|
-
*/
|
|
17
|
-
static DefaultMapper: string;
|
|
18
|
-
constructor();
|
|
19
|
-
/**
|
|
20
|
-
* Get a specific configuration mapper.
|
|
21
|
-
*
|
|
22
|
-
* @param type the name of the mapper to load
|
|
23
|
-
*/
|
|
24
|
-
getMapper(type: string): IMapper;
|
|
25
|
-
/**
|
|
26
|
-
* Use this function to register your own configuration mapper.
|
|
27
|
-
* After a mapper is registered, it can be used to parse the specific type fo configuration to the standard ViewerConfiguration.
|
|
28
|
-
* @param type the name of the mapper. This will be used to define the configuration type and/or to get the mapper
|
|
29
|
-
* @param mapper The implemented mapper
|
|
30
|
-
*/
|
|
31
|
-
registerMapper(type: string, mapper: IMapper): void;
|
|
32
|
-
/**
|
|
33
|
-
* Dispose the mapper manager and all of its mappers.
|
|
34
|
-
*/
|
|
35
|
-
dispose(): void;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* mapperManager is a singleton of the type MapperManager.
|
|
39
|
-
* The mapperManager can be disposed directly with calling mapperManager.dispose()
|
|
40
|
-
* or indirectly with using BabylonViewer.disposeAll()
|
|
41
|
-
*/
|
|
42
|
-
export declare const mapperManager: MapperManager;
|
|
1
|
+
import type { ViewerConfiguration } from "./configuration";
|
|
2
|
+
/**
|
|
3
|
+
* This is the mapper's interface. Implement this function to create your own mapper and register it at the mapper manager
|
|
4
|
+
*/
|
|
5
|
+
export interface IMapper {
|
|
6
|
+
map(rawSource: any): ViewerConfiguration;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The MapperManager manages the different implemented mappers.
|
|
10
|
+
* It allows the user to register new mappers as well and use them to parse their own configuration data
|
|
11
|
+
*/
|
|
12
|
+
export declare class MapperManager {
|
|
13
|
+
private _mappers;
|
|
14
|
+
/**
|
|
15
|
+
* The default mapper is the JSON mapper.
|
|
16
|
+
*/
|
|
17
|
+
static DefaultMapper: string;
|
|
18
|
+
constructor();
|
|
19
|
+
/**
|
|
20
|
+
* Get a specific configuration mapper.
|
|
21
|
+
*
|
|
22
|
+
* @param type the name of the mapper to load
|
|
23
|
+
*/
|
|
24
|
+
getMapper(type: string): IMapper;
|
|
25
|
+
/**
|
|
26
|
+
* Use this function to register your own configuration mapper.
|
|
27
|
+
* After a mapper is registered, it can be used to parse the specific type fo configuration to the standard ViewerConfiguration.
|
|
28
|
+
* @param type the name of the mapper. This will be used to define the configuration type and/or to get the mapper
|
|
29
|
+
* @param mapper The implemented mapper
|
|
30
|
+
*/
|
|
31
|
+
registerMapper(type: string, mapper: IMapper): void;
|
|
32
|
+
/**
|
|
33
|
+
* Dispose the mapper manager and all of its mappers.
|
|
34
|
+
*/
|
|
35
|
+
dispose(): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* mapperManager is a singleton of the type MapperManager.
|
|
39
|
+
* The mapperManager can be disposed directly with calling mapperManager.dispose()
|
|
40
|
+
* or indirectly with using BabylonViewer.disposeAll()
|
|
41
|
+
*/
|
|
42
|
+
export declare const mapperManager: MapperManager;
|