@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.
Files changed (127) hide show
  1. package/configuration/configuration.d.ts +107 -107
  2. package/configuration/configuration.js +15 -15
  3. package/configuration/configurationCompatibility.d.ts +8 -8
  4. package/configuration/configurationCompatibility.js +65 -65
  5. package/configuration/configurationContainer.d.ts +10 -10
  6. package/configuration/configurationContainer.js +9 -9
  7. package/configuration/globals.d.ts +6 -6
  8. package/configuration/globals.js +17 -17
  9. package/configuration/index.d.ts +2 -2
  10. package/configuration/index.js +3 -3
  11. package/configuration/interfaces/cameraConfiguration.d.ts +31 -31
  12. package/configuration/interfaces/cameraConfiguration.js +1 -1
  13. package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -81
  14. package/configuration/interfaces/colorGradingConfiguration.js +1 -1
  15. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -20
  16. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +1 -1
  17. package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -22
  18. package/configuration/interfaces/environmentMapConfiguration.js +1 -1
  19. package/configuration/interfaces/groundConfiguration.d.ts +24 -24
  20. package/configuration/interfaces/groundConfiguration.js +1 -1
  21. package/configuration/interfaces/imageProcessingConfiguration.d.ts +43 -43
  22. package/configuration/interfaces/imageProcessingConfiguration.js +1 -1
  23. package/configuration/interfaces/index.d.ts +15 -15
  24. package/configuration/interfaces/index.js +15 -15
  25. package/configuration/interfaces/lightConfiguration.d.ts +60 -60
  26. package/configuration/interfaces/lightConfiguration.js +1 -1
  27. package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -26
  28. package/configuration/interfaces/modelAnimationConfiguration.js +1 -1
  29. package/configuration/interfaces/modelConfiguration.d.ts +65 -65
  30. package/configuration/interfaces/modelConfiguration.js +1 -1
  31. package/configuration/interfaces/observersConfiguration.d.ts +5 -5
  32. package/configuration/interfaces/observersConfiguration.js +1 -1
  33. package/configuration/interfaces/sceneConfiguration.d.ts +48 -48
  34. package/configuration/interfaces/sceneConfiguration.js +1 -1
  35. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -23
  36. package/configuration/interfaces/sceneOptimizerConfiguration.js +1 -1
  37. package/configuration/interfaces/skyboxConfiguration.d.ts +21 -21
  38. package/configuration/interfaces/skyboxConfiguration.js +1 -1
  39. package/configuration/interfaces/templateConfiguration.d.ts +67 -67
  40. package/configuration/interfaces/templateConfiguration.js +1 -1
  41. package/configuration/interfaces/vrConfiguration.d.ts +16 -16
  42. package/configuration/interfaces/vrConfiguration.js +1 -1
  43. package/configuration/loader.d.ts +4 -4
  44. package/configuration/loader.js +16 -16
  45. package/configuration/mappers.d.ts +42 -42
  46. package/configuration/mappers.js +190 -190
  47. package/configuration/renderOnlyLoader.d.ts +33 -33
  48. package/configuration/renderOnlyLoader.js +161 -161
  49. package/configuration/types/default.d.ts +6 -6
  50. package/configuration/types/default.js +120 -120
  51. package/configuration/types/environmentMap.d.ts +5 -5
  52. package/configuration/types/environmentMap.js +13 -13
  53. package/configuration/types/extended.d.ts +6 -6
  54. package/configuration/types/extended.js +316 -316
  55. package/configuration/types/index.d.ts +13 -13
  56. package/configuration/types/index.js +49 -49
  57. package/configuration/types/minimal.d.ts +6 -6
  58. package/configuration/types/minimal.js +42 -42
  59. package/configuration/types/renderOnlyDefault.d.ts +30 -30
  60. package/configuration/types/renderOnlyDefault.js +30 -30
  61. package/configuration/types/shadowLight.d.ts +9 -9
  62. package/configuration/types/shadowLight.js +63 -63
  63. package/helper/index.d.ts +26 -26
  64. package/helper/index.js +62 -62
  65. package/index.d.ts +30 -30
  66. package/index.js +45 -45
  67. package/initializer.d.ts +11 -11
  68. package/initializer.js +34 -34
  69. package/interfaces.d.ts +5 -5
  70. package/interfaces.js +1 -1
  71. package/labs/environmentSerializer.d.ts +126 -126
  72. package/labs/environmentSerializer.js +190 -190
  73. package/labs/texture.d.ts +183 -183
  74. package/labs/texture.js +300 -300
  75. package/labs/viewerLabs.d.ts +51 -51
  76. package/labs/viewerLabs.js +133 -133
  77. package/loader/modelLoader.d.ts +47 -47
  78. package/loader/modelLoader.js +189 -189
  79. package/loader/plugins/applyMaterialConfig.d.ts +12 -12
  80. package/loader/plugins/applyMaterialConfig.js +15 -15
  81. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -9
  82. package/loader/plugins/extendedMaterialLoaderPlugin.js +15 -15
  83. package/loader/plugins/index.d.ts +18 -18
  84. package/loader/plugins/index.js +42 -42
  85. package/loader/plugins/loaderPlugin.d.ts +24 -24
  86. package/loader/plugins/loaderPlugin.js +1 -1
  87. package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -12
  88. package/loader/plugins/msftLodLoaderPlugin.js +20 -20
  89. package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -12
  90. package/loader/plugins/telemetryLoaderPlugin.js +35 -35
  91. package/managers/observablesManager.d.ts +66 -66
  92. package/managers/observablesManager.js +34 -34
  93. package/managers/sceneManager.d.ts +243 -243
  94. package/managers/sceneManager.js +1388 -1388
  95. package/managers/telemetryManager.d.ts +57 -57
  96. package/managers/telemetryManager.js +113 -113
  97. package/model/modelAnimation.d.ts +215 -215
  98. package/model/modelAnimation.js +232 -232
  99. package/model/viewerModel.d.ts +228 -228
  100. package/model/viewerModel.js +669 -669
  101. package/optimizer/custom/extended.d.ts +11 -11
  102. package/optimizer/custom/extended.js +98 -98
  103. package/optimizer/custom/index.d.ts +8 -8
  104. package/optimizer/custom/index.js +24 -24
  105. package/package.json +5 -5
  106. package/renderOnlyIndex.d.ts +11 -11
  107. package/renderOnlyIndex.js +17 -17
  108. package/templating/eventManager.d.ts +35 -35
  109. package/templating/eventManager.js +65 -65
  110. package/templating/plugins/hdButtonPlugin.d.ts +9 -9
  111. package/templating/plugins/hdButtonPlugin.js +21 -21
  112. package/templating/plugins/printButton.d.ts +9 -9
  113. package/templating/plugins/printButton.js +40 -40
  114. package/templating/templateManager.d.ts +190 -190
  115. package/templating/templateManager.js +553 -553
  116. package/templating/viewerTemplatePlugin.d.ts +21 -21
  117. package/templating/viewerTemplatePlugin.js +68 -68
  118. package/viewer/defaultViewer.d.ts +122 -122
  119. package/viewer/defaultViewer.js +665 -665
  120. package/viewer/renderOnlyViewer.d.ts +8 -8
  121. package/viewer/renderOnlyViewer.js +43 -43
  122. package/viewer/viewer.d.ts +254 -254
  123. package/viewer/viewer.js +777 -777
  124. package/viewer/viewerManager.d.ts +55 -55
  125. package/viewer/viewerManager.js +87 -87
  126. package/viewer/viewerWithTemplate.d.ts +9 -9
  127. 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
+ }
@@ -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;