@configura/babylon-view 1.4.0-alpha.4 → 1.5.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/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/animation/AnimatableObject.d.ts +8 -8
- package/dist/animation/AnimatableObject.js +3 -3
- package/dist/animation/animator/Animator.d.ts +33 -33
- package/dist/animation/animator/Animator.js +58 -58
- package/dist/animation/animator/AnimatorEasing.d.ts +16 -16
- package/dist/animation/animator/AnimatorEasing.js +31 -31
- package/dist/animation/animator/AnimatorEasingMatrix.d.ts +14 -14
- package/dist/animation/animator/AnimatorEasingMatrix.js +16 -16
- package/dist/animation/animator/AnimatorHighlight.d.ts +16 -16
- package/dist/animation/animator/AnimatorHighlight.js +32 -32
- package/dist/animation/animator/AnimatorPointToPoint.d.ts +8 -8
- package/dist/animation/animator/AnimatorPointToPoint.js +14 -14
- package/dist/animation/animator/AnimatorQueue.d.ts +13 -13
- package/dist/animation/animator/AnimatorQueue.js +57 -57
- package/dist/animation/animator/AnimatorScale.d.ts +8 -8
- package/dist/animation/animator/AnimatorScale.js +13 -13
- package/dist/animation/animator/AnimatorSpin.d.ts +10 -10
- package/dist/animation/animator/AnimatorSpin.js +13 -13
- package/dist/animation/animator/EasingFunctions.d.ts +35 -35
- package/dist/animation/animator/EasingFunctions.js +137 -137
- package/dist/animation/coordinator/Coordinator.d.ts +28 -28
- package/dist/animation/coordinator/Coordinator.js +47 -47
- package/dist/animation/coordinator/CoordinatorDropAndSpin.d.ts +22 -22
- package/dist/animation/coordinator/CoordinatorDropAndSpin.js +133 -133
- package/dist/animation/coordinator/CoordinatorIdentity.d.ts +11 -11
- package/dist/animation/coordinator/CoordinatorIdentity.js +12 -12
- package/dist/animation/coordinator/CoordinatorNodeQueues.d.ts +18 -18
- package/dist/animation/coordinator/CoordinatorNodeQueues.js +50 -50
- package/dist/animation/coordinator/CoordinatorPulse.d.ts +21 -21
- package/dist/animation/coordinator/CoordinatorPulse.js +47 -47
- package/dist/animation/coordinator/CoordinatorPulseBounce.d.ts +14 -14
- package/dist/animation/coordinator/CoordinatorPulseBounce.js +40 -40
- package/dist/animation/coordinator/CoordinatorPulseHighlight.d.ts +13 -13
- package/dist/animation/coordinator/CoordinatorPulseHighlight.js +34 -34
- package/dist/animation/coordinator/CoordinatorPulseInflate.d.ts +14 -14
- package/dist/animation/coordinator/CoordinatorPulseInflate.js +30 -30
- package/dist/camera/CameraCreator.d.ts +5 -5
- package/dist/camera/CameraCreator.js +4 -4
- package/dist/camera/CfgArcRotateCameraPointersInput.d.ts +26 -26
- package/dist/camera/CfgArcRotateCameraPointersInput.js +264 -264
- package/dist/camera/CfgOrbitalCamera.d.ts +68 -68
- package/dist/camera/CfgOrbitalCamera.js +250 -250
- package/dist/camera/CfgOrbitalCameraControlProps.d.ts +6 -6
- package/dist/camera/CfgOrbitalCameraControlProps.js +3 -3
- package/dist/camera/GradingApplier.d.ts +3 -3
- package/dist/camera/GradingApplier.js +48 -48
- package/dist/engine/EngineCreator.d.ts +3 -3
- package/dist/engine/EngineCreator.js +10 -10
- package/dist/geometry/CfgGeometry.d.ts +29 -29
- package/dist/geometry/CfgGeometry.js +146 -146
- package/dist/geometry/CfgMesh.d.ts +10 -10
- package/dist/geometry/CfgMesh.js +38 -38
- package/dist/geometry/geoSplitter.d.ts +8 -8
- package/dist/geometry/geoSplitter.js +192 -192
- package/dist/geometry/stretch/CfgMorphTarget.d.ts +15 -15
- package/dist/geometry/stretch/CfgMorphTarget.js +65 -65
- package/dist/geometry/stretch/CfgStretchData.d.ts +116 -114
- package/dist/geometry/stretch/CfgStretchData.js +346 -340
- package/dist/geometry/stretch/CfgStretchMorphGeometry.d.ts +16 -16
- package/dist/geometry/stretch/CfgStretchMorphGeometry.js +95 -95
- package/dist/index.d.ts +13 -13
- package/dist/index.js +13 -13
- package/dist/light/CfgDirectionalLight.d.ts +8 -8
- package/dist/light/CfgDirectionalLight.js +18 -18
- package/dist/light/CfgHemisphericLight.d.ts +7 -7
- package/dist/light/CfgHemisphericLight.js +17 -17
- package/dist/light/CfgPointLight.d.ts +8 -8
- package/dist/light/CfgPointLight.js +18 -18
- package/dist/light/DefaultLightRig.d.ts +19 -19
- package/dist/light/DefaultLightRig.js +77 -77
- package/dist/light/LightRigCreator.d.ts +9 -9
- package/dist/light/LightRigCreator.js +3 -3
- package/dist/material/CfgMaterial.d.ts +68 -68
- package/dist/material/CfgMaterial.js +482 -482
- package/dist/material/DummyMaterialCreator.d.ts +4 -4
- package/dist/material/DummyMaterialCreator.js +15 -15
- package/dist/material/material.d.ts +18 -18
- package/dist/material/material.js +128 -128
- package/dist/material/texture.d.ts +14 -14
- package/dist/material/texture.js +306 -306
- package/dist/nodes/CfgContentRootNode.d.ts +19 -19
- package/dist/nodes/CfgContentRootNode.js +75 -75
- package/dist/nodes/CfgDeferredMeshNode.d.ts +55 -55
- package/dist/nodes/CfgDeferredMeshNode.js +377 -377
- package/dist/nodes/CfgProductNode.d.ts +126 -126
- package/dist/nodes/CfgProductNode.js +578 -578
- package/dist/nodes/CfgSymNode.d.ts +50 -50
- package/dist/nodes/CfgSymNode.js +249 -249
- package/dist/nodes/CfgSymRootNode.d.ts +45 -45
- package/dist/nodes/CfgSymRootNode.js +220 -220
- package/dist/nodes/CfgTransformNode.d.ts +33 -33
- package/dist/nodes/CfgTransformNode.js +83 -83
- package/dist/scene/SceneCreator.d.ts +6 -6
- package/dist/scene/SceneCreator.js +22 -22
- package/dist/utilities/CfgBoundingBox.d.ts +21 -21
- package/dist/utilities/CfgBoundingBox.js +81 -81
- package/dist/utilities/anchor/anchor.d.ts +55 -51
- package/dist/utilities/anchor/anchor.js +140 -136
- package/dist/utilities/anchor/anchorMap.d.ts +20 -20
- package/dist/utilities/anchor/anchorMap.js +111 -111
- package/dist/utilities/utilities3D.d.ts +70 -70
- package/dist/utilities/utilities3D.js +265 -265
- package/dist/utilities/utilitiesColor.d.ts +18 -18
- package/dist/utilities/utilitiesColor.js +48 -48
- package/dist/utilities/utilitiesImage.d.ts +6 -6
- package/dist/utilities/utilitiesImage.js +107 -107
- package/dist/utilities/utilitiesSymRootIdentifier.d.ts +7 -7
- package/dist/utilities/utilitiesSymRootIdentifier.js +26 -26
- package/dist/view/BaseView.d.ts +78 -78
- package/dist/view/BaseView.js +297 -297
- package/dist/view/BaseViewConfiguration.d.ts +32 -32
- package/dist/view/BaseViewConfiguration.js +10 -8
- package/dist/view/RenderEnv.d.ts +43 -43
- package/dist/view/RenderEnv.js +7 -7
- package/dist/view/SingleProductDefaultCameraView.d.ts +33 -33
- package/dist/view/SingleProductDefaultCameraView.js +141 -141
- package/dist/view/SingleProductDefaultCameraViewConfiguration.d.ts +46 -46
- package/dist/view/SingleProductDefaultCameraViewConfiguration.js +11 -11
- package/dist/view/SingleProductView.d.ts +42 -42
- package/dist/view/SingleProductView.js +206 -206
- package/dist/view/SingleProductViewConfiguration.d.ts +32 -32
- package/dist/view/SingleProductViewConfiguration.js +19 -19
- package/package.json +5 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { UVMapper } from "@configura/web-core/dist/cm/core3D/uvmapper/UVMapper";
|
|
2
|
-
import { Logger } from "@configura/web-utilities";
|
|
3
|
-
import { CfgStretchData } from "./CfgStretchData.js";
|
|
4
|
-
/**
|
|
5
|
-
* Contains positions which are where stretching to twice the referenceLength would place them.
|
|
6
|
-
* This is raw data for CfgMorphTarget.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CfgMorphTwiceStretchedGeometry {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly stretchData: CfgStretchData;
|
|
11
|
-
readonly pos: Float32Array;
|
|
12
|
-
readonly uvs: Float32Array | undefined;
|
|
13
|
-
static make(logger: Logger, uvMapper: UVMapper | undefined, stretchData: CfgStretchData, pos: Float32Array, normals: Float32Array | undefined, uvs: Float32Array | undefined): CfgMorphTwiceStretchedGeometry;
|
|
14
|
-
private constructor();
|
|
15
|
-
cloneWithSubset(indices: Uint32Array | number[]): CfgMorphTwiceStretchedGeometry;
|
|
16
|
-
}
|
|
1
|
+
import { UVMapper } from "@configura/web-core/dist/cm/core3D/uvmapper/UVMapper";
|
|
2
|
+
import { Logger } from "@configura/web-utilities";
|
|
3
|
+
import { CfgStretchData } from "./CfgStretchData.js";
|
|
4
|
+
/**
|
|
5
|
+
* Contains positions which are where stretching to twice the referenceLength would place them.
|
|
6
|
+
* This is raw data for CfgMorphTarget.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CfgMorphTwiceStretchedGeometry {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly stretchData: CfgStretchData;
|
|
11
|
+
readonly pos: Float32Array;
|
|
12
|
+
readonly uvs: Float32Array | undefined;
|
|
13
|
+
static make(logger: Logger, uvMapper: UVMapper | undefined, stretchData: CfgStretchData, pos: Float32Array, normals: Float32Array | undefined, uvs: Float32Array | undefined): CfgMorphTwiceStretchedGeometry;
|
|
14
|
+
private constructor();
|
|
15
|
+
cloneWithSubset(indices: Uint32Array | number[]): CfgMorphTwiceStretchedGeometry;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=CfgStretchMorphGeometry.d.ts.map
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import { Vector3 } from "@babylonjs/core";
|
|
2
|
-
import { makeIndexMap } from "../CfgGeometry.js";
|
|
3
|
-
/**
|
|
4
|
-
* CET has a built in error in how bounds are calculated. I will add 1mm to each side of the
|
|
5
|
-
* bounding box. This gives pronounced errors on small objects, less so on larger objects. To be
|
|
6
|
-
* consistent with CET we also add 1 mm. Remove this when this is corrected in CET.
|
|
7
|
-
*/
|
|
8
|
-
const CET_COMPENSATION = 0.001;
|
|
9
|
-
/**
|
|
10
|
-
* Contains positions which are where stretching to twice the referenceLength would place them.
|
|
11
|
-
* This is raw data for CfgMorphTarget.
|
|
12
|
-
*/
|
|
13
|
-
export class CfgMorphTwiceStretchedGeometry {
|
|
14
|
-
constructor(id, stretchData, pos, uvs) {
|
|
15
|
-
this.id = id;
|
|
16
|
-
this.stretchData = stretchData;
|
|
17
|
-
this.pos = pos;
|
|
18
|
-
this.uvs = uvs;
|
|
19
|
-
}
|
|
20
|
-
static make(logger, uvMapper, stretchData, pos, normals, uvs) {
|
|
21
|
-
const posLength = pos.length;
|
|
22
|
-
const stretchedPos = new Float32Array(posLength);
|
|
23
|
-
const min = [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY];
|
|
24
|
-
const max = [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY];
|
|
25
|
-
const stretchedMin = [
|
|
26
|
-
Number.POSITIVE_INFINITY,
|
|
27
|
-
Number.POSITIVE_INFINITY,
|
|
28
|
-
Number.POSITIVE_INFINITY,
|
|
29
|
-
];
|
|
30
|
-
const stretchedMax = [
|
|
31
|
-
Number.NEGATIVE_INFINITY,
|
|
32
|
-
Number.NEGATIVE_INFINITY,
|
|
33
|
-
Number.NEGATIVE_INFINITY,
|
|
34
|
-
];
|
|
35
|
-
const c = new Vector3();
|
|
36
|
-
let p = 0;
|
|
37
|
-
for (let i = 0; i < posLength; i += 3) {
|
|
38
|
-
for (let axis = 0; axis < 3; axis++) {
|
|
39
|
-
p = pos[i + axis];
|
|
40
|
-
min[axis] = Math.min(min[axis], p);
|
|
41
|
-
max[axis] = Math.max(max[axis], p);
|
|
42
|
-
}
|
|
43
|
-
c.fromArray(pos, i);
|
|
44
|
-
c.addInPlace(stretchData.stretchPointToTwice(c));
|
|
45
|
-
c.toArray(stretchedPos, i);
|
|
46
|
-
for (let axis = 0; axis < 3; axis++) {
|
|
47
|
-
p = stretchedPos[i + axis];
|
|
48
|
-
stretchedMin[axis] = Math.min(stretchedMin[axis], p);
|
|
49
|
-
stretchedMax[axis] = Math.max(stretchedMax[axis], p);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
for (let axis = 0; axis < 3; axis++) {
|
|
53
|
-
min[axis] = min[axis] - CET_COMPENSATION;
|
|
54
|
-
max[axis] = max[axis] + CET_COMPENSATION;
|
|
55
|
-
stretchedMin[axis] = stretchedMin[axis] - CET_COMPENSATION;
|
|
56
|
-
stretchedMax[axis] = stretchedMax[axis] + CET_COMPENSATION;
|
|
57
|
-
}
|
|
58
|
-
const size = max.map((m, axis) => m - min[axis]);
|
|
59
|
-
const stretchedSize = stretchedMax.map((m, axis) => m - stretchedMin[axis]);
|
|
60
|
-
let stretchedUvs = uvs;
|
|
61
|
-
if (uvMapper !== undefined && normals !== undefined && uvs !== undefined) {
|
|
62
|
-
stretchedUvs = uvMapper.createUVCoordinatesForStretched(logger, stretchedPos, {
|
|
63
|
-
min: stretchedMin,
|
|
64
|
-
max: stretchedMax,
|
|
65
|
-
size: stretchedSize,
|
|
66
|
-
}, normals, pos, {
|
|
67
|
-
min,
|
|
68
|
-
max,
|
|
69
|
-
size,
|
|
70
|
-
}, uvs);
|
|
71
|
-
}
|
|
72
|
-
return new this(stretchData.measureParam, stretchData, stretchedPos, stretchedUvs);
|
|
73
|
-
}
|
|
74
|
-
cloneWithSubset(indices) {
|
|
75
|
-
const { indexMap } = makeIndexMap(indices);
|
|
76
|
-
const count = indexMap.size;
|
|
77
|
-
const thisPos = this.pos;
|
|
78
|
-
const newPos = new Float32Array(count * 3);
|
|
79
|
-
for (const [oldIndex, newIndex] of indexMap) {
|
|
80
|
-
newPos[newIndex * 3] = thisPos[oldIndex * 3];
|
|
81
|
-
newPos[newIndex * 3 + 1] = thisPos[oldIndex * 3 + 1];
|
|
82
|
-
newPos[newIndex * 3 + 2] = thisPos[oldIndex * 3 + 2];
|
|
83
|
-
}
|
|
84
|
-
const thisUvs = this.uvs;
|
|
85
|
-
let newUvs = undefined;
|
|
86
|
-
if (thisUvs !== undefined) {
|
|
87
|
-
newUvs = new Float32Array(count * 2);
|
|
88
|
-
for (const [oldIndex, newIndex] of indexMap) {
|
|
89
|
-
newUvs[newIndex * 2] = thisUvs[oldIndex * 2];
|
|
90
|
-
newUvs[newIndex * 2 + 1] = thisUvs[oldIndex * 2 + 1];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return new CfgMorphTwiceStretchedGeometry(this.id + ` (subset ${indices.length})`, this.stretchData, newPos, newUvs);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
1
|
+
import { Vector3 } from "@babylonjs/core";
|
|
2
|
+
import { makeIndexMap } from "../CfgGeometry.js";
|
|
3
|
+
/**
|
|
4
|
+
* CET has a built in error in how bounds are calculated. I will add 1mm to each side of the
|
|
5
|
+
* bounding box. This gives pronounced errors on small objects, less so on larger objects. To be
|
|
6
|
+
* consistent with CET we also add 1 mm. Remove this when this is corrected in CET.
|
|
7
|
+
*/
|
|
8
|
+
const CET_COMPENSATION = 0.001;
|
|
9
|
+
/**
|
|
10
|
+
* Contains positions which are where stretching to twice the referenceLength would place them.
|
|
11
|
+
* This is raw data for CfgMorphTarget.
|
|
12
|
+
*/
|
|
13
|
+
export class CfgMorphTwiceStretchedGeometry {
|
|
14
|
+
constructor(id, stretchData, pos, uvs) {
|
|
15
|
+
this.id = id;
|
|
16
|
+
this.stretchData = stretchData;
|
|
17
|
+
this.pos = pos;
|
|
18
|
+
this.uvs = uvs;
|
|
19
|
+
}
|
|
20
|
+
static make(logger, uvMapper, stretchData, pos, normals, uvs) {
|
|
21
|
+
const posLength = pos.length;
|
|
22
|
+
const stretchedPos = new Float32Array(posLength);
|
|
23
|
+
const min = [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY];
|
|
24
|
+
const max = [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY];
|
|
25
|
+
const stretchedMin = [
|
|
26
|
+
Number.POSITIVE_INFINITY,
|
|
27
|
+
Number.POSITIVE_INFINITY,
|
|
28
|
+
Number.POSITIVE_INFINITY,
|
|
29
|
+
];
|
|
30
|
+
const stretchedMax = [
|
|
31
|
+
Number.NEGATIVE_INFINITY,
|
|
32
|
+
Number.NEGATIVE_INFINITY,
|
|
33
|
+
Number.NEGATIVE_INFINITY,
|
|
34
|
+
];
|
|
35
|
+
const c = new Vector3();
|
|
36
|
+
let p = 0;
|
|
37
|
+
for (let i = 0; i < posLength; i += 3) {
|
|
38
|
+
for (let axis = 0; axis < 3; axis++) {
|
|
39
|
+
p = pos[i + axis];
|
|
40
|
+
min[axis] = Math.min(min[axis], p);
|
|
41
|
+
max[axis] = Math.max(max[axis], p);
|
|
42
|
+
}
|
|
43
|
+
c.fromArray(pos, i);
|
|
44
|
+
c.addInPlace(stretchData.stretchPointToTwice(c));
|
|
45
|
+
c.toArray(stretchedPos, i);
|
|
46
|
+
for (let axis = 0; axis < 3; axis++) {
|
|
47
|
+
p = stretchedPos[i + axis];
|
|
48
|
+
stretchedMin[axis] = Math.min(stretchedMin[axis], p);
|
|
49
|
+
stretchedMax[axis] = Math.max(stretchedMax[axis], p);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
for (let axis = 0; axis < 3; axis++) {
|
|
53
|
+
min[axis] = min[axis] - CET_COMPENSATION;
|
|
54
|
+
max[axis] = max[axis] + CET_COMPENSATION;
|
|
55
|
+
stretchedMin[axis] = stretchedMin[axis] - CET_COMPENSATION;
|
|
56
|
+
stretchedMax[axis] = stretchedMax[axis] + CET_COMPENSATION;
|
|
57
|
+
}
|
|
58
|
+
const size = max.map((m, axis) => m - min[axis]);
|
|
59
|
+
const stretchedSize = stretchedMax.map((m, axis) => m - stretchedMin[axis]);
|
|
60
|
+
let stretchedUvs = uvs;
|
|
61
|
+
if (uvMapper !== undefined && normals !== undefined && uvs !== undefined) {
|
|
62
|
+
stretchedUvs = uvMapper.createUVCoordinatesForStretched(logger, stretchedPos, {
|
|
63
|
+
min: stretchedMin,
|
|
64
|
+
max: stretchedMax,
|
|
65
|
+
size: stretchedSize,
|
|
66
|
+
}, normals, pos, {
|
|
67
|
+
min,
|
|
68
|
+
max,
|
|
69
|
+
size,
|
|
70
|
+
}, uvs);
|
|
71
|
+
}
|
|
72
|
+
return new this(stretchData.measureParam, stretchData, stretchedPos, stretchedUvs);
|
|
73
|
+
}
|
|
74
|
+
cloneWithSubset(indices) {
|
|
75
|
+
const { indexMap } = makeIndexMap(indices);
|
|
76
|
+
const count = indexMap.size;
|
|
77
|
+
const thisPos = this.pos;
|
|
78
|
+
const newPos = new Float32Array(count * 3);
|
|
79
|
+
for (const [oldIndex, newIndex] of indexMap) {
|
|
80
|
+
newPos[newIndex * 3] = thisPos[oldIndex * 3];
|
|
81
|
+
newPos[newIndex * 3 + 1] = thisPos[oldIndex * 3 + 1];
|
|
82
|
+
newPos[newIndex * 3 + 2] = thisPos[oldIndex * 3 + 2];
|
|
83
|
+
}
|
|
84
|
+
const thisUvs = this.uvs;
|
|
85
|
+
let newUvs = undefined;
|
|
86
|
+
if (thisUvs !== undefined) {
|
|
87
|
+
newUvs = new Float32Array(count * 2);
|
|
88
|
+
for (const [oldIndex, newIndex] of indexMap) {
|
|
89
|
+
newUvs[newIndex * 2] = thisUvs[oldIndex * 2];
|
|
90
|
+
newUvs[newIndex * 2 + 1] = thisUvs[oldIndex * 2 + 1];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return new CfgMorphTwiceStretchedGeometry(this.id + ` (subset ${indices.length})`, this.stretchData, newPos, newUvs);
|
|
94
|
+
}
|
|
95
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./animation/coordinator/CoordinatorDropAndSpin.js";
|
|
2
|
-
export * from "./animation/coordinator/CoordinatorPulseBounce.js";
|
|
3
|
-
export * from "./animation/coordinator/CoordinatorPulseHighlight.js";
|
|
4
|
-
export * from "./animation/coordinator/CoordinatorPulseInflate.js";
|
|
5
|
-
export * from "./camera/CfgOrbitalCameraControlProps.js";
|
|
6
|
-
export * from "./utilities/utilities3D.js";
|
|
7
|
-
export * from "./view/BaseView.js";
|
|
8
|
-
export * from "./view/BaseViewConfiguration.js";
|
|
9
|
-
export * from "./view/RenderEnv.js";
|
|
10
|
-
export * from "./view/SingleProductDefaultCameraView.js";
|
|
11
|
-
export * from "./view/SingleProductDefaultCameraViewConfiguration.js";
|
|
12
|
-
export * from "./view/SingleProductView.js";
|
|
13
|
-
export * from "./view/SingleProductViewConfiguration.js";
|
|
1
|
+
export * from "./animation/coordinator/CoordinatorDropAndSpin.js";
|
|
2
|
+
export * from "./animation/coordinator/CoordinatorPulseBounce.js";
|
|
3
|
+
export * from "./animation/coordinator/CoordinatorPulseHighlight.js";
|
|
4
|
+
export * from "./animation/coordinator/CoordinatorPulseInflate.js";
|
|
5
|
+
export * from "./camera/CfgOrbitalCameraControlProps.js";
|
|
6
|
+
export * from "./utilities/utilities3D.js";
|
|
7
|
+
export * from "./view/BaseView.js";
|
|
8
|
+
export * from "./view/BaseViewConfiguration.js";
|
|
9
|
+
export * from "./view/RenderEnv.js";
|
|
10
|
+
export * from "./view/SingleProductDefaultCameraView.js";
|
|
11
|
+
export * from "./view/SingleProductDefaultCameraViewConfiguration.js";
|
|
12
|
+
export * from "./view/SingleProductView.js";
|
|
13
|
+
export * from "./view/SingleProductViewConfiguration.js";
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from "./animation/coordinator/CoordinatorDropAndSpin.js";
|
|
2
|
-
export * from "./animation/coordinator/CoordinatorPulseBounce.js";
|
|
3
|
-
export * from "./animation/coordinator/CoordinatorPulseHighlight.js";
|
|
4
|
-
export * from "./animation/coordinator/CoordinatorPulseInflate.js";
|
|
5
|
-
export * from "./camera/CfgOrbitalCameraControlProps.js";
|
|
6
|
-
export * from "./utilities/utilities3D.js";
|
|
7
|
-
export * from "./view/BaseView.js";
|
|
8
|
-
export * from "./view/BaseViewConfiguration.js";
|
|
9
|
-
export * from "./view/RenderEnv.js";
|
|
10
|
-
export * from "./view/SingleProductDefaultCameraView.js";
|
|
11
|
-
export * from "./view/SingleProductDefaultCameraViewConfiguration.js";
|
|
12
|
-
export * from "./view/SingleProductView.js";
|
|
13
|
-
export * from "./view/SingleProductViewConfiguration.js";
|
|
1
|
+
export * from "./animation/coordinator/CoordinatorDropAndSpin.js";
|
|
2
|
+
export * from "./animation/coordinator/CoordinatorPulseBounce.js";
|
|
3
|
+
export * from "./animation/coordinator/CoordinatorPulseHighlight.js";
|
|
4
|
+
export * from "./animation/coordinator/CoordinatorPulseInflate.js";
|
|
5
|
+
export * from "./camera/CfgOrbitalCameraControlProps.js";
|
|
6
|
+
export * from "./utilities/utilities3D.js";
|
|
7
|
+
export * from "./view/BaseView.js";
|
|
8
|
+
export * from "./view/BaseViewConfiguration.js";
|
|
9
|
+
export * from "./view/RenderEnv.js";
|
|
10
|
+
export * from "./view/SingleProductDefaultCameraView.js";
|
|
11
|
+
export * from "./view/SingleProductDefaultCameraViewConfiguration.js";
|
|
12
|
+
export * from "./view/SingleProductView.js";
|
|
13
|
+
export * from "./view/SingleProductViewConfiguration.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DirectionalLight } from "@babylonjs/core/Lights/directionalLight.js";
|
|
2
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
4
|
-
import { Node } from "@babylonjs/core/node.js";
|
|
5
|
-
import { Scene } from "@babylonjs/core/scene.js";
|
|
6
|
-
export declare class CfgDirectionalLight extends DirectionalLight {
|
|
7
|
-
constructor(name: string, scene: Scene, parent?: Node, direction?: Vector3, color?: Color3 | string | number, intensity?: number);
|
|
8
|
-
}
|
|
1
|
+
import { DirectionalLight } from "@babylonjs/core/Lights/directionalLight.js";
|
|
2
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
4
|
+
import { Node } from "@babylonjs/core/node.js";
|
|
5
|
+
import { Scene } from "@babylonjs/core/scene.js";
|
|
6
|
+
export declare class CfgDirectionalLight extends DirectionalLight {
|
|
7
|
+
constructor(name: string, scene: Scene, parent?: Node, direction?: Vector3, color?: Color3 | string | number, intensity?: number);
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=CfgDirectionalLight.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { DirectionalLight } from "@babylonjs/core/Lights/directionalLight.js";
|
|
2
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
3
|
-
import { toColor3 } from "../utilities/utilitiesColor.js";
|
|
4
|
-
export class CfgDirectionalLight extends DirectionalLight {
|
|
5
|
-
constructor(name, scene, parent, direction, color, intensity) {
|
|
6
|
-
if (direction === undefined) {
|
|
7
|
-
direction = Vector3.Down();
|
|
8
|
-
}
|
|
9
|
-
super(name, direction, scene);
|
|
10
|
-
if (parent) {
|
|
11
|
-
this.parent = parent;
|
|
12
|
-
}
|
|
13
|
-
this.specular = this.diffuse = toColor3(color);
|
|
14
|
-
if (intensity !== undefined) {
|
|
15
|
-
this.intensity = intensity;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
import { DirectionalLight } from "@babylonjs/core/Lights/directionalLight.js";
|
|
2
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
3
|
+
import { toColor3 } from "../utilities/utilitiesColor.js";
|
|
4
|
+
export class CfgDirectionalLight extends DirectionalLight {
|
|
5
|
+
constructor(name, scene, parent, direction, color, intensity) {
|
|
6
|
+
if (direction === undefined) {
|
|
7
|
+
direction = Vector3.Down();
|
|
8
|
+
}
|
|
9
|
+
super(name, direction, scene);
|
|
10
|
+
if (parent) {
|
|
11
|
+
this.parent = parent;
|
|
12
|
+
}
|
|
13
|
+
this.specular = this.diffuse = toColor3(color);
|
|
14
|
+
if (intensity !== undefined) {
|
|
15
|
+
this.intensity = intensity;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight.js";
|
|
2
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
-
import { Node } from "@babylonjs/core/node.js";
|
|
4
|
-
import { Scene } from "@babylonjs/core/scene.js";
|
|
5
|
-
export declare class CfgHemisphericLight extends HemisphericLight {
|
|
6
|
-
constructor(name: string, scene: Scene, parent?: Node, color?: Color3 | string | number, intensity?: number);
|
|
7
|
-
}
|
|
1
|
+
import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight.js";
|
|
2
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
+
import { Node } from "@babylonjs/core/node.js";
|
|
4
|
+
import { Scene } from "@babylonjs/core/scene.js";
|
|
5
|
+
export declare class CfgHemisphericLight extends HemisphericLight {
|
|
6
|
+
constructor(name: string, scene: Scene, parent?: Node, color?: Color3 | string | number, intensity?: number);
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=CfgHemisphericLight.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight.js";
|
|
2
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
4
|
-
import { toColor3 } from "../utilities/utilitiesColor.js";
|
|
5
|
-
export class CfgHemisphericLight extends HemisphericLight {
|
|
6
|
-
constructor(name, scene, parent, color, intensity) {
|
|
7
|
-
super(name, new Vector3(0, 0, 1), scene);
|
|
8
|
-
if (parent) {
|
|
9
|
-
this.parent = parent;
|
|
10
|
-
}
|
|
11
|
-
this.groundColor = Color3.Black();
|
|
12
|
-
this.specular = this.diffuse = toColor3(color);
|
|
13
|
-
if (intensity !== undefined) {
|
|
14
|
-
this.intensity = intensity;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight.js";
|
|
2
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
4
|
+
import { toColor3 } from "../utilities/utilitiesColor.js";
|
|
5
|
+
export class CfgHemisphericLight extends HemisphericLight {
|
|
6
|
+
constructor(name, scene, parent, color, intensity) {
|
|
7
|
+
super(name, new Vector3(0, 0, 1), scene);
|
|
8
|
+
if (parent) {
|
|
9
|
+
this.parent = parent;
|
|
10
|
+
}
|
|
11
|
+
this.groundColor = Color3.Black();
|
|
12
|
+
this.specular = this.diffuse = toColor3(color);
|
|
13
|
+
if (intensity !== undefined) {
|
|
14
|
+
this.intensity = intensity;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PointLight } from "@babylonjs/core/Lights/pointLight.js";
|
|
2
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
4
|
-
import { Node } from "@babylonjs/core/node.js";
|
|
5
|
-
import { Scene } from "@babylonjs/core/scene.js";
|
|
6
|
-
export declare class CfgPointLight extends PointLight {
|
|
7
|
-
constructor(name: string, scene: Scene, parent?: Node, position?: Vector3, color?: Color3 | string | number, intensity?: number);
|
|
8
|
-
}
|
|
1
|
+
import { PointLight } from "@babylonjs/core/Lights/pointLight.js";
|
|
2
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
4
|
+
import { Node } from "@babylonjs/core/node.js";
|
|
5
|
+
import { Scene } from "@babylonjs/core/scene.js";
|
|
6
|
+
export declare class CfgPointLight extends PointLight {
|
|
7
|
+
constructor(name: string, scene: Scene, parent?: Node, position?: Vector3, color?: Color3 | string | number, intensity?: number);
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=CfgPointLight.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { PointLight } from "@babylonjs/core/Lights/pointLight.js";
|
|
2
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
3
|
-
import { toColor3 } from "../utilities/utilitiesColor.js";
|
|
4
|
-
export class CfgPointLight extends PointLight {
|
|
5
|
-
constructor(name, scene, parent, position, color, intensity) {
|
|
6
|
-
if (position === undefined) {
|
|
7
|
-
position = Vector3.Zero();
|
|
8
|
-
}
|
|
9
|
-
super(name, position, scene);
|
|
10
|
-
if (parent) {
|
|
11
|
-
this.parent = parent;
|
|
12
|
-
}
|
|
13
|
-
this.specular = this.diffuse = toColor3(color);
|
|
14
|
-
if (intensity !== undefined) {
|
|
15
|
-
this.intensity = intensity;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
import { PointLight } from "@babylonjs/core/Lights/pointLight.js";
|
|
2
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
3
|
+
import { toColor3 } from "../utilities/utilitiesColor.js";
|
|
4
|
+
export class CfgPointLight extends PointLight {
|
|
5
|
+
constructor(name, scene, parent, position, color, intensity) {
|
|
6
|
+
if (position === undefined) {
|
|
7
|
+
position = Vector3.Zero();
|
|
8
|
+
}
|
|
9
|
+
super(name, position, scene);
|
|
10
|
+
if (parent) {
|
|
11
|
+
this.parent = parent;
|
|
12
|
+
}
|
|
13
|
+
this.specular = this.diffuse = toColor3(color);
|
|
14
|
+
if (intensity !== undefined) {
|
|
15
|
+
this.intensity = intensity;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Node } from "@babylonjs/core/node.js";
|
|
2
|
-
import { Scene } from "@babylonjs/core/scene.js";
|
|
3
|
-
import { LightRig, LightRigCreator } from "./LightRigCreator.js";
|
|
4
|
-
export declare const getDefaultLightRigCreator: (relativeToCamera: boolean) => LightRigCreator;
|
|
5
|
-
export declare class DefaultLightRig extends LightRig {
|
|
6
|
-
private _allLights;
|
|
7
|
-
private _allPointLights;
|
|
8
|
-
private _defaultIntensities;
|
|
9
|
-
private _dimLevel;
|
|
10
|
-
get dimLevel(): number;
|
|
11
|
-
set dimLevel(v: number);
|
|
12
|
-
private _scale;
|
|
13
|
-
get scale(): number;
|
|
14
|
-
set scale(v: number);
|
|
15
|
-
private applyDimLevel;
|
|
16
|
-
private applyScale;
|
|
17
|
-
constructor(scene: Scene, target: Node | undefined);
|
|
18
|
-
get lightCount(): number;
|
|
19
|
-
}
|
|
1
|
+
import { Node } from "@babylonjs/core/node.js";
|
|
2
|
+
import { Scene } from "@babylonjs/core/scene.js";
|
|
3
|
+
import { LightRig, LightRigCreator } from "./LightRigCreator.js";
|
|
4
|
+
export declare const getDefaultLightRigCreator: (relativeToCamera: boolean) => LightRigCreator;
|
|
5
|
+
export declare class DefaultLightRig extends LightRig {
|
|
6
|
+
private _allLights;
|
|
7
|
+
private _allPointLights;
|
|
8
|
+
private _defaultIntensities;
|
|
9
|
+
private _dimLevel;
|
|
10
|
+
get dimLevel(): number;
|
|
11
|
+
set dimLevel(v: number);
|
|
12
|
+
private _scale;
|
|
13
|
+
get scale(): number;
|
|
14
|
+
set scale(v: number);
|
|
15
|
+
private applyDimLevel;
|
|
16
|
+
private applyScale;
|
|
17
|
+
constructor(scene: Scene, target: Node | undefined);
|
|
18
|
+
get lightCount(): number;
|
|
19
|
+
}
|
|
20
20
|
//# sourceMappingURL=DefaultLightRig.d.ts.map
|