@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,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A class containing largely static configuration information.
|
|
3
|
-
*/
|
|
4
|
-
class RenderingConfiguration {
|
|
5
|
-
/**
|
|
6
|
-
* Returns the resolution expected for generated textures.
|
|
7
|
-
*/
|
|
8
|
-
static getDynamicTextureResolution() {
|
|
9
|
-
return this.getIsMobile() ||
|
|
10
|
-
!RenderingConfiguration.offscreenRenderingSupported()
|
|
11
|
-
? {
|
|
12
|
-
width: 1024,
|
|
13
|
-
height: 1024,
|
|
14
|
-
}
|
|
15
|
-
: {
|
|
16
|
-
width: 2048,
|
|
17
|
-
height: 2048,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Returns true when textures should generate mip maps
|
|
22
|
-
*/
|
|
23
|
-
static shouldMipMap() {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Returns true when multithreaded rendering is supported.
|
|
28
|
-
*/
|
|
29
|
-
static offscreenRenderingSupported() {
|
|
30
|
-
// Samsung browser has broken web worker custom fonts from v14. To be
|
|
31
|
-
// safe, if we detect this browser we immediately disable offscreen canvas. There
|
|
32
|
-
// may be a more specific feature we can detect to be more clean about this moving forwards.
|
|
33
|
-
if (navigator.userAgent.includes('SamsungBrowser')) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
// Otherwise we check for relevant required functionality
|
|
37
|
-
return !!window.Worker && !!window.OffscreenCanvas;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Returns the resolution expected for mirror textures.
|
|
41
|
-
*/
|
|
42
|
-
static getMirrorTextureResolution() {
|
|
43
|
-
return this.getIsMobile() ? 512 : 1024;
|
|
44
|
-
}
|
|
45
|
-
static getIsMobile() {
|
|
46
|
-
try {
|
|
47
|
-
if (typeof window === 'undefined' || !window.navigator) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent) || window.innerWidth <= 480);
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
const REFLECTION_PROBE_RESOLUTION = 128;
|
|
58
|
-
const renderingPipelineDefaults = {
|
|
59
|
-
antiAliasing: {
|
|
60
|
-
samples: 4,
|
|
61
|
-
fxaaEnabled: false,
|
|
62
|
-
},
|
|
63
|
-
bloom: {
|
|
64
|
-
enabled: false,
|
|
65
|
-
kernel: 64,
|
|
66
|
-
scale: 0.5,
|
|
67
|
-
threshold: 0.9,
|
|
68
|
-
weight: 0.15,
|
|
69
|
-
},
|
|
70
|
-
chromaticAberration: {
|
|
71
|
-
enabled: false,
|
|
72
|
-
aberrationAmount: 30,
|
|
73
|
-
direction: { x: 0, y: 0 },
|
|
74
|
-
radialIntensity: 0,
|
|
75
|
-
},
|
|
76
|
-
colorCurves: {
|
|
77
|
-
enabled: false,
|
|
78
|
-
// Color curves values implicitly set to undefined
|
|
79
|
-
},
|
|
80
|
-
depthOfField: {
|
|
81
|
-
enabled: false,
|
|
82
|
-
blurLevel: 'Low',
|
|
83
|
-
focalLength: 50,
|
|
84
|
-
focusDistance: 2000,
|
|
85
|
-
fStop: 1.4,
|
|
86
|
-
lensSize: 50,
|
|
87
|
-
},
|
|
88
|
-
grain: {
|
|
89
|
-
enabled: false,
|
|
90
|
-
animated: false,
|
|
91
|
-
intensity: 30,
|
|
92
|
-
},
|
|
93
|
-
misc: {
|
|
94
|
-
contrast: 1,
|
|
95
|
-
exposure: 1,
|
|
96
|
-
toneMappingEnabled: false,
|
|
97
|
-
toneMappingType: 'Standard',
|
|
98
|
-
},
|
|
99
|
-
sharpen: {
|
|
100
|
-
enabled: false,
|
|
101
|
-
colorAmount: 1,
|
|
102
|
-
edgeAmount: 0.3,
|
|
103
|
-
},
|
|
104
|
-
vignette: {
|
|
105
|
-
enabled: false,
|
|
106
|
-
blendMode: 'Multiply',
|
|
107
|
-
cameraFov: 0.5,
|
|
108
|
-
center: { x: 0, y: 0 },
|
|
109
|
-
colorHex: '#000000ff',
|
|
110
|
-
colorRgba: { r: 0, g: 0, b: 0, a: 1 },
|
|
111
|
-
stretch: 0,
|
|
112
|
-
weight: 1,
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export { REFLECTION_PROBE_RESOLUTION, RenderingConfiguration, renderingPipelineDefaults };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import './engine.esm.js';
|
|
2
|
-
import './math.color.esm.js';
|
|
3
|
-
import './webRequest.esm.js';
|
|
4
|
-
export { R as RenderingPipeline } from './renderingPipeline.esm2.js';
|
|
5
|
-
import './helperFunctions.esm.js';
|
|
6
|
-
import './dynamicTexture.esm2.js';
|
|
7
|
-
import './renderConstants.esm.js';
|
|
8
|
-
import './glowLayer.esm.js';
|
|
9
|
-
import './material.esm2.js';
|
|
10
|
-
import './node.esm.js';
|
|
11
|
-
import './compatibilityOptions.esm.js';
|
|
12
|
-
import './blurPostProcess.esm.js';
|
|
13
|
-
import './effectFallbacks.esm.js';
|
|
14
|
-
import './bumpVertex.esm.js';
|
|
15
|
-
import './pbrBRDFFunctions.esm.js';
|
|
16
|
-
import './animation.esm.js';
|
|
17
|
-
import './math.size.esm.js';
|
|
18
|
-
import './math.axis.esm.js';
|