@configura/babylon-view 1.2.1 → 1.3.0-alpha.3

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 (115) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +1 -1
  3. package/dist/animation/AnimatableObject.d.ts +8 -8
  4. package/dist/animation/AnimatableObject.js +3 -3
  5. package/dist/animation/animator/Animator.d.ts +33 -33
  6. package/dist/animation/animator/Animator.js +58 -58
  7. package/dist/animation/animator/AnimatorEasing.d.ts +16 -16
  8. package/dist/animation/animator/AnimatorEasing.js +31 -31
  9. package/dist/animation/animator/AnimatorEasingMatrix.d.ts +14 -14
  10. package/dist/animation/animator/AnimatorEasingMatrix.js +16 -16
  11. package/dist/animation/animator/AnimatorHighlight.d.ts +16 -16
  12. package/dist/animation/animator/AnimatorHighlight.js +32 -32
  13. package/dist/animation/animator/AnimatorPointToPoint.d.ts +8 -8
  14. package/dist/animation/animator/AnimatorPointToPoint.js +14 -14
  15. package/dist/animation/animator/AnimatorQueue.d.ts +13 -13
  16. package/dist/animation/animator/AnimatorQueue.js +57 -57
  17. package/dist/animation/animator/AnimatorScale.d.ts +8 -8
  18. package/dist/animation/animator/AnimatorScale.js +13 -13
  19. package/dist/animation/animator/AnimatorSpin.d.ts +10 -10
  20. package/dist/animation/animator/AnimatorSpin.js +13 -13
  21. package/dist/animation/animator/EasingFunctions.d.ts +35 -35
  22. package/dist/animation/animator/EasingFunctions.js +137 -137
  23. package/dist/animation/coordinator/Coordinator.d.ts +28 -28
  24. package/dist/animation/coordinator/Coordinator.js +47 -47
  25. package/dist/animation/coordinator/CoordinatorDropAndSpin.d.ts +22 -22
  26. package/dist/animation/coordinator/CoordinatorDropAndSpin.js +133 -133
  27. package/dist/animation/coordinator/CoordinatorIdentity.d.ts +11 -11
  28. package/dist/animation/coordinator/CoordinatorIdentity.js +12 -12
  29. package/dist/animation/coordinator/CoordinatorNodeQueues.d.ts +18 -18
  30. package/dist/animation/coordinator/CoordinatorNodeQueues.js +50 -50
  31. package/dist/animation/coordinator/CoordinatorPulse.d.ts +21 -21
  32. package/dist/animation/coordinator/CoordinatorPulse.js +47 -47
  33. package/dist/animation/coordinator/CoordinatorPulseBounce.d.ts +14 -14
  34. package/dist/animation/coordinator/CoordinatorPulseBounce.js +40 -40
  35. package/dist/animation/coordinator/CoordinatorPulseHighlight.d.ts +13 -13
  36. package/dist/animation/coordinator/CoordinatorPulseHighlight.js +34 -34
  37. package/dist/animation/coordinator/CoordinatorPulseInflate.d.ts +14 -14
  38. package/dist/animation/coordinator/CoordinatorPulseInflate.js +30 -30
  39. package/dist/camera/CameraCreator.d.ts +5 -5
  40. package/dist/camera/CameraCreator.js +4 -4
  41. package/dist/camera/CfgArcRotateCameraPointersInput.d.ts +10 -10
  42. package/dist/camera/CfgArcRotateCameraPointersInput.js +262 -262
  43. package/dist/camera/CfgOrbitalCamera.d.ts +68 -64
  44. package/dist/camera/CfgOrbitalCamera.js +250 -233
  45. package/dist/camera/CfgOrbitalCameraControlProps.d.ts +6 -6
  46. package/dist/camera/CfgOrbitalCameraControlProps.js +3 -3
  47. package/dist/camera/GradingApplier.d.ts +3 -3
  48. package/dist/camera/GradingApplier.js +48 -48
  49. package/dist/engine/EngineCreator.d.ts +3 -3
  50. package/dist/engine/EngineCreator.js +10 -10
  51. package/dist/geometry/CfgGeometry.d.ts +12 -12
  52. package/dist/geometry/CfgGeometry.js +117 -117
  53. package/dist/geometry/CfgMesh.d.ts +7 -7
  54. package/dist/geometry/CfgMesh.js +8 -8
  55. package/dist/geometry/geoSplitter.d.ts +8 -8
  56. package/dist/geometry/geoSplitter.js +192 -192
  57. package/dist/index.d.ts +13 -13
  58. package/dist/index.js +13 -13
  59. package/dist/light/CfgDirectionalLight.d.ts +8 -8
  60. package/dist/light/CfgDirectionalLight.js +18 -18
  61. package/dist/light/CfgHemisphericLight.d.ts +7 -7
  62. package/dist/light/CfgHemisphericLight.js +17 -17
  63. package/dist/light/CfgPointLight.d.ts +8 -8
  64. package/dist/light/CfgPointLight.js +18 -18
  65. package/dist/light/DefaultLightRig.d.ts +19 -19
  66. package/dist/light/DefaultLightRig.js +77 -77
  67. package/dist/light/LightRigCreator.d.ts +9 -9
  68. package/dist/light/LightRigCreator.js +3 -3
  69. package/dist/material/CfgMaterial.d.ts +53 -53
  70. package/dist/material/CfgMaterial.js +454 -454
  71. package/dist/material/DummyMaterialCreator.d.ts +4 -4
  72. package/dist/material/DummyMaterialCreator.js +15 -15
  73. package/dist/material/material.d.ts +18 -18
  74. package/dist/material/material.js +128 -128
  75. package/dist/material/texture.d.ts +14 -14
  76. package/dist/material/texture.js +304 -304
  77. package/dist/nodes/CfgContentRootNode.d.ts +19 -19
  78. package/dist/nodes/CfgContentRootNode.js +75 -75
  79. package/dist/nodes/CfgDeferredMeshNode.d.ts +48 -48
  80. package/dist/nodes/CfgDeferredMeshNode.js +347 -347
  81. package/dist/nodes/CfgProductNode.d.ts +61 -61
  82. package/dist/nodes/CfgProductNode.js +486 -486
  83. package/dist/nodes/CfgSymNode.d.ts +42 -42
  84. package/dist/nodes/CfgSymNode.js +216 -216
  85. package/dist/nodes/CfgSymRootNode.d.ts +33 -33
  86. package/dist/nodes/CfgSymRootNode.js +175 -175
  87. package/dist/nodes/CfgTransformNode.d.ts +29 -29
  88. package/dist/nodes/CfgTransformNode.js +81 -81
  89. package/dist/scene/SceneCreator.d.ts +6 -6
  90. package/dist/scene/SceneCreator.js +22 -22
  91. package/dist/utilities/CfgBoundingBox.d.ts +16 -16
  92. package/dist/utilities/CfgBoundingBox.js +64 -64
  93. package/dist/utilities/utilities3D.d.ts +26 -26
  94. package/dist/utilities/utilities3D.js +187 -187
  95. package/dist/utilities/utilitiesColor.d.ts +18 -18
  96. package/dist/utilities/utilitiesColor.js +48 -48
  97. package/dist/utilities/utilitiesImage.d.ts +6 -6
  98. package/dist/utilities/utilitiesImage.js +107 -107
  99. package/dist/utilities/utilitiesSymRootIdentifier.d.ts +5 -5
  100. package/dist/utilities/utilitiesSymRootIdentifier.js +20 -20
  101. package/dist/view/BaseView.d.ts +70 -70
  102. package/dist/view/BaseView.js +291 -291
  103. package/dist/view/BaseViewConfiguration.d.ts +32 -32
  104. package/dist/view/BaseViewConfiguration.js +8 -8
  105. package/dist/view/RenderEnv.d.ts +38 -38
  106. package/dist/view/RenderEnv.js +7 -7
  107. package/dist/view/SingleProductDefaultCameraView.d.ts +33 -33
  108. package/dist/view/SingleProductDefaultCameraView.js +141 -140
  109. package/dist/view/SingleProductDefaultCameraViewConfiguration.d.ts +46 -44
  110. package/dist/view/SingleProductDefaultCameraViewConfiguration.js +11 -11
  111. package/dist/view/SingleProductView.d.ts +42 -42
  112. package/dist/view/SingleProductView.js +205 -205
  113. package/dist/view/SingleProductViewConfiguration.d.ts +32 -32
  114. package/dist/view/SingleProductViewConfiguration.js +19 -19
  115. package/package.json +5 -5
