@combeenation/3d-viewer 5.1.2 → 5.2.0-alpha4

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 (221) hide show
  1. package/README.md +111 -111
  2. package/dist/lib-cjs/api/classes/animationInterface.d.ts +8 -8
  3. package/dist/lib-cjs/api/classes/animationInterface.js +2 -1
  4. package/dist/lib-cjs/api/classes/dottedPath.d.ts +79 -79
  5. package/dist/lib-cjs/api/classes/dottedPath.js +166 -187
  6. package/dist/lib-cjs/api/classes/dottedPath.js.map +1 -1
  7. package/dist/lib-cjs/api/classes/element.d.ts +149 -149
  8. package/dist/lib-cjs/api/classes/element.js +668 -823
  9. package/dist/lib-cjs/api/classes/element.js.map +1 -1
  10. package/dist/lib-cjs/api/classes/event.d.ts +326 -326
  11. package/dist/lib-cjs/api/classes/event.js +349 -371
  12. package/dist/lib-cjs/api/classes/event.js.map +1 -1
  13. package/dist/lib-cjs/api/classes/eventBroadcaster.d.ts +26 -26
  14. package/dist/lib-cjs/api/classes/eventBroadcaster.js +49 -53
  15. package/dist/lib-cjs/api/classes/eventBroadcaster.js.map +1 -1
  16. package/dist/lib-cjs/api/classes/parameter.d.ts +336 -336
  17. package/dist/lib-cjs/api/classes/parameter.js +461 -471
  18. package/dist/lib-cjs/api/classes/parameter.js.map +1 -1
  19. package/dist/lib-cjs/api/classes/parameterObservable.d.ts +36 -36
  20. package/dist/lib-cjs/api/classes/parameterObservable.js +97 -101
  21. package/dist/lib-cjs/api/classes/parameterObservable.js.map +1 -1
  22. package/dist/lib-cjs/api/classes/parameterizable.d.ts +15 -15
  23. package/dist/lib-cjs/api/classes/parameterizable.js +102 -149
  24. package/dist/lib-cjs/api/classes/parameterizable.js.map +1 -1
  25. package/dist/lib-cjs/api/classes/placementAnimation.d.ts +45 -44
  26. package/dist/lib-cjs/api/classes/placementAnimation.js +175 -163
  27. package/dist/lib-cjs/api/classes/placementAnimation.js.map +1 -1
  28. package/dist/lib-cjs/api/classes/variant.d.ts +234 -234
  29. package/dist/lib-cjs/api/classes/variant.js +836 -1203
  30. package/dist/lib-cjs/api/classes/variant.js.map +1 -1
  31. package/dist/lib-cjs/api/classes/variantInstance.d.ts +45 -45
  32. package/dist/lib-cjs/api/classes/variantInstance.js +101 -108
  33. package/dist/lib-cjs/api/classes/variantInstance.js.map +1 -1
  34. package/dist/lib-cjs/api/classes/variantParameterizable.d.ts +17 -17
  35. package/dist/lib-cjs/api/classes/variantParameterizable.js +88 -99
  36. package/dist/lib-cjs/api/classes/variantParameterizable.js.map +1 -1
  37. package/dist/lib-cjs/api/classes/viewer.d.ts +187 -184
  38. package/dist/lib-cjs/api/classes/viewer.js +593 -731
  39. package/dist/lib-cjs/api/classes/viewer.js.map +1 -1
  40. package/dist/lib-cjs/api/classes/viewerLight.d.ts +66 -66
  41. package/dist/lib-cjs/api/classes/viewerLight.js +343 -392
  42. package/dist/lib-cjs/api/classes/viewerLight.js.map +1 -1
  43. package/dist/lib-cjs/api/internal/lensRendering.d.ts +8 -8
  44. package/dist/lib-cjs/api/internal/lensRendering.js +11 -11
  45. package/dist/lib-cjs/api/internal/lensRendering.js.map +1 -1
  46. package/dist/lib-cjs/api/internal/sceneSetup.d.ts +13 -13
  47. package/dist/lib-cjs/api/internal/sceneSetup.js +225 -238
  48. package/dist/lib-cjs/api/internal/sceneSetup.js.map +1 -1
  49. package/dist/lib-cjs/api/manager/animationManager.d.ts +30 -29
  50. package/dist/lib-cjs/api/manager/animationManager.js +126 -130
  51. package/dist/lib-cjs/api/manager/animationManager.js.map +1 -1
  52. package/dist/lib-cjs/api/manager/gltfExportManager.d.ts +65 -65
  53. package/dist/lib-cjs/api/manager/gltfExportManager.js +196 -223
  54. package/dist/lib-cjs/api/manager/gltfExportManager.js.map +1 -1
  55. package/dist/lib-cjs/api/manager/sceneManager.d.ts +31 -31
  56. package/dist/lib-cjs/api/manager/sceneManager.js +127 -152
  57. package/dist/lib-cjs/api/manager/sceneManager.js.map +1 -1
  58. package/dist/lib-cjs/api/manager/variantInstanceManager.d.ts +92 -92
  59. package/dist/lib-cjs/api/manager/variantInstanceManager.js +260 -335
  60. package/dist/lib-cjs/api/manager/variantInstanceManager.js.map +1 -1
  61. package/dist/lib-cjs/api/store/specStorage.d.ts +24 -24
  62. package/dist/lib-cjs/api/store/specStorage.js +50 -51
  63. package/dist/lib-cjs/api/store/specStorage.js.map +1 -1
  64. package/dist/lib-cjs/api/util/babylonHelper.d.ts +174 -174
  65. package/dist/lib-cjs/api/util/babylonHelper.js +591 -611
  66. package/dist/lib-cjs/api/util/babylonHelper.js.map +1 -1
  67. package/dist/lib-cjs/api/util/globalTypes.d.ts +366 -366
  68. package/dist/lib-cjs/api/util/globalTypes.js +1 -1
  69. package/dist/lib-cjs/api/util/resourceHelper.d.ts +58 -58
  70. package/dist/lib-cjs/api/util/resourceHelper.js +201 -257
  71. package/dist/lib-cjs/api/util/resourceHelper.js.map +1 -1
  72. package/dist/lib-cjs/api/util/sceneLoaderHelper.d.ts +35 -35
  73. package/dist/lib-cjs/api/util/sceneLoaderHelper.js +141 -140
  74. package/dist/lib-cjs/api/util/sceneLoaderHelper.js.map +1 -1
  75. package/dist/lib-cjs/api/util/stringHelper.d.ts +9 -9
  76. package/dist/lib-cjs/api/util/stringHelper.js +23 -25
  77. package/dist/lib-cjs/api/util/stringHelper.js.map +1 -1
  78. package/dist/lib-cjs/api/util/structureHelper.d.ts +9 -9
  79. package/dist/lib-cjs/api/util/structureHelper.js +48 -48
  80. package/dist/lib-cjs/api/util/structureHelper.js.map +1 -1
  81. package/dist/lib-cjs/buildinfo.json +3 -3
  82. package/dist/lib-cjs/index.d.ts +51 -49
  83. package/dist/lib-cjs/index.js +110 -89
  84. package/dist/lib-cjs/index.js.map +1 -1
  85. package/dist/lib-es6/api/classes/animationInterface.d.ts +8 -8
  86. package/dist/lib-es6/api/classes/animationInterface.js +1 -1
  87. package/dist/lib-es6/api/classes/dottedPath.d.ts +79 -79
  88. package/dist/lib-es6/api/classes/dottedPath.js +162 -184
  89. package/dist/lib-es6/api/classes/dottedPath.js.map +1 -1
  90. package/dist/lib-es6/api/classes/element.d.ts +149 -149
  91. package/dist/lib-es6/api/classes/element.js +664 -820
  92. package/dist/lib-es6/api/classes/element.js.map +1 -1
  93. package/dist/lib-es6/api/classes/event.d.ts +326 -326
  94. package/dist/lib-es6/api/classes/event.js +345 -368
  95. package/dist/lib-es6/api/classes/event.js.map +1 -1
  96. package/dist/lib-es6/api/classes/eventBroadcaster.d.ts +26 -26
  97. package/dist/lib-es6/api/classes/eventBroadcaster.js +42 -50
  98. package/dist/lib-es6/api/classes/eventBroadcaster.js.map +1 -1
  99. package/dist/lib-es6/api/classes/parameter.d.ts +336 -336
  100. package/dist/lib-es6/api/classes/parameter.js +457 -468
  101. package/dist/lib-es6/api/classes/parameter.js.map +1 -1
  102. package/dist/lib-es6/api/classes/parameterObservable.d.ts +36 -36
  103. package/dist/lib-es6/api/classes/parameterObservable.js +93 -98
  104. package/dist/lib-es6/api/classes/parameterObservable.js.map +1 -1
  105. package/dist/lib-es6/api/classes/parameterizable.d.ts +15 -15
  106. package/dist/lib-es6/api/classes/parameterizable.js +98 -146
  107. package/dist/lib-es6/api/classes/parameterizable.js.map +1 -1
  108. package/dist/lib-es6/api/classes/placementAnimation.d.ts +45 -44
  109. package/dist/lib-es6/api/classes/placementAnimation.js +171 -160
  110. package/dist/lib-es6/api/classes/placementAnimation.js.map +1 -1
  111. package/dist/lib-es6/api/classes/variant.d.ts +234 -234
  112. package/dist/lib-es6/api/classes/variant.js +832 -1198
  113. package/dist/lib-es6/api/classes/variant.js.map +1 -1
  114. package/dist/lib-es6/api/classes/variantInstance.d.ts +45 -45
  115. package/dist/lib-es6/api/classes/variantInstance.js +97 -105
  116. package/dist/lib-es6/api/classes/variantInstance.js.map +1 -1
  117. package/dist/lib-es6/api/classes/variantParameterizable.d.ts +17 -17
  118. package/dist/lib-es6/api/classes/variantParameterizable.js +84 -96
  119. package/dist/lib-es6/api/classes/variantParameterizable.js.map +1 -1
  120. package/dist/lib-es6/api/classes/viewer.d.ts +187 -184
  121. package/dist/lib-es6/api/classes/viewer.js +586 -728
  122. package/dist/lib-es6/api/classes/viewer.js.map +1 -1
  123. package/dist/lib-es6/api/classes/viewerLight.d.ts +66 -66
  124. package/dist/lib-es6/api/classes/viewerLight.js +316 -389
  125. package/dist/lib-es6/api/classes/viewerLight.js.map +1 -1
  126. package/dist/lib-es6/api/internal/lensRendering.d.ts +8 -8
  127. package/dist/lib-es6/api/internal/lensRendering.js +8 -8
  128. package/dist/lib-es6/api/internal/lensRendering.js.map +1 -1
  129. package/dist/lib-es6/api/internal/sceneSetup.d.ts +13 -13
  130. package/dist/lib-es6/api/internal/sceneSetup.js +197 -233
  131. package/dist/lib-es6/api/internal/sceneSetup.js.map +1 -1
  132. package/dist/lib-es6/api/manager/animationManager.d.ts +30 -29
  133. package/dist/lib-es6/api/manager/animationManager.js +122 -127
  134. package/dist/lib-es6/api/manager/animationManager.js.map +1 -1
  135. package/dist/lib-es6/api/manager/gltfExportManager.d.ts +65 -65
  136. package/dist/lib-es6/api/manager/gltfExportManager.js +192 -220
  137. package/dist/lib-es6/api/manager/gltfExportManager.js.map +1 -1
  138. package/dist/lib-es6/api/manager/sceneManager.d.ts +31 -31
  139. package/dist/lib-es6/api/manager/sceneManager.js +123 -149
  140. package/dist/lib-es6/api/manager/sceneManager.js.map +1 -1
  141. package/dist/lib-es6/api/manager/variantInstanceManager.d.ts +92 -92
  142. package/dist/lib-es6/api/manager/variantInstanceManager.js +256 -332
  143. package/dist/lib-es6/api/manager/variantInstanceManager.js.map +1 -1
  144. package/dist/lib-es6/api/store/specStorage.d.ts +24 -24
  145. package/dist/lib-es6/api/store/specStorage.js +46 -48
  146. package/dist/lib-es6/api/store/specStorage.js.map +1 -1
  147. package/dist/lib-es6/api/util/babylonHelper.d.ts +174 -174
  148. package/dist/lib-es6/api/util/babylonHelper.js +561 -581
  149. package/dist/lib-es6/api/util/babylonHelper.js.map +1 -1
  150. package/dist/lib-es6/api/util/globalTypes.d.ts +366 -366
  151. package/dist/lib-es6/api/util/globalTypes.js +1 -1
  152. package/dist/lib-es6/api/util/resourceHelper.d.ts +58 -58
  153. package/dist/lib-es6/api/util/resourceHelper.js +191 -247
  154. package/dist/lib-es6/api/util/resourceHelper.js.map +1 -1
  155. package/dist/lib-es6/api/util/sceneLoaderHelper.d.ts +35 -35
  156. package/dist/lib-es6/api/util/sceneLoaderHelper.js +131 -133
  157. package/dist/lib-es6/api/util/sceneLoaderHelper.js.map +1 -1
  158. package/dist/lib-es6/api/util/stringHelper.d.ts +9 -9
  159. package/dist/lib-es6/api/util/stringHelper.js +19 -21
  160. package/dist/lib-es6/api/util/stringHelper.js.map +1 -1
  161. package/dist/lib-es6/api/util/structureHelper.d.ts +9 -9
  162. package/dist/lib-es6/api/util/structureHelper.js +45 -45
  163. package/dist/lib-es6/api/util/structureHelper.js.map +1 -1
  164. package/dist/lib-es6/buildinfo.json +3 -3
  165. package/dist/lib-es6/index.d.ts +51 -49
  166. package/dist/lib-es6/index.js +48 -50
  167. package/dist/lib-es6/index.js.map +1 -1
  168. package/dist/lib-full/lens-rendering.js +2 -0
  169. package/dist/lib-full/lens-rendering.js.map +1 -0
  170. package/dist/lib-full/main.js +3 -0
  171. package/dist/lib-full/main.js.LICENSE.txt +9 -0
  172. package/dist/lib-full/main.js.map +1 -0
  173. package/package.json +76 -88
  174. package/src/api/classes/animationInterface.ts +10 -10
  175. package/src/api/classes/dottedPath.ts +181 -181
  176. package/src/api/classes/element.ts +716 -716
  177. package/src/api/classes/event.ts +367 -367
  178. package/src/api/classes/eventBroadcaster.ts +52 -52
  179. package/src/api/classes/parameter.ts +494 -494
  180. package/src/api/classes/parameterObservable.ts +100 -100
  181. package/src/api/classes/parameterizable.ts +87 -87
  182. package/src/api/classes/placementAnimation.ts +161 -160
  183. package/src/api/classes/variant.ts +904 -905
  184. package/src/api/classes/variantInstance.ts +97 -97
  185. package/src/api/classes/variantParameterizable.ts +85 -85
  186. package/src/api/classes/viewer.ts +669 -668
  187. package/src/api/classes/viewerLight.ts +334 -334
  188. package/src/api/internal/debugViewer.ts +90 -90
  189. package/src/api/internal/lensRendering.ts +9 -10
  190. package/src/api/internal/sceneSetup.ts +204 -204
  191. package/src/api/manager/animationManager.ts +143 -142
  192. package/src/api/manager/gltfExportManager.ts +191 -191
  193. package/src/api/manager/sceneManager.ts +127 -127
  194. package/src/api/manager/variantInstanceManager.ts +265 -265
  195. package/src/api/store/specStorage.ts +51 -51
  196. package/src/api/util/babylonHelper.ts +663 -663
  197. package/src/api/util/globalTypes.ts +413 -413
  198. package/src/api/util/resourceHelper.ts +189 -189
  199. package/src/api/util/sceneLoaderHelper.ts +148 -147
  200. package/src/api/util/stringHelper.ts +23 -23
  201. package/src/api/util/structureHelper.ts +49 -49
  202. package/src/buildinfo.json +3 -3
  203. package/src/dev.ts +61 -64
  204. package/src/index.ts +96 -94
  205. package/src/types.d.ts +28 -28
  206. package/dist/lib-cjs/api/classes/elementParameterizable.d.ts +0 -14
  207. package/dist/lib-cjs/api/classes/elementParameterizable.js +0 -135
  208. package/dist/lib-cjs/api/classes/elementParameterizable.js.map +0 -1
  209. package/dist/lib-cjs/api/internal/debugViewer.d.ts +0 -13
  210. package/dist/lib-cjs/api/internal/debugViewer.js +0 -87
  211. package/dist/lib-cjs/api/internal/debugViewer.js.map +0 -1
  212. package/dist/lib-es6/api/internal/debugViewer.d.ts +0 -13
  213. package/dist/lib-es6/api/internal/debugViewer.js +0 -84
  214. package/dist/lib-es6/api/internal/debugViewer.js.map +0 -1
  215. package/dist/webpack-stats.json +0 -0
  216. package/src/commonjs.tsconfig.json +0 -10
  217. package/src/declaration.tsconfig.json +0 -8
  218. package/src/es6.tsconfig.json +0 -10
  219. package/src/pagesconfig.json +0 -81
  220. package/src/tsconfig.json +0 -33
  221. package/src/tsconfig.types.json +0 -9
