@combeenation/3d-viewer 12.4.1 → 13.0.0

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 (213) hide show
  1. package/dist/lib-cjs/buildinfo.json +1 -1
  2. package/dist/lib-cjs/commonjs.tsconfig.tsbuildinfo +1 -1
  3. package/dist/lib-cjs/index.d.ts +63 -63
  4. package/dist/lib-cjs/index.js +81 -114
  5. package/dist/lib-cjs/index.js.map +1 -1
  6. package/dist/lib-cjs/internal/cbnCustomBabylonLoaderPlugin.d.ts +10 -0
  7. package/dist/lib-cjs/internal/cbnCustomBabylonLoaderPlugin.js +124 -0
  8. package/dist/lib-cjs/internal/cbnCustomBabylonLoaderPlugin.js.map +1 -0
  9. package/dist/lib-cjs/internal/cloningHelper.d.ts +19 -0
  10. package/dist/lib-cjs/internal/cloningHelper.js +165 -0
  11. package/dist/lib-cjs/internal/cloningHelper.js.map +1 -0
  12. package/dist/lib-cjs/internal/deviceHelper.d.ts +9 -0
  13. package/dist/lib-cjs/{api/util → internal}/deviceHelper.js +6 -10
  14. package/dist/lib-cjs/internal/deviceHelper.js.map +1 -0
  15. package/dist/lib-cjs/internal/geometryHelper.d.ts +21 -0
  16. package/dist/lib-cjs/{api/util → internal}/geometryHelper.js +57 -24
  17. package/dist/lib-cjs/internal/geometryHelper.js.map +1 -0
  18. package/dist/lib-cjs/internal/metadataHelper.d.ts +26 -0
  19. package/dist/lib-cjs/internal/metadataHelper.js +51 -0
  20. package/dist/lib-cjs/internal/metadataHelper.js.map +1 -0
  21. package/dist/lib-cjs/internal/paintableHelper.d.ts +40 -0
  22. package/dist/lib-cjs/internal/paintableHelper.js +287 -0
  23. package/dist/lib-cjs/internal/paintableHelper.js.map +1 -0
  24. package/dist/lib-cjs/internal/tagsHelper.d.ts +12 -0
  25. package/dist/lib-cjs/internal/tagsHelper.js +38 -0
  26. package/dist/lib-cjs/internal/tagsHelper.js.map +1 -0
  27. package/dist/lib-cjs/manager/cameraManager.d.ts +51 -0
  28. package/dist/lib-cjs/manager/cameraManager.js +154 -0
  29. package/dist/lib-cjs/manager/cameraManager.js.map +1 -0
  30. package/dist/lib-cjs/manager/debugManager.d.ts +60 -0
  31. package/dist/lib-cjs/manager/debugManager.js +218 -0
  32. package/dist/lib-cjs/manager/debugManager.js.map +1 -0
  33. package/dist/lib-cjs/manager/eventManager.d.ts +52 -0
  34. package/dist/lib-cjs/manager/eventManager.js +72 -0
  35. package/dist/lib-cjs/manager/eventManager.js.map +1 -0
  36. package/dist/lib-cjs/{api/manager → manager}/gltfExportManager.d.ts +29 -34
  37. package/dist/lib-cjs/{api/manager → manager}/gltfExportManager.js +99 -120
  38. package/dist/lib-cjs/manager/gltfExportManager.js.map +1 -0
  39. package/dist/lib-cjs/manager/materialManager.d.ts +35 -0
  40. package/dist/lib-cjs/manager/materialManager.js +126 -0
  41. package/dist/lib-cjs/manager/materialManager.js.map +1 -0
  42. package/dist/lib-cjs/manager/modelManager.d.ts +145 -0
  43. package/dist/lib-cjs/manager/modelManager.js +381 -0
  44. package/dist/lib-cjs/manager/modelManager.js.map +1 -0
  45. package/dist/lib-cjs/manager/parameterManager.d.ts +210 -0
  46. package/dist/lib-cjs/manager/parameterManager.js +515 -0
  47. package/dist/lib-cjs/manager/parameterManager.js.map +1 -0
  48. package/dist/lib-cjs/manager/sceneManager.d.ts +45 -0
  49. package/dist/lib-cjs/manager/sceneManager.js +65 -0
  50. package/dist/lib-cjs/manager/sceneManager.js.map +1 -0
  51. package/dist/lib-cjs/manager/screenshotManager.d.ts +36 -0
  52. package/dist/lib-cjs/manager/screenshotManager.js +40 -0
  53. package/dist/lib-cjs/manager/screenshotManager.js.map +1 -0
  54. package/dist/lib-cjs/manager/textureManager.d.ts +12 -0
  55. package/dist/lib-cjs/manager/textureManager.js +44 -0
  56. package/dist/lib-cjs/manager/textureManager.js.map +1 -0
  57. package/dist/lib-cjs/viewer.d.ts +117 -0
  58. package/dist/lib-cjs/viewer.js +222 -0
  59. package/dist/lib-cjs/viewer.js.map +1 -0
  60. package/dist/lib-cjs/{api/classes/viewerError.d.ts → viewerError.d.ts} +6 -1
  61. package/dist/lib-cjs/{api/classes/viewerError.js → viewerError.js} +6 -1
  62. package/dist/lib-cjs/viewerError.js.map +1 -0
  63. package/package.json +10 -11
  64. package/src/dev.ts +14 -37
  65. package/src/{types.d.ts → globalTypes.d.ts} +8 -18
  66. package/src/index.ts +79 -113
  67. package/src/internal/cbnCustomBabylonLoaderPlugin.ts +149 -0
  68. package/src/internal/cloningHelper.ts +225 -0
  69. package/src/internal/deviceHelper.ts +25 -0
  70. package/src/{api/util → internal}/geometryHelper.ts +63 -24
  71. package/src/internal/metadataHelper.ts +63 -0
  72. package/src/internal/paintableHelper.ts +310 -0
  73. package/src/internal/tagsHelper.ts +41 -0
  74. package/src/manager/cameraManager.ts +236 -0
  75. package/src/manager/debugManager.ts +245 -0
  76. package/src/manager/eventManager.ts +72 -0
  77. package/src/{api/manager → manager}/gltfExportManager.ts +132 -125
  78. package/src/manager/materialManager.ts +135 -0
  79. package/src/manager/modelManager.ts +456 -0
  80. package/src/manager/parameterManager.ts +652 -0
  81. package/src/manager/sceneManager.ts +101 -0
  82. package/src/manager/screenshotManager.ts +59 -0
  83. package/src/manager/textureManager.ts +32 -0
  84. package/src/viewer.ts +296 -0
  85. package/src/{api/classes/viewerError.ts → viewerError.ts} +6 -1
  86. package/dist/lib-cjs/api/classes/animationInterface.d.ts +0 -8
  87. package/dist/lib-cjs/api/classes/animationInterface.js +0 -3
  88. package/dist/lib-cjs/api/classes/animationInterface.js.map +0 -1
  89. package/dist/lib-cjs/api/classes/dottedPath.d.ts +0 -79
  90. package/dist/lib-cjs/api/classes/dottedPath.js +0 -167
  91. package/dist/lib-cjs/api/classes/dottedPath.js.map +0 -1
  92. package/dist/lib-cjs/api/classes/element.d.ts +0 -153
  93. package/dist/lib-cjs/api/classes/element.js +0 -703
  94. package/dist/lib-cjs/api/classes/element.js.map +0 -1
  95. package/dist/lib-cjs/api/classes/event.d.ts +0 -401
  96. package/dist/lib-cjs/api/classes/event.js +0 -425
  97. package/dist/lib-cjs/api/classes/event.js.map +0 -1
  98. package/dist/lib-cjs/api/classes/eventBroadcaster.d.ts +0 -26
  99. package/dist/lib-cjs/api/classes/eventBroadcaster.js +0 -50
  100. package/dist/lib-cjs/api/classes/eventBroadcaster.js.map +0 -1
  101. package/dist/lib-cjs/api/classes/fuzzyMap.d.ts +0 -7
  102. package/dist/lib-cjs/api/classes/fuzzyMap.js +0 -22
  103. package/dist/lib-cjs/api/classes/fuzzyMap.js.map +0 -1
  104. package/dist/lib-cjs/api/classes/parameter.d.ts +0 -410
  105. package/dist/lib-cjs/api/classes/parameter.js +0 -643
  106. package/dist/lib-cjs/api/classes/parameter.js.map +0 -1
  107. package/dist/lib-cjs/api/classes/parameterObservable.d.ts +0 -36
  108. package/dist/lib-cjs/api/classes/parameterObservable.js +0 -73
  109. package/dist/lib-cjs/api/classes/parameterObservable.js.map +0 -1
  110. package/dist/lib-cjs/api/classes/parameterizable.d.ts +0 -15
  111. package/dist/lib-cjs/api/classes/parameterizable.js +0 -103
  112. package/dist/lib-cjs/api/classes/parameterizable.js.map +0 -1
  113. package/dist/lib-cjs/api/classes/placementAnimation.d.ts +0 -45
  114. package/dist/lib-cjs/api/classes/placementAnimation.js +0 -177
  115. package/dist/lib-cjs/api/classes/placementAnimation.js.map +0 -1
  116. package/dist/lib-cjs/api/classes/variant.d.ts +0 -261
  117. package/dist/lib-cjs/api/classes/variant.js +0 -873
  118. package/dist/lib-cjs/api/classes/variant.js.map +0 -1
  119. package/dist/lib-cjs/api/classes/variantInstance.d.ts +0 -53
  120. package/dist/lib-cjs/api/classes/variantInstance.js +0 -126
  121. package/dist/lib-cjs/api/classes/variantInstance.js.map +0 -1
  122. package/dist/lib-cjs/api/classes/variantParameterizable.d.ts +0 -17
  123. package/dist/lib-cjs/api/classes/variantParameterizable.js +0 -87
  124. package/dist/lib-cjs/api/classes/variantParameterizable.js.map +0 -1
  125. package/dist/lib-cjs/api/classes/viewer.d.ts +0 -215
  126. package/dist/lib-cjs/api/classes/viewer.js +0 -709
  127. package/dist/lib-cjs/api/classes/viewer.js.map +0 -1
  128. package/dist/lib-cjs/api/classes/viewerError.js.map +0 -1
  129. package/dist/lib-cjs/api/classes/viewerLight.d.ts +0 -66
  130. package/dist/lib-cjs/api/classes/viewerLight.js +0 -345
  131. package/dist/lib-cjs/api/classes/viewerLight.js.map +0 -1
  132. package/dist/lib-cjs/api/internal/lensRendering.d.ts +0 -8
  133. package/dist/lib-cjs/api/internal/lensRendering.js +0 -12
  134. package/dist/lib-cjs/api/internal/lensRendering.js.map +0 -1
  135. package/dist/lib-cjs/api/internal/sceneSetup.d.ts +0 -13
  136. package/dist/lib-cjs/api/internal/sceneSetup.js +0 -228
  137. package/dist/lib-cjs/api/internal/sceneSetup.js.map +0 -1
  138. package/dist/lib-cjs/api/manager/animationManager.d.ts +0 -30
  139. package/dist/lib-cjs/api/manager/animationManager.js +0 -127
  140. package/dist/lib-cjs/api/manager/animationManager.js.map +0 -1
  141. package/dist/lib-cjs/api/manager/gltfExportManager.js.map +0 -1
  142. package/dist/lib-cjs/api/manager/sceneManager.d.ts +0 -33
  143. package/dist/lib-cjs/api/manager/sceneManager.js +0 -129
  144. package/dist/lib-cjs/api/manager/sceneManager.js.map +0 -1
  145. package/dist/lib-cjs/api/manager/tagManager.d.ts +0 -118
  146. package/dist/lib-cjs/api/manager/tagManager.js +0 -531
  147. package/dist/lib-cjs/api/manager/tagManager.js.map +0 -1
  148. package/dist/lib-cjs/api/manager/textureLoadManager.d.ts +0 -22
  149. package/dist/lib-cjs/api/manager/textureLoadManager.js +0 -108
  150. package/dist/lib-cjs/api/manager/textureLoadManager.js.map +0 -1
  151. package/dist/lib-cjs/api/manager/variantInstanceManager.d.ts +0 -106
  152. package/dist/lib-cjs/api/manager/variantInstanceManager.js +0 -291
  153. package/dist/lib-cjs/api/manager/variantInstanceManager.js.map +0 -1
  154. package/dist/lib-cjs/api/store/specStorage.d.ts +0 -32
  155. package/dist/lib-cjs/api/store/specStorage.js +0 -66
  156. package/dist/lib-cjs/api/store/specStorage.js.map +0 -1
  157. package/dist/lib-cjs/api/util/babylonHelper.d.ts +0 -238
  158. package/dist/lib-cjs/api/util/babylonHelper.js +0 -826
  159. package/dist/lib-cjs/api/util/babylonHelper.js.map +0 -1
  160. package/dist/lib-cjs/api/util/debugHelper.d.ts +0 -9
  161. package/dist/lib-cjs/api/util/debugHelper.js +0 -94
  162. package/dist/lib-cjs/api/util/debugHelper.js.map +0 -1
  163. package/dist/lib-cjs/api/util/deviceHelper.d.ts +0 -9
  164. package/dist/lib-cjs/api/util/deviceHelper.js.map +0 -1
  165. package/dist/lib-cjs/api/util/geometryHelper.d.ts +0 -17
  166. package/dist/lib-cjs/api/util/geometryHelper.js.map +0 -1
  167. package/dist/lib-cjs/api/util/globalTypes.d.ts +0 -490
  168. package/dist/lib-cjs/api/util/globalTypes.js +0 -2
  169. package/dist/lib-cjs/api/util/globalTypes.js.map +0 -1
  170. package/dist/lib-cjs/api/util/resourceHelper.d.ts +0 -58
  171. package/dist/lib-cjs/api/util/resourceHelper.js +0 -215
  172. package/dist/lib-cjs/api/util/resourceHelper.js.map +0 -1
  173. package/dist/lib-cjs/api/util/sceneLoaderHelper.d.ts +0 -58
  174. package/dist/lib-cjs/api/util/sceneLoaderHelper.js +0 -229
  175. package/dist/lib-cjs/api/util/sceneLoaderHelper.js.map +0 -1
  176. package/dist/lib-cjs/api/util/stringHelper.d.ts +0 -13
  177. package/dist/lib-cjs/api/util/stringHelper.js +0 -33
  178. package/dist/lib-cjs/api/util/stringHelper.js.map +0 -1
  179. package/dist/lib-cjs/api/util/structureHelper.d.ts +0 -9
  180. package/dist/lib-cjs/api/util/structureHelper.js +0 -58
  181. package/dist/lib-cjs/api/util/structureHelper.js.map +0 -1
  182. package/src/api/classes/animationInterface.ts +0 -10
  183. package/src/api/classes/dottedPath.ts +0 -181
  184. package/src/api/classes/element.ts +0 -766
  185. package/src/api/classes/event.ts +0 -457
  186. package/src/api/classes/eventBroadcaster.ts +0 -52
  187. package/src/api/classes/fuzzyMap.ts +0 -21
  188. package/src/api/classes/parameter.ts +0 -686
  189. package/src/api/classes/parameterObservable.ts +0 -73
  190. package/src/api/classes/parameterizable.ts +0 -87
  191. package/src/api/classes/placementAnimation.ts +0 -162
  192. package/src/api/classes/variant.ts +0 -965
  193. package/src/api/classes/variantInstance.ts +0 -123
  194. package/src/api/classes/variantParameterizable.ts +0 -83
  195. package/src/api/classes/viewer.ts +0 -751
  196. package/src/api/classes/viewerLight.ts +0 -335
  197. package/src/api/internal/debugViewer.ts +0 -90
  198. package/src/api/internal/lensRendering.ts +0 -9
  199. package/src/api/internal/sceneSetup.ts +0 -208
  200. package/src/api/manager/animationManager.ts +0 -143
  201. package/src/api/manager/sceneManager.ts +0 -134
  202. package/src/api/manager/tagManager.ts +0 -572
  203. package/src/api/manager/textureLoadManager.ts +0 -107
  204. package/src/api/manager/variantInstanceManager.ts +0 -306
  205. package/src/api/store/specStorage.ts +0 -68
  206. package/src/api/util/babylonHelper.ts +0 -915
  207. package/src/api/util/debugHelper.ts +0 -121
  208. package/src/api/util/deviceHelper.ts +0 -31
  209. package/src/api/util/globalTypes.ts +0 -566
  210. package/src/api/util/resourceHelper.ts +0 -201
  211. package/src/api/util/sceneLoaderHelper.ts +0 -247
  212. package/src/api/util/stringHelper.ts +0 -30
  213. package/src/api/util/structureHelper.ts +0 -62