@@ -1,75 +1,75 @@
1
- import { InspectableType } from "@babylonjs/core/Misc/iInspectable.js";
2
- import { CET_TO_BABYLON_MATRIX } from "../view/BaseView.js";
3
- import { CfgTransformNode } from "./CfgTransformNode.js";
4
- export class CfgContentRootNode extends CfgTransformNode {
5
- constructor(renderEnvironment) {
6
- super(renderEnvironment, "(ContentRoot)");
7
- this.setPreTransformMatrix(this.originalMatrix);
8
- }
9
- get cfgClassName() {
10
- return "CfgContentRootNode";
11
- }
12
- get originalMatrix() {
13
- return CET_TO_BABYLON_MATRIX.clone();
14
- }
15
- addInspectorProperties() {
16
- super.addInspectorProperties();
17
- this.addInspectableCustomProperty({
18
- label: "log geometry cache",
19
- propertyName: "_inspectorLogGeometryCache",
20
- type: InspectableType.Checkbox,
21
- });
22
- this.addInspectableCustomProperty({
23
- label: "log material cache",
24
- propertyName: "_inspectorLogMaterialCache",
25
- type: InspectableType.Checkbox,
26
- });
27
- this.addInspectableCustomProperty({
28
- label: "log symNode cache",
29
- propertyName: "_inspectorLogSymNodeCache",
30
- type: InspectableType.Checkbox,
31
- });
32
- this.addInspectableCustomProperty({
33
- label: "log texture image cache",
34
- propertyName: "_inspectorLogTextureImageCache",
35
- type: InspectableType.Checkbox,
36
- });
37
- this.addInspectableCustomProperty({
38
- label: "log derived normal map cache",
39
- propertyName: "_inspectorLogDerivedNormalMapCache",
40
- type: InspectableType.Checkbox,
41
- });
42
- }
43
- get _inspectorLogGeometryCache() {
44
- return false;
45
- }
46
- set _inspectorLogGeometryCache(x) {
47
- console.log("geometry cache", this._renderEnvironment.geometryCache._cache);
48
- console.log("scene.geometries", this._renderEnvironment.scene.geometries);
49
- }
50
- get _inspectorLogMaterialCache() {
51
- return false;
52
- }
53
- set _inspectorLogMaterialCache(x) {
54
- console.log("material cache", this._renderEnvironment.materialCache._cache);
55
- console.log("scene.materials", this._renderEnvironment.scene.materials);
56
- }
57
- get _inspectorLogSymNodeCache() {
58
- return false;
59
- }
60
- set _inspectorLogSymNodeCache(x) {
61
- console.log("symNode cache", this._renderEnvironment.symNodeCache._cache);
62
- }
63
- get _inspectorLogTextureImageCache() {
64
- return false;
65
- }
66
- set _inspectorLogTextureImageCache(x) {
67
- console.log("texture image cache", this._renderEnvironment.textureImageCache._cache);
68
- }
69
- get _inspectorLogDerivedNormalMapCache() {
70
- return false;
71
- }
72
- set _inspectorLogDerivedNormalMapCache(x) {
73
- console.log("derived normal map cache", this._renderEnvironment.derivedNormalMapCache._cache);
74
- }
75
- }
1
+ import { InspectableType } from "@babylonjs/core/Misc/iInspectable.js";
2
+ import { CET_TO_BABYLON_MATRIX } from "../view/BaseView.js";
3
+ import { CfgTransformNode } from "./CfgTransformNode.js";
4
+ export class CfgContentRootNode extends CfgTransformNode {
5
+ constructor(renderEnvironment) {
6
+ super(renderEnvironment, "(ContentRoot)");
7
+ this.setPreTransformMatrix(this.originalMatrix);
8
+ }
9
+ get cfgClassName() {
10
+ return "CfgContentRootNode";
11
+ }
12
+ get originalMatrix() {
13
+ return CET_TO_BABYLON_MATRIX.clone();
14
+ }
15
+ addInspectorProperties() {
16
+ super.addInspectorProperties();
17
+ this.addInspectableCustomProperty({
18
+ label: "log geometry cache",
19
+ propertyName: "_inspectorLogGeometryCache",
20
+ type: InspectableType.Checkbox,
21
+ });
22
+ this.addInspectableCustomProperty({
23
+ label: "log material cache",
24
+ propertyName: "_inspectorLogMaterialCache",
25
+ type: InspectableType.Checkbox,
26
+ });
27
+ this.addInspectableCustomProperty({
28
+ label: "log symNode cache",
29
+ propertyName: "_inspectorLogSymNodeCache",
30
+ type: InspectableType.Checkbox,
31
+ });
32
+ this.addInspectableCustomProperty({
33
+ label: "log texture image cache",
34
+ propertyName: "_inspectorLogTextureImageCache",
35
+ type: InspectableType.Checkbox,
36
+ });
37
+ this.addInspectableCustomProperty({
38
+ label: "log derived normal map cache",
39
+ propertyName: "_inspectorLogDerivedNormalMapCache",
40
+ type: InspectableType.Checkbox,
41
+ });
42
+ }
43
+ get _inspectorLogGeometryCache() {
44
+ return false;
45
+ }
46
+ set _inspectorLogGeometryCache(x) {
47
+ console.log("geometry cache", this._renderEnvironment.geometryCache._cache);
48
+ console.log("scene.geometries", this._renderEnvironment.scene.geometries);
49
+ }
50
+ get _inspectorLogMaterialCache() {
51
+ return false;
52
+ }
53
+ set _inspectorLogMaterialCache(x) {
54
+ console.log("material cache", this._renderEnvironment.materialCache._cache);
55
+ console.log("scene.materials", this._renderEnvironment.scene.materials);
56
+ }
57
+ get _inspectorLogSymNodeCache() {
58
+ return false;
59
+ }
60
+ set _inspectorLogSymNodeCache(x) {
61
+ console.log("symNode cache", this._renderEnvironment.symNodeCache._cache);
62
+ }
63
+ get _inspectorLogTextureImageCache() {
64
+ return false;
65
+ }
66
+ set _inspectorLogTextureImageCache(x) {
67
+ console.log("texture image cache", this._renderEnvironment.textureImageCache._cache);
68
+ }
69
+ get _inspectorLogDerivedNormalMapCache() {
70
+ return false;
71
+ }
72
+ set _inspectorLogDerivedNormalMapCache(x) {
73
+ console.log("derived normal map cache", this._renderEnvironment.derivedNormalMapCache._cache);
74
+ }
75
+ }
@@ -1,49 +1,49 @@
1
- import { Matrix } from "@babylonjs/core/Maths/math.vector.js";
2
- import { CfgMtrlSourceWithMetaData } from "@configura/web-api";
3
- import { SymGMaterial } from "@configura/web-core/dist/cm/format/cmsym/components/SymGMaterial.js";
4
- import { SymNode } from "@configura/web-core/dist/cm/format/cmsym/SymNode.js";
5
- import { DetailLevel, DetailMask } from "@configura/web-core/dist/cm/geometry/DetailMask.js";
6
- import { Logger, LogObservable, LogProducer } from "@configura/web-utilities";
7
- import { AnimatableObject } from "../animation/AnimatableObject.js";
8
- import { CoordinatorWithMeta } from "../animation/coordinator/Coordinator.js";
9
- import { MaterialMetaData } from "../material/material.js";
10
- import { CfgBoundingBox } from "../utilities/CfgBoundingBox.js";
11
- import { RenderEnv } from "../view/RenderEnv.js";
12
- import { CfgTransformNode } from "./CfgTransformNode.js";
13
- export declare class CfgDeferredMeshNode extends CfgTransformNode implements LogProducer, AnimatableObject {
14
- lod: DetailMask;
15
- private _gMaterial;
16
- private _meshDoubleSided;
17
- private _lowerLeftTextureOrigin;
18
- private _geo;
19
- static makeCfgDeferredMesh(logger: Logger, renderEnvironment: RenderEnv, detailLevel: DetailLevel, symNode: SymNode, gMaterial: SymGMaterial | undefined): Promise<CfgDeferredMeshNode | undefined>;
20
- get cfgClassName(): string;
21
- private _material;
22
- private _dummyMaterial;
23
- _materialMetaData: MaterialMetaData | undefined;
24
- private _materialLoadedPromise;
25
- private _materialIsDirty;
26
- _mtrlSourceWithMetaData: CfgMtrlSourceWithMetaData | undefined | null;
27
- private _splitGeoStatus;
28
- private _splitGeos;
29
- logger: LogObservable;
30
- private constructor();
31
- resetMaterial(): void;
32
- get originalMatrix(): Matrix;
33
- setMaterialAndLoad(mtrlWithMetaData: CfgMtrlSourceWithMetaData | undefined, animatorCoordinator?: CoordinatorWithMeta): Promise<void>;
34
- private loadMaterial;
35
- applyMaterial: () => void;
36
- isAllMeshMaterialsReady: () => boolean;
37
- startSplitGeo: (force?: boolean) => Promise<void>;
38
- get boundingBox(): CfgBoundingBox;
39
- protected addInspectorProperties(): void;
40
- private get _inspectorLodLevels();
41
- private get _inspectorSourcePath();
42
- private get _inspectorLogMtrlSourceWithMetaData();
43
- private set _inspectorLogMtrlSourceWithMetaData(value);
44
- private get _inspectorLogGMaterial();
45
- private set _inspectorLogGMaterial(value);
46
- private get _inspectorLogMultiGMaterial();
47
- private set _inspectorLogMultiGMaterial(value);
48
- }
1
+ import { Matrix } from "@babylonjs/core/Maths/math.vector.js";
2
+ import { CfgMtrlSourceWithMetaData } from "@configura/web-api";
3
+ import { SymGMaterial } from "@configura/web-core/dist/cm/format/cmsym/components/SymGMaterial.js";
4
+ import { SymNode } from "@configura/web-core/dist/cm/format/cmsym/SymNode.js";
5
+ import { DetailLevel, DetailMask } from "@configura/web-core/dist/cm/geometry/DetailMask.js";
6
+ import { Logger, LogObservable, LogProducer } from "@configura/web-utilities";
7
+ import { AnimatableObject } from "../animation/AnimatableObject.js";
8
+ import { CoordinatorWithMeta } from "../animation/coordinator/Coordinator.js";
9
+ import { MaterialMetaData } from "../material/material.js";
10
+ import { CfgBoundingBox } from "../utilities/CfgBoundingBox.js";
11
+ import { RenderEnv } from "../view/RenderEnv.js";
12
+ import { CfgTransformNode } from "./CfgTransformNode.js";
13
+ export declare class CfgDeferredMeshNode extends CfgTransformNode implements LogProducer, AnimatableObject {
14
+ lod: DetailMask;
15
+ private _gMaterial;
16
+ private _meshDoubleSided;
17
+ private _lowerLeftTextureOrigin;
18
+ private _geo;
19
+ static makeCfgDeferredMesh(logger: Logger, renderEnvironment: RenderEnv, detailLevel: DetailLevel, symNode: SymNode, gMaterial: SymGMaterial | undefined): Promise<CfgDeferredMeshNode | undefined>;
20
+ get cfgClassName(): string;
21
+ private _material;
22
+ private _dummyMaterial;
23
+ _materialMetaData: MaterialMetaData | undefined;
24
+ private _materialLoadedPromise;
25
+ private _materialIsDirty;
26
+ _mtrlSourceWithMetaData: CfgMtrlSourceWithMetaData | undefined | null;
27
+ private _splitGeoStatus;
28
+ private _splitGeos;
29
+ logger: LogObservable;
30
+ private constructor();
31
+ resetMaterial(): void;
32
+ get originalMatrix(): Matrix;
33
+ setMaterialAndLoad(mtrlWithMetaData: CfgMtrlSourceWithMetaData | undefined, animatorCoordinator?: CoordinatorWithMeta): Promise<void>;
34
+ private loadMaterial;
35
+ applyMaterial: () => void;
36
+ isAllMeshMaterialsReady: () => boolean;
37
+ startSplitGeo: (force?: boolean) => Promise<void>;
38
+ get boundingBox(): CfgBoundingBox;
39
+ protected addInspectorProperties(): void;
40
+ private get _inspectorLodLevels();
41
+ private get _inspectorSourcePath();
42
+ private get _inspectorLogMtrlSourceWithMetaData();
43
+ private set _inspectorLogMtrlSourceWithMetaData(value);
44
+ private get _inspectorLogGMaterial();
45
+ private set _inspectorLogGMaterial(value);
46
+ private get _inspectorLogMultiGMaterial();
47
+ private set _inspectorLogMultiGMaterial(value);
48
+ }
49
49
  //# sourceMappingURL=CfgDeferredMeshNode.d.ts.map