zakeke-configurator-react 0.1.370 → 0.1.372

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 (83) hide show
  1. package/README.md +283 -283
  2. package/dist/declarations/3D/src/Components/AR/AndroidAR.d.ts +7 -7
  3. package/dist/declarations/3D/src/Components/ActionExecutor/SceneActionExecutor.d.ts +87 -87
  4. package/dist/declarations/3D/src/Components/CollapseExplode/MeshLocationsManager.d.ts +44 -44
  5. package/dist/declarations/3D/src/Components/DesignManagers/MeshDesignManager.d.ts +166 -166
  6. package/dist/declarations/3D/src/Components/DesignManagers/SceneDesignManager.d.ts +63 -63
  7. package/dist/declarations/3D/src/Components/Draco/DracoCompression.d.ts +106 -106
  8. package/dist/declarations/3D/src/Components/Environment/EnvironmentManager.d.ts +43 -43
  9. package/dist/declarations/3D/src/Components/Glow/GlowManager.d.ts +26 -26
  10. package/dist/declarations/3D/src/Components/IncrementalFiles/IncrementalFiles.d.ts +26 -26
  11. package/dist/declarations/3D/src/Components/IncrementalFiles/MakeIncremental.d.ts +11 -11
  12. package/dist/declarations/3D/src/Components/InfoPointsManager/InfoPointsManager.d.ts +122 -122
  13. package/dist/declarations/3D/src/Components/MaterialsPreview/MaterialsPreview.d.ts +16 -16
  14. package/dist/declarations/3D/src/Components/MeshExpander/MeshExpander.d.ts +24 -24
  15. package/dist/declarations/3D/src/Components/NormalMap/ProceduralNormalMap.d.ts +30 -30
  16. package/dist/declarations/3D/src/Components/Preview3D/Preview3DConfigurationManager.d.ts +51 -51
  17. package/dist/declarations/3D/src/Components/ProceduralTextures/BaseProceduralTexture.d.ts +16 -16
  18. package/dist/declarations/3D/src/Components/ProceduralTextures/BlendProceduralTexture.d.ts +31 -31
  19. package/dist/declarations/3D/src/Components/ProceduralTextures/BlurXProceduralTexture.d.ts +23 -23
  20. package/dist/declarations/3D/src/Components/ProceduralTextures/BlurYProceduralTexture.d.ts +23 -23
  21. package/dist/declarations/3D/src/Components/ProceduralTextures/ForegroundBackgroundProceduralTexture.d.ts +26 -26
  22. package/dist/declarations/3D/src/Components/ProceduralTextures/MoveProceduralTexture.d.ts +23 -23
  23. package/dist/declarations/3D/src/Components/ProceduralTextures/MultiplyProceduralTexture.d.ts +23 -23
  24. package/dist/declarations/3D/src/Components/ProceduralTextures/NormalMapProceduralTexture.d.ts +35 -35
  25. package/dist/declarations/3D/src/Components/ProceduralTextures/OpacityProceduralTexture.d.ts +23 -23
  26. package/dist/declarations/3D/src/Components/ProceduralTextures/OverlayProceduralTexture.d.ts +23 -23
  27. package/dist/declarations/3D/src/Components/SceneHelper.d.ts +352 -352
  28. package/dist/declarations/3D/src/Components/ScenePreview/ScenePreview.d.ts +19 -19
  29. package/dist/declarations/3D/src/Components/SceneToBlobs/SceneToBlobs.d.ts +31 -31
  30. package/dist/declarations/3D/src/Components/Selector/ElementSelector.d.ts +42 -42
  31. package/dist/declarations/3D/src/Components/Shadows/InnerShadow.d.ts +18 -18
  32. package/dist/declarations/3D/src/Components/Shadows/OuterShadow.d.ts +16 -16
  33. package/dist/declarations/3D/src/Components/USDZ/UsdzHelper.d.ts +4 -4
  34. package/dist/declarations/3D/src/Enumerations.d.ts +15 -15
  35. package/dist/declarations/3D/src/Helpers/debounce.d.ts +8 -8
  36. package/dist/declarations/3D/src/Helpers/utils.d.ts +40 -40
  37. package/dist/declarations/3D/src/Interfaces/IDisposable.d.ts +9 -9
  38. package/dist/declarations/3D/src/Interfaces/ISceneEditor.d.ts +11 -11
  39. package/dist/declarations/3D/src/Interfaces/ISupportInitialize.d.ts +13 -13
  40. package/dist/declarations/3D/src/Interfaces/ITryOn.d.ts +76 -76
  41. package/dist/declarations/3D/src/Layers/AxesLayer.d.ts +17 -17
  42. package/dist/declarations/3D/src/Layers/LightsLayer.d.ts +31 -31
  43. package/dist/declarations/3D/src/Misc/Database.d.ts +20 -20
  44. package/dist/declarations/3D/src/Misc/DefaultAssetUrls.d.ts +51 -51
  45. package/dist/declarations/3D/src/Misc/Observable.d.ts +220 -220
  46. package/dist/declarations/3D/src/Misc/StringTools.d.ts +31 -31
  47. package/dist/declarations/3D/src/Misc/WorkerPool.d.ts +24 -24
  48. package/dist/declarations/3D/src/Viewers/MaterialEditor.d.ts +57 -57
  49. package/dist/declarations/3D/src/Viewers/SceneEditor.d.ts +676 -676
  50. package/dist/declarations/3D/src/Viewers/SceneViewer.d.ts +411 -411
  51. package/dist/declarations/3D/src/index.d.ts +61 -61
  52. package/dist/declarations/3D/src/types.d.ts +2 -2
  53. package/dist/declarations/composer/Admin/src/Pages/ParametricMeshesBuilder/uvHelpers.d.ts +1 -1
  54. package/dist/declarations/composer/Components/ChunkedTask.d.ts +16 -16
  55. package/dist/declarations/composer/Module/src/api.d.ts +3 -3
  56. package/dist/declarations/composer/Module/src/components/debug/debugPanel.d.ts +6 -6
  57. package/dist/declarations/composer/Module/src/components/debugs/debugPanel.d.ts +2 -2
  58. package/dist/declarations/composer/Module/src/components/sceneViewer.d.ts +5 -5
  59. package/dist/declarations/composer/Module/src/components/tryOnViewer.d.ts +109 -109
  60. package/dist/declarations/composer/Module/src/components/tryon/deepARQrCode.d.ts +6 -6
  61. package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnBanuba.d.ts +22 -22
  62. package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnDeepAR.d.ts +22 -22
  63. package/dist/declarations/composer/Module/src/environment.d.ts +443 -447
  64. package/dist/declarations/composer/Module/src/fontsManager.d.ts +75 -75
  65. package/dist/declarations/composer/Module/src/generated/feature-flags.d.ts +83 -83
  66. package/dist/declarations/composer/Module/src/helpers.d.ts +49 -49
  67. package/dist/declarations/composer/Module/src/hooks/tryonContext.d.ts +11 -11
  68. package/dist/declarations/composer/Module/src/imageUploadTask.d.ts +20 -20
  69. package/dist/declarations/composer/Module/src/index.d.ts +11 -11
  70. package/dist/declarations/composer/Module/src/integrations/Integration.d.ts +24 -24
  71. package/dist/declarations/composer/Module/src/integrations/generic.d.ts +16 -16
  72. package/dist/declarations/composer/Module/src/models.d.ts +1203 -1212
  73. package/dist/declarations/composer/Module/src/state/createProviderValue.d.ts +3 -3
  74. package/dist/declarations/composer/Module/src/state/provider.d.ts +18 -18
  75. package/dist/declarations/composer/Module/src/state/providerValue.d.ts +278 -281
  76. package/dist/declarations/composer/Module/src/state/state.d.ts +11 -11
  77. package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +83 -83
  78. package/dist/globals0.js +1 -1
  79. package/dist/globals1.js +1 -1
  80. package/dist/index.js +11917 -11739
  81. package/dist/index.js.map +1 -1
  82. package/package.json +43 -43
  83. /package/dist/declarations/composer/Module/src/integrations/{helpers.d.ts → Helpers.d.ts} +0 -0
