@spiffcommerce/preview 3.6.2-rc.6 → 3.6.2-rc.8

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 (45) hide show
  1. package/dist/_tslib.esm.js +33 -0
  2. package/dist/animation.esm.js +1364 -0
  3. package/dist/assetCache.esm.js +6 -0
  4. package/dist/assetCache.esm2.js +825 -0
  5. package/dist/blurPostProcess.esm.js +327 -0
  6. package/dist/bumpVertex.esm.js +497 -0
  7. package/dist/compatibilityOptions.esm.js +68 -0
  8. package/dist/configuration.esm.js +121 -0
  9. package/dist/core.esm.js +8135 -0
  10. package/dist/dynamicTexture.esm.js +105 -0
  11. package/dist/dynamicTexture.esm2.js +238 -0
  12. package/dist/easing.esm.js +130 -0
  13. package/dist/effectFallbacks.esm.js +378 -0
  14. package/dist/engine.esm.js +25504 -0
  15. package/dist/glbLoaderExtensions.esm.js +690 -0
  16. package/dist/glowLayer.esm.js +1621 -0
  17. package/dist/glowLayerManager.esm.js +50 -0
  18. package/dist/guid.esm.js +21 -0
  19. package/dist/hdrFilteringFunctions.esm.js +816 -0
  20. package/dist/helperFunctions.esm.js +5145 -0
  21. package/dist/index.esm.js +38 -79096
  22. package/dist/material.esm.js +115 -0
  23. package/dist/material.esm2.js +5245 -0
  24. package/dist/math.axis.esm.js +35 -0
  25. package/dist/math.color.esm.js +1661 -0
  26. package/dist/math.path.esm.js +15 -0
  27. package/dist/math.size.esm.js +137 -0
  28. package/dist/mesh.esm.js +11170 -0
  29. package/dist/modelContainer.esm.js +1895 -0
  30. package/dist/node.esm.js +795 -0
  31. package/dist/pbrBRDFFunctions.esm.js +122 -2
  32. package/dist/pbrMaterial.esm.js +8747 -0
  33. package/dist/productAnimations.esm.js +182 -0
  34. package/dist/productCamera.esm.js +14 -0
  35. package/dist/productCamera.esm2.js +3870 -0
  36. package/dist/renderConstants.esm.js +116 -0
  37. package/dist/renderingPipeline.esm.js +18 -0
  38. package/dist/renderingPipeline.esm2.js +3595 -0
  39. package/dist/sceneLoaderFlags.esm.js +51 -0
  40. package/dist/types.esm.js +30 -0
  41. package/dist/variants.esm.js +16 -0
  42. package/dist/variants.esm2.js +3097 -0
  43. package/dist/webRequest.esm.js +7777 -0
  44. package/package.json +6 -4
  45. package/dist/index.umd.js +0 -10010
@@ -0,0 +1,50 @@
1
+ import { G as GlowLayer } from './glowLayer.esm.js';
2
+ import './webRequest.esm.js';
3
+ import './math.color.esm.js';
4
+ import './engine.esm.js';
5
+ import './helperFunctions.esm.js';
6
+ import './math.size.esm.js';
7
+ import './compatibilityOptions.esm.js';
8
+ import './material.esm2.js';
9
+ import './node.esm.js';
10
+ import './blurPostProcess.esm.js';
11
+ import './effectFallbacks.esm.js';
12
+
13
+ /**
14
+ * Automatically manages construction and destruction of the glow layer.
15
+ */
16
+ class GlowLayerManager {
17
+ constructor(scene, intensity) {
18
+ this.scene = scene;
19
+ this.intensity = intensity;
20
+ this.meshCount = 0;
21
+ }
22
+ includeMeshes(meshes) {
23
+ if (!this.glowLayer) {
24
+ this.glowLayer = new GlowLayer('glow', this.scene);
25
+ this.glowLayer.intensity = this.intensity;
26
+ }
27
+ meshes.forEach((mesh) => {
28
+ if (!this.glowLayer.hasMesh(mesh)) {
29
+ this.glowLayer.addIncludedOnlyMesh(mesh);
30
+ this.meshCount++;
31
+ }
32
+ });
33
+ }
34
+ removeMeshes(meshes) {
35
+ if (!this.glowLayer)
36
+ return;
37
+ meshes.forEach((mesh) => {
38
+ if (this.glowLayer.hasMesh(mesh)) {
39
+ this.glowLayer.removeIncludedOnlyMesh(mesh);
40
+ this.meshCount--;
41
+ }
42
+ });
43
+ if (this.meshCount === 0) {
44
+ this.glowLayer.dispose();
45
+ this.glowLayer = undefined;
46
+ }
47
+ }
48
+ }
49
+
50
+ export { GlowLayerManager as default };
@@ -0,0 +1,21 @@
1
+ function generateGuid() {
2
+ const s4 = () => {
3
+ return Math.floor((1 + Math.random()) * 0x10000)
4
+ .toString(16)
5
+ .substring(1);
6
+ };
7
+ return (s4() +
8
+ s4() +
9
+ '-' +
10
+ s4() +
11
+ '-' +
12
+ s4() +
13
+ '-' +
14
+ s4() +
15
+ '-' +
16
+ s4() +
17
+ s4() +
18
+ s4());
19
+ }
20
+
21
+ export { generateGuid };