zakeke-configurator-react 0.0.58 → 0.0.62
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/declarations/3D/src/Components/DesignManagers/MeshDesignManager.d.ts +1 -0
- package/dist/declarations/3D/src/Components/DesignManagers/SceneDesignManager.d.ts +1 -0
- package/dist/declarations/3D/src/Viewers/SceneViewer.d.ts +1 -0
- package/dist/declarations/composer/Module/src/environment.d.ts +10 -4
- package/dist/declarations/composer/Module/src/state/boot.d.ts +3 -4
- package/dist/declarations/composer/Module/src/state/provider.d.ts +7 -2
- package/dist/declarations/composer/Module/src/state/providerValue.d.ts +4 -3
- package/dist/globals0.js +7131 -7131
- package/dist/globals1.js +1459 -1459
- package/dist/globals2.js +3393 -3393
- package/dist/index.js +18996 -18929
- package/package.json +1 -1
|
@@ -129,6 +129,7 @@ export declare class MeshDesignManager implements IDisposable {
|
|
|
129
129
|
private compareTextures;
|
|
130
130
|
private dataURItoBlob;
|
|
131
131
|
private downloadImage;
|
|
132
|
+
setDesignMeshVisibility(visibile: boolean): void;
|
|
132
133
|
getItemsInfo(): MPlaza.ItemInfo[];
|
|
133
134
|
removeItem(itemGuid: string): void;
|
|
134
135
|
addItemText(settings: any): void;
|
|
@@ -40,6 +40,7 @@ export declare class SceneDesignManager implements IDisposable {
|
|
|
40
40
|
setItemImage(guid: string, image: any): Promise<void>;
|
|
41
41
|
setItemTextOnPath(guid: string, areaId: number, value: boolean): void;
|
|
42
42
|
removeItemImage(guid: string): void;
|
|
43
|
+
setDesignVisibility(meshId: string, visibile: boolean): void;
|
|
43
44
|
getDesignItemsJson(): string;
|
|
44
45
|
getDesignID(): number;
|
|
45
46
|
private fireRenderingNeededEvent;
|
|
@@ -277,6 +277,7 @@ export declare class SceneViewer implements IDisposable {
|
|
|
277
277
|
setDesignItemImage(guid: string, image: MPlaza.Image): Promise<void>;
|
|
278
278
|
setItemTextOnPath(guid: string, areaId: number, value: boolean): void;
|
|
279
279
|
removeDesignItemImage(guid: string): void;
|
|
280
|
+
setDesignVisibility(meshId: string, opacity: boolean): void;
|
|
280
281
|
setupShaderMaterialsCameraPosition(): void;
|
|
281
282
|
setupShaderMaterialCameraPosition(material: BABYLON.Material): void;
|
|
282
283
|
setMeshLocation(locationID: string): void;
|
|
@@ -98,7 +98,7 @@ export declare class ZakekeEnvironment {
|
|
|
98
98
|
selectOption: (optionId: number) => void;
|
|
99
99
|
focusGroup: (groupId: number) => void;
|
|
100
100
|
focusAttribute: (attributeId: number) => Promise<void>;
|
|
101
|
-
setCamera(cameraLocationId: string): void;
|
|
101
|
+
setCamera(cameraLocationId: string, onlyAngleOfView?: boolean, animate?: boolean): void;
|
|
102
102
|
getCameraByName(name: string): Zakeke.SceneCameraLocation | undefined;
|
|
103
103
|
setCameraLocation(name: string, animate?: boolean): void;
|
|
104
104
|
addToCart: (additionalProperties: Record<string, any>) => Promise<void>;
|
|
@@ -113,7 +113,7 @@ export declare class ZakekeEnvironment {
|
|
|
113
113
|
hasExplodedMode: () => boolean;
|
|
114
114
|
setBackgroundColor: (color: string) => void;
|
|
115
115
|
getCurrentSelection: () => PlatformAttributeSelection[];
|
|
116
|
-
getScreenshot: (width?: number, height?: number) => Promise<string
|
|
116
|
+
getScreenshot: (width?: number, height?: number, backgroundColor?: string | null) => Promise<string>;
|
|
117
117
|
private fireItemsChange;
|
|
118
118
|
isAreaVisible(areaId: number): boolean;
|
|
119
119
|
removeItem: (guid: string) => Promise<void>;
|
|
@@ -137,11 +137,11 @@ export declare class ZakekeEnvironment {
|
|
|
137
137
|
setCameraPivot(meshID: string): void;
|
|
138
138
|
resetCameraPivot(): void;
|
|
139
139
|
setCameraZoomEnabled(enabled: boolean): void;
|
|
140
|
-
setCameraByName(name: string): void;
|
|
140
|
+
setCameraByName(name: string, onlyAngleOfView?: boolean, animate?: boolean): void;
|
|
141
141
|
findObjectByName(name: string): BABYLON.AbstractMesh | null | undefined;
|
|
142
142
|
getPDF: () => Promise<string>;
|
|
143
143
|
private rewriteShareUrl;
|
|
144
|
-
getOnlineScreenshot: (width: number, height: number) => Promise<string>;
|
|
144
|
+
getOnlineScreenshot: (width: number, height: number, backgroundColor?: string | undefined) => Promise<string>;
|
|
145
145
|
private buildModelViewerUrl;
|
|
146
146
|
isSceneArEnabled: () => boolean;
|
|
147
147
|
private getPregeneratedARUrl;
|
|
@@ -160,6 +160,12 @@ export declare class ZakekeEnvironment {
|
|
|
160
160
|
* @param meshId The mesh and childs to show
|
|
161
161
|
*/
|
|
162
162
|
restoreMeshVisibility: (meshId: string) => void;
|
|
163
|
+
/**
|
|
164
|
+
* Change opacity for a specific mesh
|
|
165
|
+
* @param meshId The mesh to change the opacity
|
|
166
|
+
* @param opacity The opacity to set
|
|
167
|
+
*/
|
|
168
|
+
setMeshDesignVisibility: (meshId: string, visible: boolean) => void;
|
|
163
169
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
164
170
|
clearListeners: () => void;
|
|
165
171
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default boot;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
declare const Boot: FC<{}>;
|
|
3
|
+
export default Boot;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { Dispatch, FunctionComponent } from "react";
|
|
1
2
|
import { ZakekeEnvironment } from "../environment";
|
|
2
|
-
import { FunctionComponent } from "react";
|
|
3
3
|
import { ProviderValue } from "./providerValue";
|
|
4
|
+
import { AppState } from "./state";
|
|
4
5
|
declare const useZakeke: () => ProviderValue;
|
|
6
|
+
declare const useInternalState: () => {
|
|
7
|
+
state: AppState;
|
|
8
|
+
dispatch: Dispatch<any>;
|
|
9
|
+
};
|
|
5
10
|
declare const ZakekeProvider: FunctionComponent<{
|
|
6
11
|
environment: ZakekeEnvironment;
|
|
7
12
|
}>;
|
|
8
|
-
export { useZakeke, ZakekeProvider };
|
|
13
|
+
export { useZakeke, useInternalState, ZakekeProvider };
|
|
@@ -29,9 +29,9 @@ export interface ProviderValue {
|
|
|
29
29
|
loadComposition: (id: string) => Promise<void>;
|
|
30
30
|
addToCart: (additionalProperties: Record<string, any>) => Promise<void>;
|
|
31
31
|
getPDF: () => Promise<string>;
|
|
32
|
-
getOnlineScreenshot: (width: number, height: number) => Promise<string>;
|
|
33
|
-
setCamera: (id: string) => void;
|
|
34
|
-
setCameraByName: (name: string) => void;
|
|
32
|
+
getOnlineScreenshot: (width: number, height: number, backgroundColor?: string) => Promise<string>;
|
|
33
|
+
setCamera: (id: string, onlyAngleOfView?: boolean, animate?: boolean) => void;
|
|
34
|
+
setCameraByName: (name: string, onlyAngleOfView?: boolean, animate?: boolean) => void;
|
|
35
35
|
setCameraZoomEnabled: (enabled: boolean) => void;
|
|
36
36
|
resetCameraPivot: () => void;
|
|
37
37
|
setCameraPivot: (meshId: string) => void;
|
|
@@ -68,6 +68,7 @@ export interface ProviderValue {
|
|
|
68
68
|
getMeshIDbyName: (name: string) => string | undefined | null;
|
|
69
69
|
hideMeshAndSaveState: (meshId: string) => void;
|
|
70
70
|
restoreMeshVisibility: (meshId: string) => void;
|
|
71
|
+
setMeshDesignVisibility: (meshId: string, visible: boolean) => void;
|
|
71
72
|
clearListeners: () => void;
|
|
72
73
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
73
74
|
getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;
|