zakeke-configurator-react 0.0.49 → 0.0.53
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/SceneHelper.d.ts +5 -0
- package/dist/declarations/3D/src/Viewers/SceneViewer.d.ts +6 -0
- package/dist/declarations/composer/Module/src/environment.d.ts +13 -0
- package/dist/declarations/composer/Module/src/state/providerValue.d.ts +5 -1
- package/dist/globals0.js +20714 -12471
- package/dist/globals1.js +3369 -1849
- package/dist/globals2.js +3394 -3385
- package/dist/index.js +632 -299
- package/package.json +1 -1
|
@@ -274,4 +274,9 @@ export declare class SceneHelper implements IDisposable {
|
|
|
274
274
|
unsetAllDummyMaterialsAsync(rootUrl: string): Promise<void>;
|
|
275
275
|
unsetMeshDummyMaterial(mesh: BABYLON.AbstractMesh, recursive: boolean): void;
|
|
276
276
|
unsetMeshDummyMaterialAsync(mesh: BABYLON.AbstractMesh, rootUrl: string, recursive: boolean): Promise<void>;
|
|
277
|
+
reloadAllLoadingErrorTexturesAsync(rootUrl: string): Promise<void>;
|
|
278
|
+
reloadMaterialLoadingErrorTexturesAsync(rootUrl: string, material: BABYLON.Material): Promise<void>;
|
|
279
|
+
reloadLoadingErrorTextureAsync(rootUrl: string, texture: BABYLON.BaseTexture): Promise<void>;
|
|
280
|
+
isTextureLoadingError(texture: BABYLON.BaseTexture): boolean;
|
|
281
|
+
materialHasLoadingErrorTextues(material: BABYLON.Material): boolean;
|
|
277
282
|
}
|
|
@@ -213,6 +213,7 @@ export declare class SceneViewer implements IDisposable {
|
|
|
213
213
|
protected onPointerDown(evt: BABYLON.IPointerEvent, pickInfo: BABYLON.PickingInfo): void;
|
|
214
214
|
protected getSelectedRootMesh(): Nullable<BABYLON.AbstractMesh>;
|
|
215
215
|
getMeshByID(id: string): Nullable<BABYLON.AbstractMesh>;
|
|
216
|
+
getMeshByName(id: string): Nullable<BABYLON.AbstractMesh>;
|
|
216
217
|
getMaterialByID(id: string): Nullable<BABYLON.Material>;
|
|
217
218
|
setCameraLocation(locationID: string, onlyAngleOfView?: boolean, animate?: boolean): void;
|
|
218
219
|
adjustCamera(animate?: boolean): void;
|
|
@@ -313,4 +314,9 @@ export declare class SceneViewer implements IDisposable {
|
|
|
313
314
|
private updateInfoPointsManagerStyle;
|
|
314
315
|
showInfoPoints(): void;
|
|
315
316
|
hideInfoPoints(): void;
|
|
317
|
+
reloadAllLoadingErrorTexturesAsync(): Promise<void>;
|
|
318
|
+
reloadMaterialLoadingErrorTexturesAsync(material: BABYLON.Material): Promise<void>;
|
|
319
|
+
reloadLoadingErrorTextureAsync(texture: BABYLON.BaseTexture): Promise<void>;
|
|
320
|
+
isTextureLoadingError(texture: BABYLON.BaseTexture): boolean;
|
|
321
|
+
materialHasLoadingErrorTextues(material: BABYLON.Material): boolean;
|
|
316
322
|
}
|
|
@@ -20,6 +20,7 @@ export declare class ZakekeEnvironment {
|
|
|
20
20
|
private zkTemplates;
|
|
21
21
|
private internalIsFullscreen;
|
|
22
22
|
private highlightSettings;
|
|
23
|
+
private previousMeshesVisibleStates;
|
|
23
24
|
get internalProduct(): MPlaza.Model | null;
|
|
24
25
|
get internalScene(): Zakeke.Scene | null;
|
|
25
26
|
get internalCurrentTemplate(): any;
|
|
@@ -125,6 +126,7 @@ export declare class ZakekeEnvironment {
|
|
|
125
126
|
setItemColor: (guid: string, color: string) => void;
|
|
126
127
|
setItemFontFamily: (guid: string, fontFamily: string) => Promise<void>;
|
|
127
128
|
createImage: (file: File, progress?: ((percentage: number) => void) | undefined) => Promise<Image>;
|
|
129
|
+
createImageFromUrl: (url: string) => Promise<Image>;
|
|
128
130
|
addItemImage: (id: number, areaId: number) => Promise<void>;
|
|
129
131
|
setItemImageFromFile: (guid: string, file: File, progress?: ((percentage: number) => void) | undefined) => Promise<void>;
|
|
130
132
|
setItemImageFromBase64: (guid: string, base64: any) => Promise<void>;
|
|
@@ -146,6 +148,17 @@ export declare class ZakekeEnvironment {
|
|
|
146
148
|
getMobileArUrl: (useCacheWithDesign?: boolean | undefined) => Promise<string | null>;
|
|
147
149
|
openArMobile: (url: string) => void;
|
|
148
150
|
private registerView;
|
|
151
|
+
getMeshIDbyName: (name: string) => string | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Hide a mesh and its children and save the state
|
|
154
|
+
* @param meshId The mesh and childs to hide
|
|
155
|
+
*/
|
|
156
|
+
hideMeshAndSaveState: (meshId: string) => void;
|
|
157
|
+
/**
|
|
158
|
+
* Restore a mesh visibility state from a previous saved one (see hideMeshAndSaveState)
|
|
159
|
+
* @param meshId The mesh and childs to show
|
|
160
|
+
*/
|
|
161
|
+
restoreMeshVisibility: (meshId: string) => void;
|
|
149
162
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
150
163
|
clearListeners: () => void;
|
|
151
164
|
}
|
|
@@ -41,6 +41,7 @@ export interface ProviderValue {
|
|
|
41
41
|
setItemImageFromFile: (guid: string, file: File) => Promise<void>;
|
|
42
42
|
addItemImage: (id: number, areaId: number) => Promise<void>;
|
|
43
43
|
createImage: (file: File, progress?: (percentage: number) => void) => Promise<Image>;
|
|
44
|
+
createImageFromUrl: (url: string) => Promise<Image>;
|
|
44
45
|
setItemImage: (guid: string, imageId: number) => Promise<void>;
|
|
45
46
|
setItemFontFamily: (guid: string, fontFamily: string) => void;
|
|
46
47
|
setItemColor: (guid: string, color: string) => void;
|
|
@@ -64,10 +65,13 @@ export interface ProviderValue {
|
|
|
64
65
|
hasExplodedMode: () => boolean;
|
|
65
66
|
isExplodedMode: boolean;
|
|
66
67
|
setExplodedMode: (exploded: boolean) => void;
|
|
68
|
+
getMeshIDbyName: (name: string) => string | undefined | null;
|
|
69
|
+
hideMeshAndSaveState: (meshId: string) => void;
|
|
70
|
+
restoreMeshVisibility: (meshId: string) => void;
|
|
67
71
|
clearListeners: () => void;
|
|
68
72
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
69
73
|
getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;
|
|
70
|
-
getMobileArUrl: () => Promise<string | null>;
|
|
74
|
+
getMobileArUrl: (useCacheWithDesign?: boolean) => Promise<string | null>;
|
|
71
75
|
openArMobile: (url: string) => void;
|
|
72
76
|
isSceneArEnabled: () => boolean;
|
|
73
77
|
IS_ANDROID: boolean;
|