@@ -1,410 +0,0 @@
1
- import { Color3 } from '@babylonjs/core/Maths/math.color';
2
- import { Vector3 } from '@babylonjs/core/Maths/math.vector';
3
- /**
4
- * This `Parameter` class defines all parameters that can be consumed and committed by a {@link ParameterObservable}.
5
- * Use {@link ParameterObservable.addParameterObserver} or {@link ParameterObservable.commitParameters} to either add or
6
- * commit parameters on your observable objects.
7
- */
8
- export declare class Parameter {
9
- /**
10
- * Constructor.
11
- */
12
- private constructor();
13
- /**
14
- * Mutates the visibility. Helper methods are {@link VariantParameterizable.show} and
15
- * {@link VariantParameterizable.hide}. Getter and setter is {@link VariantParameterizable.visible}.
16
- *
17
- * Scopes:
18
- * * {@link Element}
19
- * * {@link Variant}
20
- * * {@link ViewerLight} Available for all light types
21
- *
22
- * @parser {@link parseBoolean}
23
- */
24
- static readonly VISIBLE = "visible";
25
- /**
26
- * Stretches or compresses some meshes. Getter and setter is {@link VariantParameterizable.scaling}.
27
- *
28
- * Scopes:
29
- * * {@link Element}
30
- * * {@link Variant}
31
- *
32
- * @parser {@link parseScaling}
33
- */
34
- static readonly SCALING = "scaling";
35
- /**
36
- * Mutates the material. Getter and setter is {@link VariantParameterizable.material}. The value of this parameter
37
- * represents the ID of a baked-in glTF or custom created material in the {@link Variant} tree.
38
- *
39
- * Scopes:
40
- * * {@link Element}
41
- * * {@link Variant}
42
- *
43
- * @parser string
44
- */
45
- static readonly MATERIAL = "material";
46
- /**
47
- * Mutates the material color.
48
- *
49
- * Scopes:
50
- * * {@link Element}
51
- * * {@link Variant}
52
- *
53
- * @parser {@link parseColor}
54
- */
55
- static readonly MATERIAL_COLOR = "material.color";
56
- /**
57
- * Mutates the material metallness.
58
- *
59
- * Scopes:
60
- * * {@link Element}
61
- * * {@link Variant}
62
- *
63
- * @parser {@link parseNumber}
64
- */
65
- static readonly MATERIAL_METALLNESS = "material.metallness";
66
- /**
67
- * Mutates the material roughness.
68
- *
69
- * Scopes:
70
- * * {@link Element}
71
- * * {@link Variant}
72
- *
73
- * @parser {@link parseNumber}
74
- */
75
- static readonly MATERIAL_ROUGHNESS = "material.roughness";
76
- /**
77
- * Mutates whether a highlight layer should be enabled.
78
- *
79
- * Scopes:
80
- * * {@link Element}
81
- * * {@link Variant}
82
- *
83
- * @parser {@link parseBoolean}
84
- */
85
- static readonly HIGHLIGHT_ENABLED = "highlight.enabled";
86
- /**
87
- * Changes the highlight color.
88
- *
89
- * Scopes:
90
- * * {@link Element}
91
- * * {@link Variant}
92
- *
93
- * @parser {@link parseColor}
94
- */
95
- static readonly HIGHLIGHT_COLOR = "highlight.color";
96
- /**
97
- * Mutates the highlighted state. Getter and setter is {@link VariantParameterizable.highlighted}.
98
- *
99
- * Scopes:
100
- * * {@link Element}
101
- * * {@link Variant}
102
- *
103
- * @parser {@link parseBoolean}
104
- */
105
- static readonly HIGHLIGHTED = "highlighted";
106
- /**
107
- * Mutates the position relative to its origin position. Getter and setter is {@link VariantParameterizable.position}.
108
- *
109
- * Scopes:
110
- * * {@link Element}
111
- * * {@link Variant}
112
- * * {@link ViewerLight} Available for [PointLight](https://doc.babylonjs.com/typedoc/classes/babylon.pointlight#position), [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#position), [DirectionalLight](https://doc.babylonjs.com/typedoc/classes/babylon.directionallight#position)
113
- *
114
- * @parser {@link parseVector}
115
- */
116
- static readonly POSITION = "position";
117
- /**
118
- * Mutates the rotation relative to its origin rotation. Getter and setter is {@link VariantParameterizable.rotation}.
119
- *
120
- * Scopes:
121
- * * {@link Element}
122
- * * {@link Variant}
123
- *
124
- * @parser {@link parseRotation}
125
- */
126
- static readonly ROTATION = "rotation";
127
- /**
128
- * Mutates the color.
129
- *
130
- * Scopes:
131
- * * {@link Material} via {@link TagManager}
132
- *
133
- * @parser {@link parseColor}
134
- */
135
- static readonly COLOR = "color";
136
- /**
137
- * Mutates the metallic.
138
- *
139
- * Scopes:
140
- * * {@link Material} via {@link TagManager}
141
- *
142
- * @parser {@link parseNumber}
143
- */
144
- static readonly METALLIC = "metallic";
145
- /**
146
- * Paintables can be used to let the client/browser draw graphics on a 3d model by mutating the texture of a
147
- * material.\
148
- * For detailed information have a look at the [paintables](./../pages/documentation/Paintables.html) page.
149
- *
150
- * Also see {@link parsePaintable} for detailed information on which values you can pass to the `paintable`
151
- * parameter.
152
- *
153
- * Scopes:
154
- * * {@link Material} via {@link TagManager}
155
- *
156
- * @parser {@link parsePaintable}
157
- *
158
- */
159
- static readonly PAINTABLE = "paintable";
160
- /**
161
- * Mutates the roughness.
162
- *
163
- * Scopes:
164
- * * {@link Material} via {@link TagManager}
165
- *
166
- * @parser {@link parseNumber}
167
- */
168
- static readonly ROUGHNESS = "roughness";
169
- /**
170
- * Mutates whether a shadow should be casted or not.
171
- *
172
- * Scopes:
173
- * * {@link Element}
174
- * * {@link Variant}
175
- *
176
- * @parser {@link parseBoolean}
177
- */
178
- static readonly CAST_SHADOW = "castShadow";
179
- /**
180
- * Mutates from which lights a shadow should be casted.
181
- *
182
- * Scopes:
183
- * * {@link Element}
184
- * * {@link Variant}
185
- *
186
- * @parser {@link parseCommaSeparatedList}
187
- */
188
- static readonly CAST_SHADOW_FROM_LIGHTS = "castShadow.fromLights";
189
- /**
190
- * Mutates whether to receive shadows or not.
191
- *
192
- * Scopes:
193
- * * {@link Element}
194
- * * {@link Variant}
195
- *
196
- * @parser {@link parseBoolean}
197
- */
198
- static readonly RECEIVE_SHADOWS = "receiveShadows";
199
- /**
200
- * Mutates the intensity of Lights.
201
- *
202
- * Scopes:
203
- * * {@link ViewerLight} Available for [PointLight](https://doc.babylonjs.com/typedoc/classes/babylon.pointlight#intensity), [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#intensity), [DirectionalLight](https://doc.babylonjs.com/typedoc/classes/babylon.directionallight#intensity), [HemisphericLight](https://doc.babylonjs.com/typedoc/classes/babylon.hemisphericlight#intensity)
204
- *
205
- * @parser {@link parseNumber}
206
- */
207
- static readonly INTENSITY = "intensity";
208
- /**
209
- * Mutates the direction of Lights.
210
- *
211
- * Scopes:
212
- * * {@link ViewerLight} Available for [PointLight](https://doc.babylonjs.com/typedoc/classes/babylon.pointlight#direction), [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#direction), [DirectionalLight](https://doc.babylonjs.com/typedoc/classes/babylon.directionallight#direction), [HemisphericLight](https://doc.babylonjs.com/typedoc/classes/babylon.hemisphericlight#direction)
213
- *
214
- * @parser {@link parseNumber}
215
- */
216
- static readonly DIRECTION = "direction";
217
- /**
218
- * Mutates the angle of Lights.
219
- *
220
- * Scopes:
221
- * * {@link ViewerLight} Available for [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#angle)
222
- *
223
- * @parser {@link parseNumber}
224
- */
225
- static readonly ANGLE = "angle";
226
- /**
227
- * Mutates the exponent of Lights.
228
- *
229
- * Scopes:
230
- * * {@link ViewerLight} Available for [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#exponent)
231
- *
232
- * @parser {@link parseNumber}
233
- */
234
- static readonly EXPONENT = "exponent";
235
- /**
236
- * Mutates the diffuse color of Lights.
237
- *
238
- * Scopes:
239
- * * {@link ViewerLight} Available for [PointLight](https://doc.babylonjs.com/typedoc/classes/babylon.pointlight#diffuse), [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#diffuse), [DirectionalLight](https://doc.babylonjs.com/typedoc/classes/babylon.directionallight#diffuse), [HemisphericLight](https://doc.babylonjs.com/typedoc/classes/babylon.hemisphericlight#diffuse)
240
- *
241
- * @parser {@link parseNumber}
242
- */
243
- static readonly DIFFUSE = "diffuse";
244
- /**
245
- * Mutates the specular color of Lights.
246
- *
247
- * Scopes:
248
- * * {@link ViewerLight} Available for [PointLight](https://doc.babylonjs.com/typedoc/classes/babylon.pointlight#specular), [SpotLight](https://doc.babylonjs.com/typedoc/classes/babylon.spotlight#specular), [DirectionalLight](https://doc.babylonjs.com/typedoc/classes/babylon.directionallight#specular), [HemisphericLight](https://doc.babylonjs.com/typedoc/classes/babylon.hemisphericlight#specular)
249
- *
250
- * @parser {@link parseNumber}
251
- */
252
- static readonly SPECULAR = "specular";
253
- /**
254
- * Sets the environment. See [BABYLON.Scene.environmentTexture](https://doc.babylonjs.com/typedoc/classes/BABYLON.Scene#environmentTexture).
255
- *
256
- * Usually the URL to an `*.env` file.
257
- *
258
- * See [environment page](./../pages/documentation/Environment.html) for details on how to use this.
259
- *
260
- * Scopes:
261
- * * {@link SceneManager}
262
- *
263
- * @parser string
264
- */
265
- static readonly ENVIRONMENT = "environment";
266
- /**
267
- * Sets [BABYLON.Scene.clearColor](https://doc.babylonjs.com/typedoc/classes/BABYLON.Scene#clearColor)
268
- *
269
- * See [environment page](./../pages/documentation/Environment.html) for details on how to use this.
270
- *
271
- * Scopes:
272
- * * {@link SceneManager}
273
- *
274
- * @parser {@link parseColor}
275
- */
276
- static readonly ENVIRONMENT_COLOR = "environment.color";
277
- /**
278
- * Rotates connected textures, i.e. IBL, reflection, background, ...
279
- * Rotation angle in degree.
280
- *
281
- * See [environment page](./../pages/documentation/Environment.html) for details on how to use this.
282
- *
283
- * Scopes:
284
- * * {@link SceneManager}
285
- *
286
- * @parser {@link parseNumber}
287
- */
288
- static readonly ENVIRONMENT_ROTATION = "environment.rotation";
289
- /**
290
- * Intensity of IBL. Defaults to 1, usually between 0 & 2.
291
- *
292
- * See [environment page](./../pages/documentation/Environment.html) for details on how to use this.
293
- *
294
- * Scopes:
295
- * * {@link SceneManager}
296
- *
297
- * @parser {@link parseNumber}
298
- */
299
- static readonly ENVIRONMENT_INTENSITY = "environment.intensity";
300
- /**
301
- * Background texture on a [PhotoDome](https://doc.babylonjs.com/divingDeeper/environment/360PhotoDome).
302
- * Just background, no IBL or reflection.
303
- *
304
- * Recommended format is `*.jpg`. HDR files are not supported as background but can be converted to `*.jpg` using
305
- * tools like Photoshop, Gimp or various free online converters.
306
- *
307
- * See [environment page](./../pages/documentation/Environment.html) for details on how to use this.
308
- *
309
- * Scopes:
310
- * * {@link SceneManager}
311
- *
312
- * @parser string
313
- */
314
- static readonly ENVIRONMENT_BACKGROUND = "environment.background";
315
- /**
316
- * If `true`, sets a `scene.environmentTexture` and creates a *BackgroundHelper* Node (via
317
- * [scene.createDefaultEnvironment](https://doc.babylonjs.com/typedoc/classes/BABYLON.Scene#createDefaultEnvironment))
318
- * with two subnodes/meshes:
319
- * - BackgroundPlane
320
- * - BackgroundSkybox
321
- *
322
- * The value of this parameter is ignored if {@link ENVIRONMENT_BACKGROUND} is also set.
323
- *
324
- * See [environment page](./../pages/documentation/Environment.html) for details on how to use this.
325
- *
326
- * Scopes:
327
- * * {@link SceneManager}
328
- *
329
- * @parser {@link parseBoolean}
330
- */
331
- static readonly ENVIRONMENT_USEDEFAULT = "environment.usedefault";
332
- /**
333
- * The {@link ParameterDeclarations} for all parameters in this class.
334
- */
335
- static get declarations(): ParameterDeclarations;
336
- /**
337
- * The default {@link ParameterValue}s returned as {@link ParameterBag} for a set of parameters in this class.
338
- */
339
- static get defaultValues(): ParameterBag;
340
- /**
341
- * Gets the default {@link ParameterValue} for a given {@link Parameter} declared in this class.
342
- */
343
- static getDefaultValue(parameter: string): ParameterValue;
344
- /**
345
- * All parameters defined in this class.
346
- */
347
- static get all(): string[];
348
- /**
349
- * Asserts whether given parameter is declared and valid.
350
- */
351
- static assertParameter(parameterDeclaration: ParameterDeclarations, parameter: string, value: ParameterValue): void;
352
- /**
353
- * Parses given {@link ParameterBag} with given {@link ParameterDeclarations}.
354
- */
355
- static parseFromDeclarations(declarations: ParameterDeclarations, parameterBag: ParameterBag): ParsedParameterBag;
356
- /**
357
- * Parses a string of format `'(x,y,z)'` to a `Vector3`.
358
- */
359
- static parseVector(value: ParameterValue): Vector3;
360
- /**
361
- * Stringifies a Vector3 to format `(x,y,z)`.
362
- */
363
- static stringifyVector(value: Vector3): string;
364
- /**
365
- * Parses a string of format `'(x,y,z)'` with angular degrees to a `Vector3` with rotation information in radians.
366
- */
367
- static parseRotation(value: ParameterValue): Vector3;
368
- /**
369
- * Parses a string of format `'(x,y,z)'` or a simple `number` to a `Vector3` for scaling.
370
- */
371
- static parseScaling(value: ParameterValue): Vector3;
372
- /**
373
- * Parses a string of format `'#rrggbb'` or `'(r,g,b)'` to a `Color3`.
374
- */
375
- static parseColor(value: ParameterValue): Color3;
376
- /**
377
- * Parses a `boolean` string (`'true'`/`'1'` or `'false'`/`'0'`) or `number` (`1` or `0`) to a `boolean` or
378
- * `undefined`.
379
- */
380
- static parseBoolean(value: ParameterValue): boolean;
381
- /**
382
- * Parses a number `string` to a `number`.
383
- */
384
- static parseNumber(value: ParameterValue): number;
385
- /**
386
- * Parses string defintion of a paintable into a paintable object.\
387
- * Here are some examples:
388
- * ```ts
389
- * // Default definition as JSON object:
390
- * '{ "src": "https://path.to/image.jpg", "uScale": 0.5 }'
391
- *
392
- * // Short hand definition, only contains source string:
393
- * 'https://path.to/image.jpg'
394
- *
395
- * // Full content, paintable texture is flipped in both directions
396
- * '{ "src": "https://path.to/image.jpg", "uScale": -1, "vScale": -1, "uOffset": 0, "vOffset": 0 }'
397
- *
398
- * // SVG content can be used directly:
399
- * '<svg>...</svg>'
400
- *
401
- * // SVG in src property works as well:
402
- * '{ "src": "<svg>...</svg>", "uScale": 0.5 }'
403
- * ```
404
- */
405
- static parsePaintable(value: ParameterValue): PaintableValue;
406
- /**
407
- * Parses a string with comma separated values to a list of strings.
408
- */
409
- static parseCommaSeparatedList(value: ParameterValue): string[];
410
- }