@spiffcommerce/preview 3.6.2-rc.8 → 4.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 (45) hide show
  1. package/dist/index.esm.js +1576 -38
  2. package/dist/index.umd.js +1 -0
  3. package/package.json +4 -6
  4. package/dist/_tslib.esm.js +0 -33
  5. package/dist/animation.esm.js +0 -1364
  6. package/dist/assetCache.esm.js +0 -6
  7. package/dist/assetCache.esm2.js +0 -825
  8. package/dist/blurPostProcess.esm.js +0 -327
  9. package/dist/bumpVertex.esm.js +0 -497
  10. package/dist/compatibilityOptions.esm.js +0 -68
  11. package/dist/configuration.esm.js +0 -121
  12. package/dist/core.esm.js +0 -8135
  13. package/dist/dynamicTexture.esm.js +0 -105
  14. package/dist/dynamicTexture.esm2.js +0 -238
  15. package/dist/easing.esm.js +0 -130
  16. package/dist/effectFallbacks.esm.js +0 -378
  17. package/dist/engine.esm.js +0 -25504
  18. package/dist/glbLoaderExtensions.esm.js +0 -690
  19. package/dist/glowLayer.esm.js +0 -1621
  20. package/dist/glowLayerManager.esm.js +0 -50
  21. package/dist/guid.esm.js +0 -21
  22. package/dist/hdrFilteringFunctions.esm.js +0 -816
  23. package/dist/helperFunctions.esm.js +0 -5145
  24. package/dist/material.esm.js +0 -115
  25. package/dist/material.esm2.js +0 -5245
  26. package/dist/math.axis.esm.js +0 -35
  27. package/dist/math.color.esm.js +0 -1661
  28. package/dist/math.path.esm.js +0 -15
  29. package/dist/math.size.esm.js +0 -137
  30. package/dist/mesh.esm.js +0 -11170
  31. package/dist/modelContainer.esm.js +0 -1895
  32. package/dist/node.esm.js +0 -795
  33. package/dist/pbrBRDFFunctions.esm.js +0 -124
  34. package/dist/pbrMaterial.esm.js +8 -8739
  35. package/dist/productAnimations.esm.js +0 -182
  36. package/dist/productCamera.esm.js +0 -14
  37. package/dist/productCamera.esm2.js +0 -3870
  38. package/dist/renderConstants.esm.js +0 -116
  39. package/dist/renderingPipeline.esm.js +0 -18
  40. package/dist/renderingPipeline.esm2.js +1 -3594
  41. package/dist/sceneLoaderFlags.esm.js +0 -51
  42. package/dist/types.esm.js +0 -30
  43. package/dist/variants.esm.js +0 -16
  44. package/dist/variants.esm2.js +0 -3097
  45. package/dist/webRequest.esm.js +0 -7777
@@ -1,15 +0,0 @@
1
- import './math.color.esm.js';
2
- import './webRequest.esm.js';
3
-
4
- /**
5
- * Defines potential orientation for back face culling
6
- */
7
- var Orientation;
8
- (function (Orientation) {
9
- /**
10
- * Clockwise
11
- */
12
- Orientation[Orientation["CW"] = 0] = "CW";
13
- /** Counter clockwise */
14
- Orientation[Orientation["CCW"] = 1] = "CCW";
15
- })(Orientation || (Orientation = {}));
@@ -1,137 +0,0 @@
1
- /**
2
- * Size containing width and height
3
- */
4
- class Size {
5
- /**
6
- * Creates a Size object from the given width and height (floats).
7
- * @param width width of the new size
8
- * @param height height of the new size
9
- */
10
- constructor(width, height) {
11
- this.width = width;
12
- this.height = height;
13
- }
14
- /**
15
- * Returns a string with the Size width and height
16
- * @returns a string with the Size width and height
17
- */
18
- toString() {
19
- return `{W: ${this.width}, H: ${this.height}}`;
20
- }
21
- /**
22
- * "Size"
23
- * @returns the string "Size"
24
- */
25
- getClassName() {
26
- return "Size";
27
- }
28
- /**
29
- * Returns the Size hash code.
30
- * @returns a hash code for a unique width and height
31
- */
32
- getHashCode() {
33
- let hash = this.width | 0;
34
- hash = (hash * 397) ^ (this.height | 0);
35
- return hash;
36
- }
37
- /**
38
- * Updates the current size from the given one.
39
- * @param src the given size
40
- */
41
- copyFrom(src) {
42
- this.width = src.width;
43
- this.height = src.height;
44
- }
45
- /**
46
- * Updates in place the current Size from the given floats.
47
- * @param width width of the new size
48
- * @param height height of the new size
49
- * @returns the updated Size.
50
- */
51
- copyFromFloats(width, height) {
52
- this.width = width;
53
- this.height = height;
54
- return this;
55
- }
56
- /**
57
- * Updates in place the current Size from the given floats.
58
- * @param width width to set
59
- * @param height height to set
60
- * @returns the updated Size.
61
- */
62
- set(width, height) {
63
- return this.copyFromFloats(width, height);
64
- }
65
- /**
66
- * Multiplies the width and height by numbers
67
- * @param w factor to multiple the width by
68
- * @param h factor to multiple the height by
69
- * @returns a new Size set with the multiplication result of the current Size and the given floats.
70
- */
71
- multiplyByFloats(w, h) {
72
- return new Size(this.width * w, this.height * h);
73
- }
74
- /**
75
- * Clones the size
76
- * @returns a new Size copied from the given one.
77
- */
78
- clone() {
79
- return new Size(this.width, this.height);
80
- }
81
- /**
82
- * True if the current Size and the given one width and height are strictly equal.
83
- * @param other the other size to compare against
84
- * @returns True if the current Size and the given one width and height are strictly equal.
85
- */
86
- equals(other) {
87
- if (!other) {
88
- return false;
89
- }
90
- return this.width === other.width && this.height === other.height;
91
- }
92
- /**
93
- * The surface of the Size : width * height (float).
94
- */
95
- get surface() {
96
- return this.width * this.height;
97
- }
98
- /**
99
- * Create a new size of zero
100
- * @returns a new Size set to (0.0, 0.0)
101
- */
102
- static Zero() {
103
- return new Size(0.0, 0.0);
104
- }
105
- /**
106
- * Sums the width and height of two sizes
107
- * @param otherSize size to add to this size
108
- * @returns a new Size set as the addition result of the current Size and the given one.
109
- */
110
- add(otherSize) {
111
- const r = new Size(this.width + otherSize.width, this.height + otherSize.height);
112
- return r;
113
- }
114
- /**
115
- * Subtracts the width and height of two
116
- * @param otherSize size to subtract to this size
117
- * @returns a new Size set as the subtraction result of the given one from the current Size.
118
- */
119
- subtract(otherSize) {
120
- const r = new Size(this.width - otherSize.width, this.height - otherSize.height);
121
- return r;
122
- }
123
- /**
124
- * Creates a new Size set at the linear interpolation "amount" between "start" and "end"
125
- * @param start starting size to lerp between
126
- * @param end end size to lerp between
127
- * @param amount amount to lerp between the start and end values
128
- * @returns a new Size set at the linear interpolation "amount" between "start" and "end"
129
- */
130
- static Lerp(start, end, amount) {
131
- const w = start.width + (end.width - start.width) * amount;
132
- const h = start.height + (end.height - start.height) * amount;
133
- return new Size(w, h);
134
- }
135
- }
136
-
137
- export { Size as S };