@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 +1 @@
1
- {"version":3,"file":"parameterizable.js","sourceRoot":"","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,CAAC;SAClB;IACH,CAAC;IAEY,IAAI;;YACf,MAAM,IAAI,CAAC,eAAe,CAAC,qBAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAEY,IAAI;;YACf,MAAM,IAAI,CAAC,eAAe,CAAC,qBAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAEY,MAAM;;YACjB,MAAM,IAAI,CAAC,eAAe,CAAC,qBAAS,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAEY,eAAe;;YAC1B,MAAM,IAAI,CAAC,eAAe,CAAC,qBAAS,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;CACF;AAnFD,0CAmFC"}
@@ -1,44 +1,45 @@
1
- /// <reference types="gsap" />
2
- /**
3
- * An {@link PlacementAnimation} handling `Tweens` of the `GSAP` API using configured {@link PlacementDefinition}s
4
- * and {@link AnimationDefinition}s. It mutates the attributes in the given {@link PlacementDefinition} with the given
5
- * {@link AnimationDefinition}. The latter can be anything the `GSAP` allows in its API. Please consider using the
6
- * API of the {@link AnimationManager} to handle instances of this class in your consuming project.
7
- */
8
- export declare class PlacementAnimation implements AnimationInterface {
9
- readonly mutable: object;
10
- protected _placement: PlacementDefinition | string;
11
- protected _animation?: string | AnimationDefinition | undefined;
12
- protected _placementDefinition: PlacementDefinition;
13
- protected _animationDefinition: AnimationDefinition;
14
- protected _timeline: GSAPTimeline;
15
- /**
16
- * Constructor.
17
- */
18
- constructor(mutable: object, _placement: PlacementDefinition | string, _animation?: string | AnimationDefinition | undefined);
19
- /**
20
- * Plays all `Tweens` of this {@link PlacementAnimation}.
21
- */
22
- play(): Promise<AnimationInterface>;
23
- /**
24
- * Pause all `Tweens` of this {@link PlacementAnimation}.
25
- */
26
- pause(): AnimationInterface;
27
- /**
28
- * Kills all `Tweens` of this {@link PlacementAnimation}.
29
- */
30
- kill(): AnimationInterface;
31
- /**
32
- * Creates a {@link AnimationDefinition} definition if not provided in the constructor and sets some defaults.
33
- * Only custom properties from {@link AnimationDefinition} are adjusted, all {@link GSAPTweenVars} remain untouched.
34
- */
35
- protected prepareAnimationDefinition(): void;
36
- /**
37
- * Prepares different types of {@link PlacementDefinition} and sets some defaults.
38
- */
39
- protected preparePlacementDefinition(): void;
40
- /**
41
- * Creates `Tweens` for the {@link PlacementDefinition} configured for this {@link PlacementAnimation}.
42
- */
43
- protected createTweens(): void;
44
- }
1
+ /// <reference types="gsap" />
2
+ import { AnimationInterface } from './animationInterface';
3
+ /**
4
+ * An {@link PlacementAnimation} handling `Tweens` of the `GSAP` API using configured {@link PlacementDefinition}s
5
+ * and {@link AnimationDefinition}s. It mutates the attributes in the given {@link PlacementDefinition} with the given
6
+ * {@link AnimationDefinition}. The latter can be anything the `GSAP` allows in its API. Please consider using the
7
+ * API of the {@link AnimationManager} to handle instances of this class in your consuming project.
8
+ */
9
+ export declare class PlacementAnimation implements AnimationInterface {
10
+ readonly mutable: object;
11
+ protected _placement: PlacementDefinition | string;
12
+ protected _animation?: string | AnimationDefinition | undefined;
13
+ protected _placementDefinition: PlacementDefinition;
14
+ protected _animationDefinition: AnimationDefinition;
15
+ protected _timeline: GSAPTimeline;
16
+ /**
17
+ * Constructor.
18
+ */
19
+ constructor(mutable: object, _placement: PlacementDefinition | string, _animation?: string | AnimationDefinition | undefined);
20
+ /**
21
+ * Plays all `Tweens` of this {@link PlacementAnimation}.
22
+ */
23
+ play(): Promise<AnimationInterface>;
24
+ /**
25
+ * Pause all `Tweens` of this {@link PlacementAnimation}.
26
+ */
27
+ pause(): AnimationInterface;
28
+ /**
29
+ * Kills all `Tweens` of this {@link PlacementAnimation}.
30
+ */
31
+ kill(): AnimationInterface;
32
+ /**
33
+ * Creates a {@link AnimationDefinition} definition if not provided in the constructor and sets some defaults.
34
+ * Only custom properties from {@link AnimationDefinition} are adjusted, all {@link GSAPTweenVars} remain untouched.
35
+ */
36
+ protected prepareAnimationDefinition(): void;
37
+ /**
38
+ * Prepares different types of {@link PlacementDefinition} and sets some defaults.
39
+ */
40
+ protected preparePlacementDefinition(): void;
41
+ /**
42
+ * Creates `Tweens` for the {@link PlacementDefinition} configured for this {@link PlacementAnimation}.
43
+ */
44
+ protected createTweens(): void;
45
+ }
@@ -1,164 +1,176 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlacementAnimation = void 0;
4
- var tslib_1 = require("tslib");
5
- var arcRotateCamera_1 = require("@babylonjs/core/Cameras/arcRotateCamera");
6
- var math_vector_1 = require("@babylonjs/core/Maths/math.vector");
7
- var gsap_1 = require("gsap");
8
- var lodash_es_1 = require("lodash-es");
9
- var parameter_1 = require("../classes/parameter");
10
- var specStorage_1 = require("../store/specStorage");
11
- /**
12
- * An {@link PlacementAnimation} handling `Tweens` of the `GSAP` API using configured {@link PlacementDefinition}s
13
- * and {@link AnimationDefinition}s. It mutates the attributes in the given {@link PlacementDefinition} with the given
14
- * {@link AnimationDefinition}. The latter can be anything the `GSAP` allows in its API. Please consider using the
15
- * API of the {@link AnimationManager} to handle instances of this class in your consuming project.
16
- */
17
- var PlacementAnimation = /** @class */ (function () {
18
- /**
19
- * Constructor.
20
- */
21
- function PlacementAnimation(mutable, _placement, _animation) {
22
- var _a;
23
- this.mutable = mutable;
24
- this._placement = _placement;
25
- this._animation = _animation;
26
- if (lodash_es_1.isString(_placement)) {
27
- var placementDefinitions = specStorage_1.SpecStorage.get('scene.placements');
28
- if (!placementDefinitions) {
29
- throw new Error("No PlacementDefinitions defined in JSON structure.");
30
- }
31
- var placementDefinition = placementDefinitions[_placement];
32
- if (!placementDefinition) {
33
- throw new Error("PlacementDefinition \"" + _placement + "\" not defined in JSON structure.");
34
- }
35
- this._placementDefinition = lodash_es_1.cloneDeep(placementDefinition);
36
- }
37
- else {
38
- this._placementDefinition = lodash_es_1.cloneDeep(_placement);
39
- }
40
- if (lodash_es_1.isString(_animation)) {
41
- var animationDefinition = (_a = specStorage_1.SpecStorage.get('scene.animations')) === null || _a === void 0 ? void 0 : _a[_animation];
42
- if (!animationDefinition) {
43
- throw new Error("AnimationDefinition \"" + _animation + "\" not defined in JSON structure.");
44
- }
45
- this._animationDefinition = lodash_es_1.cloneDeep(animationDefinition);
46
- }
47
- else {
48
- this._animationDefinition = lodash_es_1.cloneDeep(_animation);
49
- }
50
- this.prepareAnimationDefinition();
51
- // create (shallow) copy for GSAP which doesn't contain `shortestWay`,
52
- // because that's not part of the original `TweenVars` input typing and therefore leads to warnings
53
- var _b = this._animationDefinition, shortestWay = _b.shortestWay, gsapTweenVars = tslib_1.__rest(_b, ["shortestWay"]);
54
- this._timeline = gsap_1.gsap.timeline({
55
- defaults: gsapTweenVars,
56
- paused: true,
57
- });
58
- this.preparePlacementDefinition();
59
- this.createTweens();
60
- }
61
- /**
62
- * Plays all `Tweens` of this {@link PlacementAnimation}.
63
- */
64
- PlacementAnimation.prototype.play = function () {
65
- return tslib_1.__awaiter(this, void 0, void 0, function () {
66
- return tslib_1.__generator(this, function (_a) {
67
- switch (_a.label) {
68
- case 0: return [4 /*yield*/, this._timeline.play().then()];
69
- case 1:
70
- _a.sent();
71
- return [2 /*return*/, this];
72
- }
73
- });
74
- });
75
- };
76
- /**
77
- * Pause all `Tweens` of this {@link PlacementAnimation}.
78
- */
79
- PlacementAnimation.prototype.pause = function () {
80
- this._timeline.pause();
81
- return this;
82
- };
83
- /**
84
- * Kills all `Tweens` of this {@link PlacementAnimation}.
85
- */
86
- PlacementAnimation.prototype.kill = function () {
87
- this._timeline.kill();
88
- return this;
89
- };
90
- /**
91
- * Creates a {@link AnimationDefinition} definition if not provided in the constructor and sets some defaults.
92
- * Only custom properties from {@link AnimationDefinition} are adjusted, all {@link GSAPTweenVars} remain untouched.
93
- */
94
- PlacementAnimation.prototype.prepareAnimationDefinition = function () {
95
- // create an animation definition if not available yet
96
- this._animationDefinition = this._animationDefinition || {};
97
- // parse shortest way flag or set to `true` if not configured
98
- if (this._animationDefinition.shortestWay !== undefined) {
99
- this._animationDefinition.shortestWay = parameter_1.Parameter.parseBoolean(this._animationDefinition.shortestWay);
100
- }
101
- else {
102
- this._animationDefinition.shortestWay = true;
103
- }
104
- };
105
- /**
106
- * Prepares different types of {@link PlacementDefinition} and sets some defaults.
107
- */
108
- PlacementAnimation.prototype.preparePlacementDefinition = function () {
109
- var position = this._placementDefinition.position;
110
- if (lodash_es_1.isString(position)) {
111
- position = parameter_1.Parameter.parseVector(position);
112
- this._placementDefinition.position = position;
113
- }
114
- if (this.mutable instanceof arcRotateCamera_1.ArcRotateCamera) {
115
- // parse the target
116
- if (lodash_es_1.isString(this._placementDefinition.target)) {
117
- this._placementDefinition.target = parameter_1.Parameter.parseVector(this._placementDefinition.target);
118
- }
119
- if (position) {
120
- // parse the position and calculate alpha, beta and radius with a "ghost camera"
121
- // @see https://www.babylonjs-playground.com/#4IVMG#0
122
- var ghostCam = this.mutable.clone('ghost');
123
- ghostCam.setPosition(position);
124
- lodash_es_1.merge(this._placementDefinition, {
125
- alpha: ghostCam.alpha,
126
- beta: ghostCam.beta,
127
- radius: ghostCam.radius,
128
- });
129
- delete this._placementDefinition.position;
130
- ghostCam.dispose();
131
- }
132
- else if (this._animationDefinition.shortestWay && this._placementDefinition.alpha !== undefined) {
133
- // transform the target's alpha value into the same turn as the current camera position to avoid movements > 360 degrees
134
- var alphaGap = this.mutable.alpha - this._placementDefinition.alpha;
135
- var cntTurns = Math.round(alphaGap / (2 * Math.PI));
136
- this._placementDefinition.alpha += 2 * Math.PI * cntTurns;
137
- }
138
- }
139
- };
140
- /**
141
- * Creates `Tweens` for the {@link PlacementDefinition} configured for this {@link PlacementAnimation}.
142
- */
143
- PlacementAnimation.prototype.createTweens = function () {
144
- for (var property in this._placementDefinition) {
145
- var propertyValue = lodash_es_1.get(this._placementDefinition, property);
146
- var tweenVars = {};
147
- var _mutable = this.mutable;
148
- if (propertyValue instanceof math_vector_1.Vector3) {
149
- // GSAP does not support mutation of complex objects, so we are forced
150
- // to use the properties on the object as mutable directly and mutate
151
- // the coordinates separately.
152
- _mutable = lodash_es_1.get(this.mutable, property);
153
- lodash_es_1.merge(tweenVars, { x: propertyValue.x, y: propertyValue.y, z: propertyValue.z });
154
- }
155
- else {
156
- lodash_es_1.set(tweenVars, property, propertyValue);
157
- }
158
- this._timeline.to(_mutable, tweenVars, 0); // Note: position 0 does the "parallel" stuff here
159
- }
160
- };
161
- return PlacementAnimation;
162
- }());
163
- exports.PlacementAnimation = PlacementAnimation;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.PlacementAnimation = void 0;
24
+ const parameter_1 = require("../classes/parameter");
25
+ const specStorage_1 = require("../store/specStorage");
26
+ const arcRotateCamera_1 = require("@babylonjs/core/Cameras/arcRotateCamera");
27
+ const math_vector_1 = require("@babylonjs/core/Maths/math.vector");
28
+ const gsap_1 = require("gsap");
29
+ const lodash_es_1 = require("lodash-es");
30
+ /**
31
+ * An {@link PlacementAnimation} handling `Tweens` of the `GSAP` API using configured {@link PlacementDefinition}s
32
+ * and {@link AnimationDefinition}s. It mutates the attributes in the given {@link PlacementDefinition} with the given
33
+ * {@link AnimationDefinition}. The latter can be anything the `GSAP` allows in its API. Please consider using the
34
+ * API of the {@link AnimationManager} to handle instances of this class in your consuming project.
35
+ */
36
+ class PlacementAnimation {
37
+ /**
38
+ * Constructor.
39
+ */
40
+ constructor(mutable, _placement, _animation) {
41
+ var _a;
42
+ this.mutable = mutable;
43
+ this._placement = _placement;
44
+ this._animation = _animation;
45
+ if ((0, lodash_es_1.isString)(_placement)) {
46
+ const placementDefinitions = specStorage_1.SpecStorage.get('scene.placements');
47
+ if (!placementDefinitions) {
48
+ throw new Error(`No PlacementDefinitions defined in JSON structure.`);
49
+ }
50
+ const placementDefinition = placementDefinitions[_placement];
51
+ if (!placementDefinition) {
52
+ throw new Error(`PlacementDefinition "${_placement}" not defined in JSON structure.`);
53
+ }
54
+ this._placementDefinition = (0, lodash_es_1.cloneDeep)(placementDefinition);
55
+ }
56
+ else {
57
+ this._placementDefinition = (0, lodash_es_1.cloneDeep)(_placement);
58
+ }
59
+ if ((0, lodash_es_1.isString)(_animation)) {
60
+ const animationDefinition = (_a = specStorage_1.SpecStorage.get('scene.animations')) === null || _a === void 0 ? void 0 : _a[_animation];
61
+ if (!animationDefinition) {
62
+ throw new Error(`AnimationDefinition "${_animation}" not defined in JSON structure.`);
63
+ }
64
+ this._animationDefinition = (0, lodash_es_1.cloneDeep)(animationDefinition);
65
+ }
66
+ else {
67
+ this._animationDefinition = (0, lodash_es_1.cloneDeep)(_animation);
68
+ }
69
+ this.prepareAnimationDefinition();
70
+ // create (shallow) copy for GSAP which doesn't contain `shortestWay`,
71
+ // because that's not part of the original `TweenVars` input typing and therefore leads to warnings
72
+ const _b = this._animationDefinition, { shortestWay } = _b, gsapTweenVars = __rest(_b, ["shortestWay"]);
73
+ this._timeline = gsap_1.gsap.timeline({
74
+ defaults: gsapTweenVars,
75
+ paused: true,
76
+ });
77
+ this.preparePlacementDefinition();
78
+ this.createTweens();
79
+ }
80
+ /**
81
+ * Plays all `Tweens` of this {@link PlacementAnimation}.
82
+ */
83
+ play() {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ yield this._timeline.play().then();
86
+ return this;
87
+ });
88
+ }
89
+ /**
90
+ * Pause all `Tweens` of this {@link PlacementAnimation}.
91
+ */
92
+ pause() {
93
+ this._timeline.pause();
94
+ return this;
95
+ }
96
+ /**
97
+ * Kills all `Tweens` of this {@link PlacementAnimation}.
98
+ */
99
+ kill() {
100
+ this._timeline.kill();
101
+ return this;
102
+ }
103
+ /**
104
+ * Creates a {@link AnimationDefinition} definition if not provided in the constructor and sets some defaults.
105
+ * Only custom properties from {@link AnimationDefinition} are adjusted, all {@link GSAPTweenVars} remain untouched.
106
+ */
107
+ prepareAnimationDefinition() {
108
+ // create an animation definition if not available yet
109
+ this._animationDefinition = this._animationDefinition || {};
110
+ // parse shortest way flag or set to `true` if not configured
111
+ if (this._animationDefinition.shortestWay !== undefined) {
112
+ this._animationDefinition.shortestWay = parameter_1.Parameter.parseBoolean(this._animationDefinition.shortestWay);
113
+ }
114
+ else {
115
+ this._animationDefinition.shortestWay = true;
116
+ }
117
+ }
118
+ /**
119
+ * Prepares different types of {@link PlacementDefinition} and sets some defaults.
120
+ */
121
+ preparePlacementDefinition() {
122
+ let position = this._placementDefinition.position;
123
+ if ((0, lodash_es_1.isString)(position)) {
124
+ position = parameter_1.Parameter.parseVector(position);
125
+ this._placementDefinition.position = position;
126
+ }
127
+ if (this.mutable instanceof arcRotateCamera_1.ArcRotateCamera) {
128
+ // parse the target
129
+ if ((0, lodash_es_1.isString)(this._placementDefinition.target)) {
130
+ this._placementDefinition.target = parameter_1.Parameter.parseVector(this._placementDefinition.target);
131
+ }
132
+ if (position) {
133
+ // parse the position and calculate alpha, beta and radius with a "ghost camera"
134
+ // @see https://www.babylonjs-playground.com/#4IVMG#0
135
+ const ghostCam = this.mutable.clone('ghost');
136
+ ghostCam.setPosition(position);
137
+ (0, lodash_es_1.merge)(this._placementDefinition, {
138
+ alpha: ghostCam.alpha,
139
+ beta: ghostCam.beta,
140
+ radius: ghostCam.radius,
141
+ });
142
+ delete this._placementDefinition.position;
143
+ ghostCam.dispose();
144
+ }
145
+ else if (this._animationDefinition.shortestWay && this._placementDefinition.alpha !== undefined) {
146
+ // transform the target's alpha value into the same turn as the current camera position to avoid movements > 360 degrees
147
+ const alphaGap = this.mutable.alpha - this._placementDefinition.alpha;
148
+ const cntTurns = Math.round(alphaGap / (2 * Math.PI));
149
+ this._placementDefinition.alpha += 2 * Math.PI * cntTurns;
150
+ }
151
+ }
152
+ }
153
+ /**
154
+ * Creates `Tweens` for the {@link PlacementDefinition} configured for this {@link PlacementAnimation}.
155
+ */
156
+ createTweens() {
157
+ for (const property in this._placementDefinition) {
158
+ const propertyValue = (0, lodash_es_1.get)(this._placementDefinition, property);
159
+ const tweenVars = {};
160
+ let _mutable = this.mutable;
161
+ if (propertyValue instanceof math_vector_1.Vector3) {
162
+ // GSAP does not support mutation of complex objects, so we are forced
163
+ // to use the properties on the object as mutable directly and mutate
164
+ // the coordinates separately.
165
+ _mutable = (0, lodash_es_1.get)(this.mutable, property);
166
+ (0, lodash_es_1.merge)(tweenVars, { x: propertyValue.x, y: propertyValue.y, z: propertyValue.z });
167
+ }
168
+ else {
169
+ (0, lodash_es_1.set)(tweenVars, property, propertyValue);
170
+ }
171
+ this._timeline.to(_mutable, tweenVars, 0); // Note: position 0 does the "parallel" stuff here
172
+ }
173
+ }
174
+ }
175
+ exports.PlacementAnimation = PlacementAnimation;
164
176
  //# sourceMappingURL=placementAnimation.js.map
@@ -1 +1 @@
1
- {"version":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