@@ -1,366 +1,366 @@
1
- /// <reference types="gsap" />
2
- declare type Viewer = import('../classes/viewer').Viewer;
3
- declare type Variant = import('../classes/variant').Variant;
4
- declare type VariantInstance = import('../classes/variantInstance').VariantInstance;
5
- /**
6
- * Alias for {@link Element} which can be used to prevent name clashes with the web APIs
7
- * [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element) class
8
- */
9
- declare type VariantElement = import('../classes/element').Element;
10
- declare type DottedPath = import('../classes/dottedPath').DottedPath;
11
- declare type ViewerLight = import('../classes/viewerLight').ViewerLight;
12
- declare type SceneManager = import('../manager/sceneManager').SceneManager;
13
- declare type Scene = import('@babylonjs/core/scene').Scene;
14
- declare type Vector3 = import('@babylonjs/core/Maths/math.vector').Vector3;
15
- declare type Color3 = import('@babylonjs/core/Maths/math.color').Color3;
16
- declare type Color4 = import('@babylonjs/core/Maths/math.color').Color4;
17
- declare type Material = import('@babylonjs/core/Materials/material').Material;
18
- declare type PBRMaterial = import('@babylonjs/core/Materials/PBR/pbrMaterial').PBRMaterial;
19
- declare type StandardMaterial = import('@babylonjs/core/Materials/standardMaterial').StandardMaterial;
20
- declare type DynamicTexture = import('@babylonjs/core/Materials/Textures/dynamicTexture').DynamicTexture;
21
- declare type Mesh = import('@babylonjs/core/Meshes/mesh').Mesh;
22
- declare type AbstractMesh = import('@babylonjs/core/Meshes/abstractMesh').AbstractMesh;
23
- declare type InstancedMesh = import('@babylonjs/core/Meshes/instancedMesh').InstancedMesh;
24
- declare type TransformNode = import('@babylonjs/core/Meshes/transformNode').TransformNode;
25
- declare type Engine = import('@babylonjs/core/Engines/engine').Engine;
26
- declare type EngineOptions = import('@babylonjs/core/Engines/thinEngine').EngineOptions;
27
- declare type ArcRotateCamera = import('@babylonjs/core/Cameras/arcRotateCamera').ArcRotateCamera;
28
- declare type IScreenshotSize = import('@babylonjs/core/Misc/interfaces/screenshotSize').IScreenshotSize;
29
- declare type BabylonAnimation = import('@babylonjs/core/Animations/animation').Animation;
30
- declare type CubeTexture = import('@babylonjs/core/Materials/Textures/cubeTexture').CubeTexture;
31
- declare type MeshBuilder = typeof import('@babylonjs/core/Meshes/meshBuilder').MeshBuilder;
32
- declare type Texture = import('@babylonjs/core/Materials/Textures/texture').Texture;
33
- declare type HemisphericLight = import('@babylonjs/core/Lights/hemisphericLight').HemisphericLight;
34
- declare type DirectionalLight = import('@babylonjs/core/Lights/directionalLight').DirectionalLight;
35
- declare type IInspectorOptions = import('@babylonjs/core/Debug').IInspectorOptions;
36
- declare type EventEmitter = import('eventemitter3');
37
- declare type PathDefinitions = {
38
- include: string[];
39
- exclude?: string[];
40
- };
41
- declare type TraceableDefinition = {
42
- path: string;
43
- };
44
- declare type TraceableDefinitions = {
45
- [name: string]: TraceableDefinition;
46
- };
47
- declare type PaintableDefinition = {
48
- path: string;
49
- textureOptions: {
50
- width: number;
51
- height: number;
52
- } | number;
53
- };
54
- declare type PaintableDefinitions = {
55
- [name: string]: PaintableDefinition;
56
- };
57
- declare type Asset = {
58
- rootUrl: string;
59
- fileName: string | undefined;
60
- };
61
- declare type ElementDefinitions = {
62
- [name: string]: ElementDefinition | string[];
63
- };
64
- declare type ElementDefinition = {
65
- paths: PathDefinitions;
66
- traceables?: TraceableDefinitions;
67
- paintables?: PaintableDefinitions;
68
- };
69
- declare type TransformationDefinition = {
70
- scaling: Vector3;
71
- position: Vector3;
72
- rotation: Vector3;
73
- };
74
- declare type EnvironmentDefinition = {
75
- environmentColor?: Color3;
76
- environmentIntensity?: number;
77
- environment?: string;
78
- environmentBackground?: string;
79
- environmentRotation?: number;
80
- environmentUseDefault?: boolean;
81
- };
82
- declare type StructureJson = {
83
- /**
84
- * `scene` describes the visualisation of the Babylon `scene` such as the incidence of light and camera position. If a
85
- * string is given, the {@link Viewer} will resolve the URL or path and pass the parsed JSON to this property.
86
- */
87
- scene?: string | SceneJson;
88
- /**
89
- * `setup` is a kind of construction plan for the {@link Viewer}. You can pass a {@link SetupJson} or a string, which
90
- * must represent a valid URL or path. If a string is given, the {@link Viewer} will resolve the URL or path and pass
91
- * the parsed JSON to this property. The {@link SetupJson} is responsible for managing a list of
92
- * {@link VariantInstanceDefinition}s. These definitions define the instances that should be instantiated during the
93
- * bootstrapping process. Each instance has a name and a reference to it's {@link Variant}.
94
- */
95
- setup?: string | SetupJson;
96
- file?: string;
97
- glTF?: Asset | string;
98
- parameterDeclaration?: ParameterDeclarations;
99
- parameters?: ParameterBag;
100
- elements?: ElementDefinitions;
101
- lights?: LightDefinitions;
102
- grounds?: GroundDefinitions;
103
- /**
104
- * `variants` is a declarative description of 3D-model variations in the configurator. Each variant itself is a
105
- * {@link StructureJson} which must at least define a `name` in the key of the list and the properties `glTF` and
106
- * `elements` in the value. FYI: BabylonJS's sandbox can show you the path of the 3D-model to properly define the
107
- * `paths`.
108
- *
109
- * Example Code
110
- * ```js
111
- * variants: {
112
- * 'My Pretty Variant' {
113
- * glTF: {
114
- * rootUrl: 'https:/my.awesome.domain/path/to/my/project/',
115
- * fileName: 'my_3d_model_file.glb',
116
- * },
117
- * elements: {
118
- * 'My Little Element': {
119
- * paths: {
120
- * includes: ['__root__.MeshName']
121
- * }
122
- * }
123
- * }
124
- * }
125
- * }
126
- * ```
127
- * `MeshName` has to be identical to the path in the glb-file of the 3D-model.
128
- */
129
- variants?: {
130
- [id: string]: StructureJson;
131
- };
132
- };
133
- declare type SceneJson = {
134
- parameterDeclaration?: ParameterDeclarations;
135
- parameters?: ParameterBag;
136
- meshPicking?: boolean;
137
- /**
138
- * Information about [EngineOptions](https://doc.babylonjs.com/typedoc/interfaces/babylon.engineoptions).
139
- */
140
- engine?: {
141
- antialiasing?: boolean;
142
- options?: EngineOptions;
143
- };
144
- scene: SceneDefinition;
145
- animations?: AnimationDefinitions;
146
- placements?: PlacementDefinitions;
147
- /**
148
- * Information about [material cloning](pages/Release%20Notes/releases/4-3-0.html#material-cloning-on-mutation)
149
- */
150
- cloneMaterialsOnMutation?: boolean;
151
- };
152
- declare type SceneDefinition = {
153
- globals: SceneGlobals;
154
- cameras?: CameraDefinitions;
155
- };
156
- declare type SceneGlobals = {
157
- 'shadows'?: {
158
- enabled: boolean;
159
- type: 'contact';
160
- settings: [];
161
- generator: [];
162
- receiver: [];
163
- };
164
- /**
165
- * `aa` or anti aliasing is not needed if hard edges are desired.\
166
- * FYI: aa smooths edges and avoids stairs-effects.
167
- */
168
- 'aa'?: 'fxaa';
169
- 'tone-mapping'?: boolean;
170
- /**
171
- * @bloom is widely known as glow. There you can define it’s size (Specifies the size of the bloom blur kernel, relative to the final output size) and threshold (The luminance threshold to find bright areas of the image to bloom).
172
- * Further Information under [BloomEffect](https://doc.babylonjs.com/typedoc/classes/babylon.bloomeffect).
173
- *
174
- * @dof short for "depth-of-field" defines the focus in the view. Parameters in settings are listed in [Depth of Field and Other Lens Effects link](https://doc.babylonjs.com/divingDeeper/postProcesses/dofLenseEffects).
175
- * @exposure specifies the intensity of the lightning of the view (not 3D-Model).
176
- * @sharpen´s parameter `settings` are listed in [Default Rendering Pipeline Sharpening link](https://doc.babylonjs.com/divingDeeper/postProcesses/defaultRenderingPipeline#sharpening).
177
- */
178
- 'camera-settings'?: {
179
- contrast: number;
180
- exposure: number;
181
- bloom?: {
182
- enabled: boolean;
183
- size?: number;
184
- threshold?: number;
185
- };
186
- dof?: {
187
- enabled: boolean;
188
- settings: {};
189
- };
190
- sharpen?: {
191
- enabled: boolean;
192
- settings: {};
193
- };
194
- };
195
- };
196
- /**
197
- * {@link Viewer.screenshot} internally uses Babylons [ScreenshotTools.CreateScreenshotUsingRenderTarget](https://doc.babylonjs.com/typedoc/classes/babylon.screenshottools#createscreenshotusingrendertarget). \
198
- * See this link for additional info about the properties.
199
- */
200
- declare type ScreenshotSettings = {
201
- /** Defaults to canvas width & height */
202
- size?: IScreenshotSize;
203
- /**
204
- * Default `image/png`
205
- *
206
- * **Info regarding JPEG:** \
207
- * Use mimeType `image/jpeg` (**not** `image/jpg`) when creating jpeg's. \
208
- * Also ensure that {@link Scene.clearColor | viewer.scene.clearColor} has an alpha value of `1` as jpeg's don't support
209
- * transparency. Otherwise background will always be black for jpeg's.
210
- */
211
- mimeType?: string;
212
- /** Default `1` */
213
- samples?: number;
214
- /** Default `false` */
215
- antialiasing?: boolean;
216
- /** Default `screenshot.png` */
217
- fileName?: string;
218
- /** Default `false` */
219
- renderSprites?: boolean;
220
- };
221
- /**
222
- * Use this to define geometry to be excluded from autofocus, GLB export, etc.
223
- */
224
- declare type ExcludedGeometry = Mesh | AbstractMesh | VariantInstance | Variant | VariantElement | Node;
225
- declare type ExcludedGeometryList = ExcludedGeometry[];
226
- declare type AutofocusSettings = {
227
- /**
228
- * Can be used to customize the margins shown around the 3d model when calling {@link autofocusActiveCamera}.\
229
- * Defaults to 1.5 when not set explicitly.
230
- */
231
- radiusFactor?: number;
232
- adjustWheelPrecision?: boolean;
233
- adjustPanningSensibility?: boolean;
234
- adjustPinchPrecision?: boolean;
235
- /** Desired horizontal camera angle, this won't be overwritten by the autofocus function */
236
- alpha?: number;
237
- /** Desired vertical camera angle, this won't be overwritten by the autofocus function */
238
- beta?: number;
239
- /** Optional animation for the focusing camera movement */
240
- animation?: string | AnimationDefinition;
241
- /** Optional list of geometry to be excluded from consideration */
242
- exclude?: ExcludedGeometryList;
243
- };
244
- declare type LightDefinitions = {
245
- [name: string]: LightDefinition | string;
246
- };
247
- declare type LightDefinition = {
248
- type: 'baked' | 'hemispheric' | 'point' | 'directional' | 'spot';
249
- path?: string;
250
- shadowGenerator?: ShadowGeneratorDefinition;
251
- };
252
- declare type ShadowGeneratorDefinition = {
253
- mapSize: number;
254
- [others: string]: any;
255
- };
256
- declare type GroundDefinitions = {
257
- [ground: string]: GroundDefinition;
258
- };
259
- declare type GroundDefinition = {
260
- type: 'baked' | 'ground' | 'heightmap';
261
- meshId?: string;
262
- url?: string;
263
- width?: number;
264
- height?: number;
265
- subdivisions?: number;
266
- receiveShadows?: boolean;
267
- minHeight?: number;
268
- maxHeight?: number;
269
- alphaFilter?: number;
270
- onReady?: any;
271
- };
272
- declare type CameraDefinitions = {
273
- [camera: string]: CameraDefinition;
274
- };
275
- declare type CameraDefinition = {
276
- /**
277
- * `fov` or "Field Of View" defines as it says the view of the scene. Further information about its [theory](https://en.wikipedia.org/wiki/Field_of_view) and [implementation](https://doc.babylonjs.com/typedoc/classes/babylon.camera#fov).
278
- */
279
- fov?: number;
280
- active?: boolean;
281
- /**
282
- * `arc` is a default camera position where the 3D-model is the center and the camera rotates around the 3D-model.
283
- * More Information about `arc` in [ArcRotateCamera](https://doc.babylonjs.com/typedoc/classes/babylon.arcrotatecamera).
284
- *
285
- * NOTE: While "baked" camera definitions from a GLB or babylon file can currently not be instatiated within the `Specification`, it's still possible to use them in the viewer.\
286
- * For the moment all camera definitions inside these files are automatically added to the scene and can be actived using the {@link switchCamera} function.\
287
- * The `newCamera` input has to match the name of the camera node inside the GLB/babylon file.
288
- */
289
- type: 'arc';
290
- /**
291
- * `target` overrides `arc`´s position and repositions the camera. The string has the syntax (x?: number, y?: number, z?: number) like [Vector3](https://doc.babylonjs.com/typedoc/classes/babylon.vector3).
292
- */
293
- target?: string;
294
- };
295
- declare type VariantInstanceDefinition = {
296
- name?: string;
297
- variant: DottedPathArgument;
298
- parameters?: ParameterBag;
299
- lazy?: boolean;
300
- };
301
- declare type SetupJson = {
302
- instances: VariantInstanceDefinition[];
303
- };
304
- declare type ParameterDeclarations = {
305
- [name: string]: ParameterDeclaration;
306
- };
307
- declare type ParameterDeclaration = {
308
- type: 'string' | 'boolean' | 'number' | 'color' | 'select' | 'vector' | 'csl';
309
- parser?: any;
310
- options?: ParameterValue[];
311
- };
312
- declare type ParameterValue = string | number | boolean;
313
- declare type ParameterBag = {
314
- [name: string]: ParameterValue;
315
- };
316
- declare type ParsedParameterBag = {
317
- [name: string]: any;
318
- };
319
- declare type DottedPathArgument = string | string[] | DottedPath;
320
- declare type ParameterObserver = (object: any, oldValue: ParameterValue, newValue: ParameterValue) => void;
321
- declare type PlacementDefinitions = {
322
- [name: string]: PlacementDefinition;
323
- };
324
- declare type PlacementDefinition = {
325
- position?: string | Vector3;
326
- alpha?: number;
327
- beta?: number;
328
- radius?: number;
329
- target?: string | Vector3;
330
- };
331
- declare type AnimationDefinitions = {
332
- [name: string]: AnimationDefinition;
333
- };
334
- /**
335
- * See [GSAP API Docs](https://greensock.com/docs/v3/GSAP/Tween/vars) for description of `GSAPTWeenVars`.
336
- *
337
- * You can use the [GreenSock Ease Visualizer](https://greensock.com/ease-visualizer/) to create an animation of your
338
- * liking and simply copy the `ease` function shown at the bottom of the visualizer into the `ease` property of your
339
- * {@link AnimationDefinition}.
340
- *
341
- * The `GSAPTWeenVars` are extended by the `shortestWay` property.\
342
- * This property defines if the camera should move to the target position within the shortest possible distance.\
343
- * If `shortestWay` is `false`, the camera moves the whole difference between the current camera position and the target position
344
- * and that could be > 360, which can appear very unconvenient to the operator.\
345
- * The default value of this flag is `true`.
346
- *
347
- * Example usage in {@link SceneJson | SceneJson.animations}:
348
- *
349
- * ```js
350
- * // ...
351
- * scene: {
352
- * // ...
353
- * animations: {
354
- * DefaultCameraAnimation: {
355
- * ease: 'Power3.easeInOut',
356
- * duration: 0.8,
357
- * },
358
- * },
359
- * // ...
360
- * }
361
- * // ...
362
- * ```
363
- */
364
- declare type AnimationDefinition = GSAPTweenVars & {
365
- shortestWay?: boolean;
366
- };
1
+ /// <reference types="gsap" />
2
+ declare type Viewer = import('../classes/viewer').Viewer;
3
+ declare type Variant = import('../classes/variant').Variant;
4
+ declare type VariantInstance = import('../classes/variantInstance').VariantInstance;
5
+ /**
6
+ * Alias for {@link Element} which can be used to prevent name clashes with the web APIs
7
+ * [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element) class
8
+ */
9
+ declare type VariantElement = import('../classes/element').Element;
10
+ declare type DottedPath = import('../classes/dottedPath').DottedPath;
11
+ declare type ViewerLight = import('../classes/viewerLight').ViewerLight;
12
+ declare type SceneManager = import('../manager/sceneManager').SceneManager;
13
+ declare type Scene = import('@babylonjs/core/scene').Scene;
14
+ declare type Vector3 = import('@babylonjs/core/Maths/math.vector').Vector3;
15
+ declare type Color3 = import('@babylonjs/core/Maths/math.color').Color3;
16
+ declare type Color4 = import('@babylonjs/core/Maths/math.color').Color4;
17
+ declare type Material = import('@babylonjs/core/Materials/material').Material;
18
+ declare type PBRMaterial = import('@babylonjs/core/Materials/PBR/pbrMaterial').PBRMaterial;
19
+ declare type StandardMaterial = import('@babylonjs/core/Materials/standardMaterial').StandardMaterial;
20
+ declare type DynamicTexture = import('@babylonjs/core/Materials/Textures/dynamicTexture').DynamicTexture;
21
+ declare type Mesh = import('@babylonjs/core/Meshes/mesh').Mesh;
22
+ declare type AbstractMesh = import('@babylonjs/core/Meshes/abstractMesh').AbstractMesh;
23
+ declare type InstancedMesh = import('@babylonjs/core/Meshes/instancedMesh').InstancedMesh;
24
+ declare type TransformNode = import('@babylonjs/core/Meshes/transformNode').TransformNode;
25
+ declare type Engine = import('@babylonjs/core/Engines/engine').Engine;
26
+ declare type EngineOptions = import('@babylonjs/core/Engines/thinEngine').EngineOptions;
27
+ declare type ArcRotateCamera = import('@babylonjs/core/Cameras/arcRotateCamera').ArcRotateCamera;
28
+ declare type IScreenshotSize = import('@babylonjs/core/Misc/interfaces/screenshotSize').IScreenshotSize;
29
+ declare type BabylonAnimation = import('@babylonjs/core/Animations/animation').Animation;
30
+ declare type CubeTexture = import('@babylonjs/core/Materials/Textures/cubeTexture').CubeTexture;
31
+ declare type MeshBuilder = typeof import('@babylonjs/core/Meshes/meshBuilder').MeshBuilder;
32
+ declare type Texture = import('@babylonjs/core/Materials/Textures/texture').Texture;
33
+ declare type HemisphericLight = import('@babylonjs/core/Lights/hemisphericLight').HemisphericLight;
34
+ declare type DirectionalLight = import('@babylonjs/core/Lights/directionalLight').DirectionalLight;
35
+ declare type IInspectorOptions = import('@babylonjs/core/Debug').IInspectorOptions;
36
+ declare type EventEmitter = import('eventemitter3');
37
+ declare type PathDefinitions = {
38
+ include: string[];
39
+ exclude?: string[];
40
+ };
41
+ declare type TraceableDefinition = {
42
+ path: string;
43
+ };
44
+ declare type TraceableDefinitions = {
45
+ [name: string]: TraceableDefinition;
46
+ };
47
+ declare type PaintableDefinition = {
48
+ path: string;
49
+ textureOptions: {
50
+ width: number;
51
+ height: number;
52
+ } | number;
53
+ };
54
+ declare type PaintableDefinitions = {
55
+ [name: string]: PaintableDefinition;
56
+ };
57
+ declare type Asset = {
58
+ rootUrl: string;
59
+ fileName: string | undefined;
60
+ };
61
+ declare type ElementDefinitions = {
62
+ [name: string]: ElementDefinition | string[];
63
+ };
64
+ declare type ElementDefinition = {
65
+ paths: PathDefinitions;
66
+ traceables?: TraceableDefinitions;
67
+ paintables?: PaintableDefinitions;
68
+ };
69
+ declare type TransformationDefinition = {
70
+ scaling: Vector3;
71
+ position: Vector3;
72
+ rotation: Vector3;
73
+ };
74
+ declare type EnvironmentDefinition = {
75
+ environmentColor?: Color3;
76
+ environmentIntensity?: number;
77
+ environment?: string;
78
+ environmentBackground?: string;
79
+ environmentRotation?: number;
80
+ environmentUseDefault?: boolean;
81
+ };
82
+ declare type StructureJson = {
83
+ /**
84
+ * `scene` describes the visualisation of the Babylon `scene` such as the incidence of light and camera position. If a
85
+ * string is given, the {@link Viewer} will resolve the URL or path and pass the parsed JSON to this property.
86
+ */
87
+ scene?: string | SceneJson;
88
+ /**
89
+ * `setup` is a kind of construction plan for the {@link Viewer}. You can pass a {@link SetupJson} or a string, which
90
+ * must represent a valid URL or path. If a string is given, the {@link Viewer} will resolve the URL or path and pass
91
+ * the parsed JSON to this property. The {@link SetupJson} is responsible for managing a list of
92
+ * {@link VariantInstanceDefinition}s. These definitions define the instances that should be instantiated during the
93
+ * bootstrapping process. Each instance has a name and a reference to it's {@link Variant}.
94
+ */
95
+ setup?: string | SetupJson;
96
+ file?: string;
97
+ glTF?: Asset | string;
98
+ parameterDeclaration?: ParameterDeclarations;
99
+ parameters?: ParameterBag;
100
+ elements?: ElementDefinitions;
101
+ lights?: LightDefinitions;
102
+ grounds?: GroundDefinitions;
103
+ /**
104
+ * `variants` is a declarative description of 3D-model variations in the configurator. Each variant itself is a
105
+ * {@link StructureJson} which must at least define a `name` in the key of the list and the properties `glTF` and
106
+ * `elements` in the value. FYI: BabylonJS's sandbox can show you the path of the 3D-model to properly define the
107
+ * `paths`.
108
+ *
109
+ * Example Code
110
+ * ```js
111
+ * variants: {
112
+ * 'My Pretty Variant' {
113
+ * glTF: {
114
+ * rootUrl: 'https:/my.awesome.domain/path/to/my/project/',
115
+ * fileName: 'my_3d_model_file.glb',
116
+ * },
117
+ * elements: {
118
+ * 'My Little Element': {
119
+ * paths: {
120
+ * includes: ['__root__.MeshName']
121
+ * }
122
+ * }
123
+ * }
124
+ * }
125
+ * }
126
+ * ```
127
+ * `MeshName` has to be identical to the path in the glb-file of the 3D-model.
128
+ */
129
+ variants?: {
130
+ [id: string]: StructureJson;
131
+ };
132
+ };
133
+ declare type SceneJson = {
134
+ parameterDeclaration?: ParameterDeclarations;
135
+ parameters?: ParameterBag;
136
+ meshPicking?: boolean;
137
+ /**
138
+ * Information about [EngineOptions](https://doc.babylonjs.com/typedoc/interfaces/babylon.engineoptions).
139
+ */
140
+ engine?: {
141
+ antialiasing?: boolean;
142
+ options?: EngineOptions;
143
+ };
144
+ scene: SceneDefinition;
145
+ animations?: AnimationDefinitions;
146
+ placements?: PlacementDefinitions;
147
+ /**
148
+ * Information about [material cloning](pages/Release%20Notes/releases/4-3-0.html#material-cloning-on-mutation)
149
+ */
150
+ cloneMaterialsOnMutation?: boolean;
151
+ };
152
+ declare type SceneDefinition = {
153
+ globals: SceneGlobals;
154
+ cameras?: CameraDefinitions;
155
+ };
156
+ declare type SceneGlobals = {
157
+ 'shadows'?: {
158
+ enabled: boolean;
159
+ type: 'contact';
160
+ settings: [];
161
+ generator: [];
162
+ receiver: [];
163
+ };
164
+ /**
165
+ * `aa` or anti aliasing is not needed if hard edges are desired.\
166
+ * FYI: aa smooths edges and avoids stairs-effects.
167
+ */
168
+ 'aa'?: 'fxaa';
169
+ 'tone-mapping'?: boolean;
170
+ /**
171
+ * @bloom is widely known as glow. There you can define it’s size (Specifies the size of the bloom blur kernel, relative to the final output size) and threshold (The luminance threshold to find bright areas of the image to bloom).
172
+ * Further Information under [BloomEffect](https://doc.babylonjs.com/typedoc/classes/babylon.bloomeffect).
173
+ *
174
+ * @dof short for "depth-of-field" defines the focus in the view. Parameters in settings are listed in [Depth of Field and Other Lens Effects link](https://doc.babylonjs.com/divingDeeper/postProcesses/dofLenseEffects).
175
+ * @exposure specifies the intensity of the lightning of the view (not 3D-Model).
176
+ * @sharpen´s parameter `settings` are listed in [Default Rendering Pipeline Sharpening link](https://doc.babylonjs.com/divingDeeper/postProcesses/defaultRenderingPipeline#sharpening).
177
+ */
178
+ 'camera-settings'?: {
179
+ contrast: number;
180
+ exposure: number;
181
+ bloom?: {
182
+ enabled: boolean;
183
+ size?: number;
184
+ threshold?: number;
185
+ };
186
+ dof?: {
187
+ enabled: boolean;
188
+ settings: {};
189
+ };
190
+ sharpen?: {
191
+ enabled: boolean;
192
+ settings: {};
193
+ };
194
+ };
195
+ };
196
+ /**
197
+ * {@link Viewer.screenshot} internally uses Babylons [ScreenshotTools.CreateScreenshotUsingRenderTarget](https://doc.babylonjs.com/typedoc/classes/babylon.screenshottools#createscreenshotusingrendertarget). \
198
+ * See this link for additional info about the properties.
199
+ */
200
+ declare type ScreenshotSettings = {
201
+ /** Defaults to canvas width & height */
202
+ size?: IScreenshotSize;
203
+ /**
204
+ * Default `image/png`
205
+ *
206
+ * **Info regarding JPEG:** \
207
+ * Use mimeType `image/jpeg` (**not** `image/jpg`) when creating jpeg's. \
208
+ * Also ensure that {@link Scene.clearColor | viewer.scene.clearColor} has an alpha value of `1` as jpeg's don't support
209
+ * transparency. Otherwise background will always be black for jpeg's.
210
+ */
211
+ mimeType?: string;
212
+ /** Default `1` */
213
+ samples?: number;
214
+ /** Default `false` */
215
+ antialiasing?: boolean;
216
+ /** Default `screenshot.png` */
217
+ fileName?: string;
218
+ /** Default `false` */
219
+ renderSprites?: boolean;
220
+ };
221
+ /**
222
+ * Use this to define geometry to be excluded from autofocus, GLB export, etc.
223
+ */
224
+ declare type ExcludedGeometry = Mesh | AbstractMesh | VariantInstance | Variant | VariantElement | Node;
225
+ declare type ExcludedGeometryList = ExcludedGeometry[];
226
+ declare type AutofocusSettings = {
227
+ /**
228
+ * Can be used to customize the margins shown around the 3d model when calling {@link Viewer.autofocusActiveCamera}.\
229
+ * Defaults to 1.5 when not set explicitly.
230
+ */
231
+ radiusFactor?: number;
232
+ adjustWheelPrecision?: boolean;
233
+ adjustPanningSensibility?: boolean;
234
+ adjustPinchPrecision?: boolean;
235
+ /** Desired horizontal camera angle, this won't be overwritten by the autofocus function */
236
+ alpha?: number;
237
+ /** Desired vertical camera angle, this won't be overwritten by the autofocus function */
238
+ beta?: number;
239
+ /** Optional animation for the focusing camera movement */
240
+ animation?: string | AnimationDefinition;
241
+ /** Optional list of geometry to be excluded from consideration */
242
+ exclude?: ExcludedGeometryList;
243
+ };
244
+ declare type LightDefinitions = {
245
+ [name: string]: LightDefinition | string;
246
+ };
247
+ declare type LightDefinition = {
248
+ type: 'baked' | 'hemispheric' | 'point' | 'directional' | 'spot';
249
+ path?: string;
250
+ shadowGenerator?: ShadowGeneratorDefinition;
251
+ };
252
+ declare type ShadowGeneratorDefinition = {
253
+ mapSize: number;
254
+ [others: string]: any;
255
+ };
256
+ declare type GroundDefinitions = {
257
+ [ground: string]: GroundDefinition;
258
+ };
259
+ declare type GroundDefinition = {
260
+ type: 'baked' | 'ground' | 'heightmap';
261
+ meshId?: string;
262
+ url?: string;
263
+ width?: number;
264
+ height?: number;
265
+ subdivisions?: number;
266
+ receiveShadows?: boolean;
267
+ minHeight?: number;
268
+ maxHeight?: number;
269
+ alphaFilter?: number;
270
+ onReady?: any;
271
+ };
272
+ declare type CameraDefinitions = {
273
+ [camera: string]: CameraDefinition;
274
+ };
275
+ declare type CameraDefinition = {
276
+ /**
277
+ * `fov` or "Field Of View" defines as it says the view of the scene. Further information about its [theory](https://en.wikipedia.org/wiki/Field_of_view) and [implementation](https://doc.babylonjs.com/typedoc/classes/babylon.camera#fov).
278
+ */
279
+ fov?: number;
280
+ active?: boolean;
281
+ /**
282
+ * `arc` is a default camera position where the 3D-model is the center and the camera rotates around the 3D-model.
283
+ * More Information about `arc` in [ArcRotateCamera](https://doc.babylonjs.com/typedoc/classes/babylon.arcrotatecamera).
284
+ *
285
+ * NOTE: While "baked" camera definitions from a GLB or babylon file can currently not be instatiated within the `Specification`, it's still possible to use them in the viewer.\
286
+ * For the moment all camera definitions inside these files are automatically added to the scene and can be actived using the {@link Viewer.switchCamera} function.\
287
+ * The `newCamera` input has to match the name of the camera node inside the GLB/babylon file.
288
+ */
289
+ type: 'arc';
290
+ /**
291
+ * `target` overrides `arc`´s position and repositions the camera. The string has the syntax (x?: number, y?: number, z?: number) like [Vector3](https://doc.babylonjs.com/typedoc/classes/babylon.vector3).
292
+ */
293
+ target?: string;
294
+ };
295
+ declare type VariantInstanceDefinition = {
296
+ name?: string;
297
+ variant: DottedPathArgument;
298
+ parameters?: ParameterBag;
299
+ lazy?: boolean;
300
+ };
301
+ declare type SetupJson = {
302
+ instances: VariantInstanceDefinition[];
303
+ };
304
+ declare type ParameterDeclarations = {
305
+ [name: string]: ParameterDeclaration;
306
+ };
307
+ declare type ParameterDeclaration = {
308
+ type: 'string' | 'boolean' | 'number' | 'color' | 'select' | 'vector' | 'csl';
309
+ parser?: any;
310
+ options?: ParameterValue[];
311
+ };
312
+ declare type ParameterValue = string | number | boolean;
313
+ declare type ParameterBag = {
314
+ [name: string]: ParameterValue;
315
+ };
316
+ declare type ParsedParameterBag = {
317
+ [name: string]: any;
318
+ };
319
+ declare type DottedPathArgument = string | string[] | DottedPath;
320
+ declare type ParameterObserver = (object: any, oldValue: ParameterValue, newValue: ParameterValue) => void;
321
+ declare type PlacementDefinitions = {
322
+ [name: string]: PlacementDefinition;
323
+ };
324
+ declare type PlacementDefinition = {
325
+ position?: string | Vector3;
326
+ alpha?: number;
327
+ beta?: number;
328
+ radius?: number;
329
+ target?: string | Vector3;
330
+ };
331
+ declare type AnimationDefinitions = {
332
+ [name: string]: AnimationDefinition;
333
+ };
334
+ /**
335
+ * See [GSAP API Docs](https://greensock.com/docs/v3/GSAP/Tween/vars) for description of `GSAPTWeenVars`.
336
+ *
337
+ * You can use the [GreenSock Ease Visualizer](https://greensock.com/ease-visualizer/) to create an animation of your
338
+ * liking and simply copy the `ease` function shown at the bottom of the visualizer into the `ease` property of your
339
+ * {@link AnimationDefinition}.
340
+ *
341
+ * The `GSAPTWeenVars` are extended by the `shortestWay` property.\
342
+ * This property defines if the camera should move to the target position within the shortest possible distance.\
343
+ * If `shortestWay` is `false`, the camera moves the whole difference between the current camera position and the target position
344
+ * and that could be > 360, which can appear very unconvenient to the operator.\
345
+ * The default value of this flag is `true`.
346
+ *
347
+ * Example usage in {@link SceneJson | SceneJson.animations}:
348
+ *
349
+ * ```js
350
+ * // ...
351
+ * scene: {
352
+ * // ...
353
+ * animations: {
354
+ * DefaultCameraAnimation: {
355
+ * ease: 'Power3.easeInOut',
356
+ * duration: 0.8,
357
+ * },
358
+ * },
359
+ * // ...
360
+ * }
361
+ * // ...
362
+ * ```
363
+ */
364
+ declare type AnimationDefinition = GSAPTweenVars & {
365
+ shortestWay?: boolean;
366
+ };