@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.
- package/dist/index.esm.js +1576 -38
- package/dist/index.umd.js +1 -0
- package/package.json +4 -6
- package/dist/_tslib.esm.js +0 -33
- package/dist/animation.esm.js +0 -1364
- package/dist/assetCache.esm.js +0 -6
- package/dist/assetCache.esm2.js +0 -825
- package/dist/blurPostProcess.esm.js +0 -327
- package/dist/bumpVertex.esm.js +0 -497
- package/dist/compatibilityOptions.esm.js +0 -68
- package/dist/configuration.esm.js +0 -121
- package/dist/core.esm.js +0 -8135
- package/dist/dynamicTexture.esm.js +0 -105
- package/dist/dynamicTexture.esm2.js +0 -238
- package/dist/easing.esm.js +0 -130
- package/dist/effectFallbacks.esm.js +0 -378
- package/dist/engine.esm.js +0 -25504
- package/dist/glbLoaderExtensions.esm.js +0 -690
- package/dist/glowLayer.esm.js +0 -1621
- package/dist/glowLayerManager.esm.js +0 -50
- package/dist/guid.esm.js +0 -21
- package/dist/hdrFilteringFunctions.esm.js +0 -816
- package/dist/helperFunctions.esm.js +0 -5145
- package/dist/material.esm.js +0 -115
- package/dist/material.esm2.js +0 -5245
- package/dist/math.axis.esm.js +0 -35
- package/dist/math.color.esm.js +0 -1661
- package/dist/math.path.esm.js +0 -15
- package/dist/math.size.esm.js +0 -137
- package/dist/mesh.esm.js +0 -11170
- package/dist/modelContainer.esm.js +0 -1895
- package/dist/node.esm.js +0 -795
- package/dist/pbrBRDFFunctions.esm.js +0 -124
- package/dist/pbrMaterial.esm.js +8 -8739
- package/dist/productAnimations.esm.js +0 -182
- package/dist/productCamera.esm.js +0 -14
- package/dist/productCamera.esm2.js +0 -3870
- package/dist/renderConstants.esm.js +0 -116
- package/dist/renderingPipeline.esm.js +0 -18
- package/dist/renderingPipeline.esm2.js +1 -3594
- package/dist/sceneLoaderFlags.esm.js +0 -51
- package/dist/types.esm.js +0 -30
- package/dist/variants.esm.js +0 -16
- package/dist/variants.esm2.js +0 -3097
- package/dist/webRequest.esm.js +0 -7777
package/dist/math.path.esm.js
DELETED
|
@@ -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 = {}));
|
package/dist/math.size.esm.js
DELETED
|
@@ -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 };
|