@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
|
@@ -1,50 +0,0 @@
|
|
|
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 };
|
package/dist/guid.esm.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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 };
|