@@ -1,122 +1,122 @@
1
- import { IDisposable } from "../../Interfaces/IDisposable";
2
- import { Nullable } from "../../types";
3
- export type InfoPointsStyle = {
4
- borderColor?: string;
5
- innerPointColor?: string;
6
- color?: string;
7
- highlightColor?: string;
8
- };
9
- export type ImagePanelStyle = {
10
- backgroundColor?: string;
11
- loadingTextColor?: string;
12
- buttonsBorderColor?: string;
13
- buttonsColor?: string;
14
- buttonsBorderHighlightColor?: string;
15
- buttonsHighlightColor?: string;
16
- buttonsIconColor?: string;
17
- };
18
- export type InfoPointsManagerStyle = {
19
- infoPointsStyle?: InfoPointsStyle;
20
- imagePanelStyle?: ImagePanelStyle;
21
- };
22
- export type InfoPointPickedEventArgs = {
23
- meshID: string;
24
- materialID: string | null;
25
- materialPhotoUrl: string[];
26
- };
27
- export type InfoPointPickedEventListener = (evt: InfoPointPickedEventArgs) => void;
28
- export type InfoPointContentShownListener = () => void;
29
- export type InfoPointContentHiddenListener = () => void;
30
- export declare class InfoPointsManager implements IDisposable {
31
- private _zkScene;
32
- private _scene;
33
- private _sceneHelper;
34
- private _style;
35
- private _rootContainer;
36
- private _meshesInfoPoints;
37
- private _infoPoints;
38
- private _imageUrls;
39
- private _currentIdx;
40
- private _imagePanel;
41
- private _loadingText;
42
- private _image;
43
- private _closeImageButton;
44
- private _moveNextImageButton;
45
- private _movePrevImageButton;
46
- private _isOnMoveNextButton;
47
- private _isOnMovePrevButton;
48
- private _lastCameraPosition;
49
- onBeforeShowImages: Nullable<() => void>;
50
- onAfterShowImages: Nullable<() => void>;
51
- private _infoPointsShown;
52
- get infoPointsShown(): boolean;
53
- private _canShowInfoPointsContent;
54
- get canShowInfoPointsContent(): boolean;
55
- set canShowInfoPointsContent(value: boolean);
56
- private _infoPointPickedListeners;
57
- private _infoPointContentShownListeners;
58
- private _infoPointContentHiddenListeners;
59
- private _renderingNeededListeners;
60
- private CLOSE_SVG;
61
- private CHEVRON_LEFT_SVG;
62
- private CHEVRON_RIGHT_SVG;
63
- constructor(zkScene: Zakeke.Scene, scene: BABYLON.Scene, style?: InfoPointsManagerStyle);
64
- dispose(): void;
65
- private setDefaultStyle;
66
- private setStyle;
67
- applyStyle(style: Nullable<InfoPointsManagerStyle>): void;
68
- showInfoPoints(): void;
69
- hideInfoPoints(): void;
70
- refresh(): void;
71
- private getAllInfoPoints;
72
- private refreshInfoPoints;
73
- private removeMeshInfoPoints;
74
- private getOrCreateMeshInfoPoint;
75
- private updateInfoPointUrls;
76
- private createMeshInfoPoint;
77
- private getMaterialInfoPoint;
78
- private getMaterialPhotoUrls;
79
- private getOrCreateImagePanel;
80
- private createImagePanel;
81
- private addCloseButton;
82
- private addMoveNextImageButton;
83
- private addMovePrevImageButton;
84
- private updateMoveNextImageButton;
85
- private updateMovePrevImageButton;
86
- private showImages;
87
- private moveNextImage;
88
- private movePrevImage;
89
- private showCurrentImage;
90
- private canMoveNextImage;
91
- private canMovePrevImage;
92
- private hideImages;
93
- private showImage;
94
- /**
95
- * Update info points visibility and return true if at least one info point has been updated.
96
- *
97
- * @return {boolean} Return true if any info point has been updated.
98
- */
99
- updateInfoPointsVisibility(): boolean;
100
- drawRay(origin: BABYLON.Vector3, forward: BABYLON.Vector3): void;
101
- private updateMeshInfoPointVisibility;
102
- private getCloseSvg;
103
- private getChevronLeftSvg;
104
- private getChevronRightSvg;
105
- private getSvg;
106
- private fireInfoPointPickedEvent;
107
- addInfoPointPickedListener(listenerFunction: InfoPointPickedEventListener): void;
108
- addInfoPointPickedListenerRange(listenerFunctions: InfoPointPickedEventListener[]): void;
109
- private fireInfoPointContentShownEvent;
110
- addInfoPointContentShownListener(listenerFunction: InfoPointContentShownListener): void;
111
- addInfoPointContentShownListenerRange(listenerFunctions: InfoPointContentShownListener[]): void;
112
- private fireInfoPointContentHiddenEvent;
113
- addInfoPointContentHiddenListener(listenerFunction: InfoPointContentHiddenListener): void;
114
- addInfoPointContentHiddenListenerRange(listenerFunctions: InfoPointContentHiddenListener[]): void;
115
- private fireRenderingNeededEvent;
116
- addRenderingNeededListener(listenerFunction: () => void): void;
117
- showLoadingText(): void;
118
- hideLoadingText(): void;
119
- private updateGuiElementsStyle;
120
- private updateMeshInfoPointsStyle;
121
- private updateImagePanelStyle;
122
- }
1
+ import { IDisposable } from "../../Interfaces/IDisposable";
2
+ import { Nullable } from "../../types";
3
+ export type InfoPointsStyle = {
4
+ borderColor?: string;
5
+ innerPointColor?: string;
6
+ color?: string;
7
+ highlightColor?: string;
8
+ };
9
+ export type ImagePanelStyle = {
10
+ backgroundColor?: string;
11
+ loadingTextColor?: string;
12
+ buttonsBorderColor?: string;
13
+ buttonsColor?: string;
14
+ buttonsBorderHighlightColor?: string;
15
+ buttonsHighlightColor?: string;
16
+ buttonsIconColor?: string;
17
+ };
18
+ export type InfoPointsManagerStyle = {
19
+ infoPointsStyle?: InfoPointsStyle;
20
+ imagePanelStyle?: ImagePanelStyle;
21
+ };
22
+ export type InfoPointPickedEventArgs = {
23
+ meshID: string;
24
+ materialID: string | null;
25
+ materialPhotoUrl: string[];
26
+ };
27
+ export type InfoPointPickedEventListener = (evt: InfoPointPickedEventArgs) => void;
28
+ export type InfoPointContentShownListener = () => void;
29
+ export type InfoPointContentHiddenListener = () => void;
30
+ export declare class InfoPointsManager implements IDisposable {
31
+ private _zkScene;
32
+ private _scene;
33
+ private _sceneHelper;
34
+ private _style;
35
+ private _rootContainer;
36
+ private _meshesInfoPoints;
37
+ private _infoPoints;
38
+ private _imageUrls;
39
+ private _currentIdx;
40
+ private _imagePanel;
41
+ private _loadingText;
42
+ private _image;
43
+ private _closeImageButton;
44
+ private _moveNextImageButton;
45
+ private _movePrevImageButton;
46
+ private _isOnMoveNextButton;
47
+ private _isOnMovePrevButton;
48
+ private _lastCameraPosition;
49
+ onBeforeShowImages: Nullable<() => void>;
50
+ onAfterShowImages: Nullable<() => void>;
51
+ private _infoPointsShown;
52
+ get infoPointsShown(): boolean;
53
+ private _canShowInfoPointsContent;
54
+ get canShowInfoPointsContent(): boolean;
55
+ set canShowInfoPointsContent(value: boolean);
56
+ private _infoPointPickedListeners;
57
+ private _infoPointContentShownListeners;
58
+ private _infoPointContentHiddenListeners;
59
+ private _renderingNeededListeners;
60
+ private CLOSE_SVG;
61
+ private CHEVRON_LEFT_SVG;
62
+ private CHEVRON_RIGHT_SVG;
63
+ constructor(zkScene: Zakeke.Scene, scene: BABYLON.Scene, style?: InfoPointsManagerStyle);
64
+ dispose(): void;
65
+ private setDefaultStyle;
66
+ private setStyle;
67
+ applyStyle(style: Nullable<InfoPointsManagerStyle>): void;
68
+ showInfoPoints(): void;
69
+ hideInfoPoints(): void;
70
+ refresh(): void;
71
+ private getAllInfoPoints;
72
+ private refreshInfoPoints;
73
+ private removeMeshInfoPoints;
74
+ private getOrCreateMeshInfoPoint;
75
+ private updateInfoPointUrls;
76
+ private createMeshInfoPoint;
77
+ private getMaterialInfoPoint;
78
+ private getMaterialPhotoUrls;
79
+ private getOrCreateImagePanel;
80
+ private createImagePanel;
81
+ private addCloseButton;
82
+ private addMoveNextImageButton;
83
+ private addMovePrevImageButton;
84
+ private updateMoveNextImageButton;
85
+ private updateMovePrevImageButton;
86
+ private showImages;
87
+ private moveNextImage;
88
+ private movePrevImage;
89
+ private showCurrentImage;
90
+ private canMoveNextImage;
91
+ private canMovePrevImage;
92
+ private hideImages;
93
+ private showImage;
94
+ /**
95
+ * Update info points visibility and return true if at least one info point has been updated.
96
+ *
97
+ * @return {boolean} Return true if any info point has been updated.
98
+ */
99
+ updateInfoPointsVisibility(): boolean;
100
+ drawRay(origin: BABYLON.Vector3, forward: BABYLON.Vector3): void;
101
+ private updateMeshInfoPointVisibility;
102
+ private getCloseSvg;
103
+ private getChevronLeftSvg;
104
+ private getChevronRightSvg;
105
+ private getSvg;
106
+ private fireInfoPointPickedEvent;
107
+ addInfoPointPickedListener(listenerFunction: InfoPointPickedEventListener): void;
108
+ addInfoPointPickedListenerRange(listenerFunctions: InfoPointPickedEventListener[]): void;
109
+ private fireInfoPointContentShownEvent;
110
+ addInfoPointContentShownListener(listenerFunction: InfoPointContentShownListener): void;
111
+ addInfoPointContentShownListenerRange(listenerFunctions: InfoPointContentShownListener[]): void;
112
+ private fireInfoPointContentHiddenEvent;
113
+ addInfoPointContentHiddenListener(listenerFunction: InfoPointContentHiddenListener): void;
114
+ addInfoPointContentHiddenListenerRange(listenerFunctions: InfoPointContentHiddenListener[]): void;
115
+ private fireRenderingNeededEvent;
116
+ addRenderingNeededListener(listenerFunction: () => void): void;
117
+ showLoadingText(): void;
118
+ hideLoadingText(): void;
119
+ private updateGuiElementsStyle;
120
+ private updateMeshInfoPointsStyle;
121
+ private updateImagePanelStyle;
122
+ }
@@ -1,16 +1,16 @@
1
- export interface IMaterialPreviewOptions {
2
- width?: number;
3
- height?: number;
4
- crop?: boolean;
5
- }
6
- export declare class MaterialPreviewData {
7
- previewFiles: {
8
- [fileName: string]: Blob | string;
9
- };
10
- constructor();
11
- downloadFiles(): void;
12
- }
13
- export declare class MaterialsPreview {
14
- static getPreviewsAsync(scene: BABYLON.Scene, rootUrl: string, materialIDs: string[], options?: IMaterialPreviewOptions, createBlobs?: boolean): Promise<MaterialPreviewData>;
15
- static downloadPreviewsAsync(scene: BABYLON.Scene, rootUrl: string, materialsIDs: string[], options?: IMaterialPreviewOptions): Promise<void>;
16
- }
1
+ export interface IMaterialPreviewOptions {
2
+ width?: number;
3
+ height?: number;
4
+ crop?: boolean;
5
+ }
6
+ export declare class MaterialPreviewData {
7
+ previewFiles: {
8
+ [fileName: string]: Blob | string;
9
+ };
10
+ constructor();
11
+ downloadFiles(): void;
12
+ }
13
+ export declare class MaterialsPreview {
14
+ static getPreviewsAsync(scene: BABYLON.Scene, rootUrl: string, materialIDs: string[], options?: IMaterialPreviewOptions, createBlobs?: boolean): Promise<MaterialPreviewData>;
15
+ static downloadPreviewsAsync(scene: BABYLON.Scene, rootUrl: string, materialsIDs: string[], options?: IMaterialPreviewOptions): Promise<void>;
16
+ }
@@ -1,24 +1,24 @@
1
- import { IDisposable } from "../../Interfaces/IDisposable";
2
- export declare class MeshExpander implements IDisposable {
3
- private _mesh;
4
- private _scene;
5
- private _facesOfVertices;
6
- private _meshVerticesPositions;
7
- private _meshVerticesNormals;
8
- private _meshIndices;
9
- private _meshPositions;
10
- private _meshFacesNormals;
11
- private _sharedFacesOfVertices;
12
- constructor();
13
- dispose(): void;
14
- private resetDataModel;
15
- private prepareDataModel;
16
- private _getFaceVerticesIndex;
17
- private _computeFaceNormal;
18
- private _getPositionKey;
19
- private _getFacesOfVertices;
20
- expandMesh(mesh: BABYLON.AbstractMesh, delta?: number): void;
21
- _reComputeNormals(): void;
22
- private _getVertexComputedNormal;
23
- private _computeNormal;
24
- }
1
+ import { IDisposable } from "../../Interfaces/IDisposable";
2
+ export declare class MeshExpander implements IDisposable {
3
+ private _mesh;
4
+ private _scene;
5
+ private _facesOfVertices;
6
+ private _meshVerticesPositions;
7
+ private _meshVerticesNormals;
8
+ private _meshIndices;
9
+ private _meshPositions;
10
+ private _meshFacesNormals;
11
+ private _sharedFacesOfVertices;
12
+ constructor();
13
+ dispose(): void;
14
+ private resetDataModel;
15
+ private prepareDataModel;
16
+ private _getFaceVerticesIndex;
17
+ private _computeFaceNormal;
18
+ private _getPositionKey;
19
+ private _getFacesOfVertices;
20
+ expandMesh(mesh: BABYLON.AbstractMesh, delta?: number): void;
21
+ _reComputeNormals(): void;
22
+ private _getVertexComputedNormal;
23
+ private _computeNormal;
24
+ }
@@ -1,30 +1,30 @@
1
- import { IDisposable } from '../../Interfaces/IDisposable';
2
- export declare class ProceduralNormalMap implements IDisposable {
3
- private _size;
4
- private _scene;
5
- private _baseTexture;
6
- private _bias;
7
- private _invertR;
8
- private _invertG;
9
- private _preBlurEnabled;
10
- private _preBlur;
11
- private _postBlurEnabled;
12
- private _postBlur;
13
- private _bevel;
14
- private _intensity;
15
- private _activeTextures;
16
- private _preBlurXTexture;
17
- private _preBlurYTexture;
18
- private _normalMapTexture;
19
- private _postBlurXTexture;
20
- private _postBlurYTexture;
21
- constructor(baseTexture: BABYLON.Texture, size: number, config: MPlaza.NormalmapConfig, scene: BABYLON.Scene);
22
- private init;
23
- private updateTextures;
24
- private updatePreBlurTexture;
25
- private updateNormalmapTexture;
26
- private updatePostBlurTexture;
27
- dispose(): void;
28
- getNormalMapTextureAsync(baseTexture: BABYLON.Texture, config: MPlaza.NormalmapConfig): Promise<BABYLON.ProceduralTexture | null>;
29
- updateAsync(baseTexture: BABYLON.Texture, config: MPlaza.NormalmapConfig): Promise<void>;
30
- }
1
+ import { IDisposable } from '../../Interfaces/IDisposable';
2
+ export declare class ProceduralNormalMap implements IDisposable {
3
+ private _size;
4
+ private _scene;
5
+ private _baseTexture;
6
+ private _bias;
7
+ private _invertR;
8
+ private _invertG;
9
+ private _preBlurEnabled;
10
+ private _preBlur;
11
+ private _postBlurEnabled;
12
+ private _postBlur;
13
+ private _bevel;
14
+ private _intensity;
15
+ private _activeTextures;
16
+ private _preBlurXTexture;
17
+ private _preBlurYTexture;
18
+ private _normalMapTexture;
19
+ private _postBlurXTexture;
20
+ private _postBlurYTexture;
21
+ constructor(baseTexture: BABYLON.Texture, size: number, config: MPlaza.NormalmapConfig, scene: BABYLON.Scene);
22
+ private init;
23
+ private updateTextures;
24
+ private updatePreBlurTexture;
25
+ private updateNormalmapTexture;
26
+ private updatePostBlurTexture;
27
+ dispose(): void;
28
+ getNormalMapTextureAsync(baseTexture: BABYLON.Texture, config: MPlaza.NormalmapConfig): Promise<BABYLON.ProceduralTexture | null>;
29
+ updateAsync(baseTexture: BABYLON.Texture, config: MPlaza.NormalmapConfig): Promise<void>;
30
+ }
@@ -1,51 +1,51 @@
1
- import { Nullable } from "../../types";
2
- type VariableMaterialSelection = {
3
- id: string;
4
- name: string;
5
- selected: boolean;
6
- };
7
- type SelectedAttributeOption = {
8
- attributeID: Nullable<number>;
9
- attributeGuid: Nullable<string>;
10
- optionID: Nullable<number>;
11
- optionGuid: Nullable<string>;
12
- };
13
- export declare class Preview3DConfigurationManager {
14
- private _zkModel;
15
- private _zkScene;
16
- private _scene;
17
- private _sceneHelper;
18
- constructor(zkModel: MPlaza.Model, zkScene: Zakeke.Scene, scene: BABYLON.Scene);
19
- getPossibleVariableMaterials(): BABYLON.Material[];
20
- getVariableMaterials(): BABYLON.Material[];
21
- getVariableMaterialsSelection(): VariableMaterialSelection[];
22
- getVariantMaterialsWithOriginal(modelColor: any): {
23
- material: BABYLON.Material;
24
- variableMaterial: BABYLON.Material;
25
- }[];
26
- updateVariableMaterials(): void;
27
- unsetVariableMaterialID(materialID: string): void;
28
- setVariableMaterialID(materialID: string): void;
29
- private checkVariantOption;
30
- private createVariantOption;
31
- private removeVariantOption;
32
- private getOrCreateVariantAttribute;
33
- private getOrCreateVariantAttributeOption;
34
- private getVariantID;
35
- private checkVariantOptionMaterial;
36
- private setupSceneMaterialForVariant;
37
- private getSceneMaterialForVariant;
38
- private isSceneMaterialForVariant;
39
- private canDeleteSceneMaterialForVariant;
40
- private getSceneMaterialMetadata;
41
- private getOrCreateSceneMaterialMetadata;
42
- private removeSceneMaterialMetadata;
43
- private cloneSceneMaterial;
44
- private deleteSceneMaterial;
45
- private checkVariantOptionActions;
46
- getVariantMaterials(modelColor: MPlaza.Color): BABYLON.Material[];
47
- getSelectedAttributeOption(selectedModelColor: MPlaza.Color): SelectedAttributeOption;
48
- resetOriginaMaterialsOnMeshes(): void;
49
- getMeshesUsingMaterial(materialID: string): BABYLON.AbstractMesh[];
50
- }
51
- export {};
1
+ import { Nullable } from "../../types";
2
+ type VariableMaterialSelection = {
3
+ id: string;
4
+ name: string;
5
+ selected: boolean;
6
+ };
7
+ type SelectedAttributeOption = {
8
+ attributeID: Nullable<number>;
9
+ attributeGuid: Nullable<string>;
10
+ optionID: Nullable<number>;
11
+ optionGuid: Nullable<string>;
12
+ };
13
+ export declare class Preview3DConfigurationManager {
14
+ private _zkModel;
15
+ private _zkScene;
16
+ private _scene;
17
+ private _sceneHelper;
18
+ constructor(zkModel: MPlaza.Model, zkScene: Zakeke.Scene, scene: BABYLON.Scene);
19
+ getPossibleVariableMaterials(): BABYLON.Material[];
20
+ getVariableMaterials(): BABYLON.Material[];
21
+ getVariableMaterialsSelection(): VariableMaterialSelection[];
22
+ getVariantMaterialsWithOriginal(modelColor: any): {
23
+ material: BABYLON.Material;
24
+ variableMaterial: BABYLON.Material;
25
+ }[];
26
+ updateVariableMaterials(): void;
27
+ unsetVariableMaterialID(materialID: string): void;
28
+ setVariableMaterialID(materialID: string): void;
29
+ private checkVariantOption;
30
+ private createVariantOption;
31
+ private removeVariantOption;
32
+ private getOrCreateVariantAttribute;
33
+ private getOrCreateVariantAttributeOption;
34
+ private getVariantID;
35
+ private checkVariantOptionMaterial;
36
+ private setupSceneMaterialForVariant;
37
+ private getSceneMaterialForVariant;
38
+ private isSceneMaterialForVariant;
39
+ private canDeleteSceneMaterialForVariant;
40
+ private getSceneMaterialMetadata;
41
+ private getOrCreateSceneMaterialMetadata;
42
+ private removeSceneMaterialMetadata;
43
+ private cloneSceneMaterial;
44
+ private deleteSceneMaterial;
45
+ private checkVariantOptionActions;
46
+ getVariantMaterials(modelColor: MPlaza.Color): BABYLON.Material[];
47
+ getSelectedAttributeOption(selectedModelColor: MPlaza.Color): SelectedAttributeOption;
48
+ resetOriginaMaterialsOnMeshes(): void;
49
+ getMeshesUsingMaterial(materialID: string): BABYLON.AbstractMesh[];
50
+ }
51
+ export {};
@@ -1,16 +1,16 @@
1
- import { ISupportInitialize } from "../../Interfaces/ISupportInitialize";
2
- import { IDisposable } from "../../Interfaces/IDisposable";
3
- export declare abstract class BaseProceduralTexture extends BABYLON.ProceduralTexture implements IDisposable, ISupportInitialize {
4
- private _initializing;
5
- private _baseTexture;
6
- protected get initializing(): boolean;
7
- get baseTexture(): BABYLON.Texture;
8
- set baseTexture(texture: BABYLON.Texture);
9
- isReadyAsync(): Promise<void>;
10
- constructor(name: string, size: number, fragment: string, scene: BABYLON.Scene, baseTexture: BABYLON.Texture, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
11
- dispose(): void;
12
- beginInit(): void;
13
- endInit(): void;
14
- protected updateShaderUniforms(): void;
15
- protected setBaseTextureUniform(): void;
16
- }
1
+ import { ISupportInitialize } from "../../Interfaces/ISupportInitialize";
2
+ import { IDisposable } from "../../Interfaces/IDisposable";
3
+ export declare abstract class BaseProceduralTexture extends BABYLON.ProceduralTexture implements IDisposable, ISupportInitialize {
4
+ private _initializing;
5
+ private _baseTexture;
6
+ protected get initializing(): boolean;
7
+ get baseTexture(): BABYLON.Texture;
8
+ set baseTexture(texture: BABYLON.Texture);
9
+ isReadyAsync(): Promise<void>;
10
+ constructor(name: string, size: number, fragment: string, scene: BABYLON.Scene, baseTexture: BABYLON.Texture, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
11
+ dispose(): void;
12
+ beginInit(): void;
13
+ endInit(): void;
14
+ protected updateShaderUniforms(): void;
15
+ protected setBaseTextureUniform(): void;
16
+ }
@@ -1,31 +1,31 @@
1
- import { IDisposable } from '../../Interfaces/IDisposable';
2
- import { Nullable } from '../../types';
3
- export declare class BlendProceduralTexture extends BABYLON.ProceduralTexture implements IDisposable {
4
- private _baseTexture;
5
- private _blendTexture;
6
- static readonly FRAGMENT_SHADER = "zakeke_BlendProceduralTexture";
7
- static readonly CUSTOM_TYPE = "Zakeke.BlendProceduralTexture";
8
- constructor(name: string, size: number, scene?: Nullable<BABYLON.Scene>, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
9
- dispose(): void;
10
- updateShaderUniforms(): void;
11
- render(useCameraPostProcess?: boolean): void;
12
- resize(size: number, generateMipMaps: any): void;
13
- isReady(): boolean;
14
- get baseTexture(): Nullable<BABYLON.Texture>;
15
- set baseTexture(texture: Nullable<BABYLON.Texture>);
16
- get blendTexture(): Nullable<BABYLON.Texture>;
17
- set blendTexture(texture: Nullable<BABYLON.Texture>);
18
- /**
19
- * Serializes this normal map procedural texture
20
- * @returns a serialized normal map procedural texture object
21
- */
22
- serialize(): any;
23
- /**
24
- * Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
25
- * @param parsedTexture defines parsed texture data
26
- * @param scene defines the current scene
27
- * @param rootUrl defines the root URL containing normal map procedural texture information
28
- * @returns a parsed Normal Map Procedural Texture
29
- */
30
- static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): BlendProceduralTexture;
31
- }
1
+ import { IDisposable } from '../../Interfaces/IDisposable';
2
+ import { Nullable } from '../../types';
3
+ export declare class BlendProceduralTexture extends BABYLON.ProceduralTexture implements IDisposable {
4
+ private _baseTexture;
5
+ private _blendTexture;
6
+ static readonly FRAGMENT_SHADER = "zakeke_BlendProceduralTexture";
7
+ static readonly CUSTOM_TYPE = "Zakeke.BlendProceduralTexture";
8
+ constructor(name: string, size: number, scene?: Nullable<BABYLON.Scene>, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
9
+ dispose(): void;
10
+ updateShaderUniforms(): void;
11
+ render(useCameraPostProcess?: boolean): void;
12
+ resize(size: number, generateMipMaps: any): void;
13
+ isReady(): boolean;
14
+ get baseTexture(): Nullable<BABYLON.Texture>;
15
+ set baseTexture(texture: Nullable<BABYLON.Texture>);
16
+ get blendTexture(): Nullable<BABYLON.Texture>;
17
+ set blendTexture(texture: Nullable<BABYLON.Texture>);
18
+ /**
19
+ * Serializes this normal map procedural texture
20
+ * @returns a serialized normal map procedural texture object
21
+ */
22
+ serialize(): any;
23
+ /**
24
+ * Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
25
+ * @param parsedTexture defines parsed texture data
26
+ * @param scene defines the current scene
27
+ * @param rootUrl defines the root URL containing normal map procedural texture information
28
+ * @returns a parsed Normal Map Procedural Texture
29
+ */
30
+ static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): BlendProceduralTexture;
31
+ }
@@ -1,23 +1,23 @@
1
- import { IDisposable } from '../../Interfaces/IDisposable';
2
- import { BaseProceduralTexture } from './BaseProceduralTexture';
3
- export declare class BlurXProceduralTexture extends BaseProceduralTexture implements IDisposable {
4
- static readonly FRAGMENT_SHADER = "zakeke_BlurXProceduralTexture";
5
- static readonly CUSTOM_TYPE = "Zakeke.BlurXProceduralTexture";
6
- private _blur;
7
- get blur(): number;
8
- set blur(value: number);
9
- constructor(name: string, size: number, scene: BABYLON.Scene, baseTexture: BABYLON.Texture, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
10
- dispose(): void;
11
- updateShaderUniforms(): void;
12
- /**
13
- * Render the texture to its associated render target.
14
- * @param useCameraPostProcess Define if camera post process should be applied to the texture
15
- */
16
- render(useCameraPostProcess?: boolean): void;
17
- /**
18
- * Resize the texture to new value.
19
- * @param size Define the new size the texture should have
20
- * @param generateMipMaps Define whether the new texture should create mip maps
21
- */
22
- resize(size: number, generateMipMaps: boolean): void;
23
- }
1
+ import { IDisposable } from '../../Interfaces/IDisposable';
2
+ import { BaseProceduralTexture } from './BaseProceduralTexture';
3
+ export declare class BlurXProceduralTexture extends BaseProceduralTexture implements IDisposable {
4
+ static readonly FRAGMENT_SHADER = "zakeke_BlurXProceduralTexture";
5
+ static readonly CUSTOM_TYPE = "Zakeke.BlurXProceduralTexture";
6
+ private _blur;
7
+ get blur(): number;
8
+ set blur(value: number);
9
+ constructor(name: string, size: number, scene: BABYLON.Scene, baseTexture: BABYLON.Texture, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
10
+ dispose(): void;
11
+ updateShaderUniforms(): void;
12
+ /**
13
+ * Render the texture to its associated render target.
14
+ * @param useCameraPostProcess Define if camera post process should be applied to the texture
15
+ */
16
+ render(useCameraPostProcess?: boolean): void;
17
+ /**
18
+ * Resize the texture to new value.
19
+ * @param size Define the new size the texture should have
20
+ * @param generateMipMaps Define whether the new texture should create mip maps
21
+ */
22
+ resize(size: number, generateMipMaps: boolean): void;
23
+ }