zakeke-configurator-react 0.0.51 → 0.0.52

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.
@@ -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;
@@ -147,6 +148,17 @@ export declare class ZakekeEnvironment {
147
148
  getMobileArUrl: (useCacheWithDesign?: boolean | undefined) => Promise<string | null>;
148
149
  openArMobile: (url: string) => void;
149
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;
150
162
  addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
151
163
  clearListeners: () => void;
152
164
  }
@@ -65,6 +65,9 @@ export interface ProviderValue {
65
65
  hasExplodedMode: () => boolean;
66
66
  isExplodedMode: boolean;
67
67
  setExplodedMode: (exploded: boolean) => void;
68
+ getMeshIDbyName: (name: string) => string | undefined | null;
69
+ hideMeshAndSaveState: (meshId: string) => void;
70
+ restoreMeshVisibility: (meshId: string) => void;
68
71
  clearListeners: () => void;
69
72
  addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
70
73
  getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;