zakeke-configurator-react 0.1.247 → 0.1.248
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 +2 -1
- package/dist/declarations/3D/src/Components/DesignManagers/SceneDesignManager.d.ts +1 -2
- package/dist/declarations/3D/src/Components/ScenePreview/ScenePreview.d.ts +19 -19
- package/dist/declarations/3D/src/Viewers/SceneEditor.d.ts +8 -2
- package/dist/declarations/3D/src/Viewers/SceneViewer.d.ts +2 -2
- package/dist/declarations/composer/Module/src/environment.d.ts +1 -1
- package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +2 -1
- package/dist/globals0.js +1 -1
- package/dist/globals2.js +1 -1
- package/dist/index.js +5998 -5165
- package/package.json +1 -1
|
@@ -71,7 +71,7 @@ export declare class MeshDesignManager implements IDisposable {
|
|
|
71
71
|
get side(): Nullable<MPlaza.Side>;
|
|
72
72
|
private constructor();
|
|
73
73
|
getInternalCustomizer(): Nullable<MPlaza.Customizer>;
|
|
74
|
-
static createMeshDesignManagerAsync(scene: BABYLON.Scene, zkScene: Zakeke.Scene, mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh | null, zkModel: MPlaza.Model, zkDesign: MPlaza.Design, showDesign?: boolean, effect?: MPlaza.ModelSceneMeshDesignEffect,
|
|
74
|
+
static createMeshDesignManagerAsync(scene: BABYLON.Scene, zkScene: Zakeke.Scene, mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh | null, zkModel: MPlaza.Model, zkDesign: MPlaza.Design, showDesign?: boolean, effect?: MPlaza.ModelSceneMeshDesignEffect, viewRotation?: number): Promise<MeshDesignManager>;
|
|
75
75
|
private initAsync;
|
|
76
76
|
isForMesh(mesh: BABYLON.AbstractMesh, subMesh: Nullable<BABYLON.SubMesh>): boolean;
|
|
77
77
|
getMeshID(): Nullable<string>;
|
|
@@ -89,6 +89,7 @@ export declare class MeshDesignManager implements IDisposable {
|
|
|
89
89
|
contractCanvasMesh(): void;
|
|
90
90
|
contractCanvasMesh_old(): void;
|
|
91
91
|
private setupMeshSide;
|
|
92
|
+
private setupTextureSize;
|
|
92
93
|
private checkDefaultEffect;
|
|
93
94
|
private getAllSides;
|
|
94
95
|
private refreshModelSide;
|
|
@@ -8,7 +8,6 @@ export declare class SceneDesignManager implements IDisposable {
|
|
|
8
8
|
private _zkDesign;
|
|
9
9
|
private _rotation;
|
|
10
10
|
private _showDesign;
|
|
11
|
-
private _designTextureResolution;
|
|
12
11
|
private _grids;
|
|
13
12
|
private _meshDesignManagers;
|
|
14
13
|
private _renderingNeededListeners;
|
|
@@ -20,7 +19,7 @@ export declare class SceneDesignManager implements IDisposable {
|
|
|
20
19
|
set showDesign(value: boolean);
|
|
21
20
|
get rotation(): number;
|
|
22
21
|
set rotation(value: number);
|
|
23
|
-
constructor(scene: BABYLON.Scene, zkScene: Zakeke.Scene, zkModel: MPlaza.Model, zkDesign: MPlaza.Design, showDesign?: boolean
|
|
22
|
+
constructor(scene: BABYLON.Scene, zkScene: Zakeke.Scene, zkModel: MPlaza.Model, zkDesign: MPlaza.Design, showDesign?: boolean);
|
|
24
23
|
dispose(): void;
|
|
25
24
|
private init;
|
|
26
25
|
isForModels(scene: BABYLON.Scene, zkModel: MPlaza.Model, zkDesign: MPlaza.Design): boolean;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export interface IScenePreviewOptions {
|
|
2
|
-
width?: number;
|
|
3
|
-
height?: number;
|
|
4
|
-
crop?: boolean;
|
|
5
|
-
camera: {
|
|
6
|
-
position: BABYLON.Vector3;
|
|
7
|
-
target: BABYLON.Vector3;
|
|
8
|
-
};
|
|
9
|
-
zkScene?: Zakeke.Scene;
|
|
10
|
-
zkModel?: MPlaza.Model;
|
|
11
|
-
zkDesign?: MPlaza.Design | null;
|
|
12
|
-
meshesWithCustomizationIds?: string[];
|
|
13
|
-
}
|
|
14
|
-
export declare class ScenePreviewData {
|
|
15
|
-
previewFile: string;
|
|
16
|
-
}
|
|
17
|
-
export declare class ScenesPreview {
|
|
18
|
-
static getPreviewsAsync(scene: BABYLON.Scene, rootUrl: string, options: IScenePreviewOptions): Promise<ScenePreviewData>;
|
|
19
|
-
}
|
|
1
|
+
export interface IScenePreviewOptions {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
crop?: boolean;
|
|
5
|
+
camera: {
|
|
6
|
+
position: BABYLON.Vector3;
|
|
7
|
+
target: BABYLON.Vector3;
|
|
8
|
+
};
|
|
9
|
+
zkScene?: Zakeke.Scene;
|
|
10
|
+
zkModel?: MPlaza.Model;
|
|
11
|
+
zkDesign?: MPlaza.Design | null;
|
|
12
|
+
meshesWithCustomizationIds?: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare class ScenePreviewData {
|
|
15
|
+
previewFile: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class ScenesPreview {
|
|
18
|
+
static getPreviewsAsync(scene: BABYLON.Scene, rootUrl: string, options: IScenePreviewOptions): Promise<ScenePreviewData>;
|
|
19
|
+
}
|
|
@@ -323,6 +323,10 @@ export declare class SceneEditor extends SceneViewer implements ISceneEditor, ID
|
|
|
323
323
|
setViewerCameraAutoRotate(autoRotate: boolean): void;
|
|
324
324
|
setViewerCameraContrast(contrast: number): void;
|
|
325
325
|
setViewerCameraExposure(exposure: number): void;
|
|
326
|
+
setViewerCameraUpperAlphaLimit(alphaLimit: number): void;
|
|
327
|
+
setViewerCameraLowerAlphaLimit(alphaLimit: number): void;
|
|
328
|
+
setViewerCameraLowerBetaLimit(betaLimit: number | null): void;
|
|
329
|
+
setViewerCameraUpperBetaLimit(betaLimit: number): void;
|
|
326
330
|
setViewerCameraToneMappingEnabled(toneMappingEnabled: boolean): void;
|
|
327
331
|
resetEditorEnvironment(): void;
|
|
328
332
|
protected resetEditorBackground(): void;
|
|
@@ -353,15 +357,16 @@ export declare class SceneEditor extends SceneViewer implements ISceneEditor, ID
|
|
|
353
357
|
private uploadSceneIncrementalFiles;
|
|
354
358
|
private getSceneIncrementalFilesAsync;
|
|
355
359
|
setNewSceneModelAsync(zkModel: MPlaza.Model, zkScene: Zakeke.Scene): Promise<void>;
|
|
360
|
+
getSceneConfig(): Zakeke.SceneConfig | null;
|
|
356
361
|
protected preSceneFileLoading(): void;
|
|
357
362
|
protected postSceneFileLoading(): void;
|
|
358
363
|
removeAllVTOReferenceMeshes(meshes: BABYLON.AbstractMesh[]): BABYLON.Mesh[];
|
|
359
364
|
hideAllVTOFiles(meshes: BABYLON.AbstractMesh[]): void;
|
|
360
|
-
loadSceneSourceFiles(files?: File[]
|
|
365
|
+
loadSceneSourceFiles(files?: File[] | string, onSuccess?: (task: SceneSourceTask) => void, onError?: (reason: string) => void): void;
|
|
361
366
|
private checkSceneSourceTasks;
|
|
362
367
|
private updateSceneModelFromSourceTask;
|
|
363
|
-
private loadMeshesFromRemoteFiles_NEW;
|
|
364
368
|
private loadMeshesFromRemoteFiles;
|
|
369
|
+
private loadMeshesFromRemoteFiles_OLD;
|
|
365
370
|
isRealMesh(mesh: BABYLON.AbstractMesh): boolean;
|
|
366
371
|
onMeshChanged(evt: {
|
|
367
372
|
mesh: BABYLON.AbstractMesh;
|
|
@@ -486,6 +491,7 @@ export declare class SceneEditor extends SceneViewer implements ISceneEditor, ID
|
|
|
486
491
|
resetSubMeshMaterial(mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh, initial: boolean): void;
|
|
487
492
|
getExtension(name: string): string | undefined;
|
|
488
493
|
loadMobileTextureFilesAsync(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean): Promise<void>;
|
|
494
|
+
getDAMMainMesh(): BABYLON.Mesh | undefined;
|
|
489
495
|
loadMobileTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
490
496
|
loadTextureFilesAsync(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean): Promise<void>;
|
|
491
497
|
loadTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
@@ -49,7 +49,6 @@ export type SceneViewerOptions = {
|
|
|
49
49
|
configPreview: boolean;
|
|
50
50
|
defaultBackgroundColor?: string;
|
|
51
51
|
showGround?: boolean;
|
|
52
|
-
designTextureResolution?: number;
|
|
53
52
|
};
|
|
54
53
|
export declare class SceneViewer implements IDisposable {
|
|
55
54
|
protected _zkScene: Nullable<Zakeke.Scene>;
|
|
@@ -309,7 +308,7 @@ export declare class SceneViewer implements IDisposable {
|
|
|
309
308
|
addEndSceneLoadingListener(callback: () => void): void;
|
|
310
309
|
private fireEndSceneLoadingEvent;
|
|
311
310
|
getSceneScreenshotAsync(width: number, height: number): Promise<Nullable<string>>;
|
|
312
|
-
getSceneContentScreenshotAsync(width: any, height: any, padding?: number, zkDesign?: MPlaza.Design | null, legacyScreenshot?: boolean, camera?: Zakeke.SceneCameraLocation): Promise<Nullable<string>>;
|
|
311
|
+
getSceneContentScreenshotAsync(width: any, height: any, padding?: number, zkDesign?: MPlaza.Design | null, legacyScreenshot?: boolean, camera?: Zakeke.SceneCameraLocation | null): Promise<Nullable<string>>;
|
|
313
312
|
protected preSceneContentScreenshot(): void;
|
|
314
313
|
protected postSceneContentScreenshot(): void;
|
|
315
314
|
protected preSceneMaterialScreenshot(): void;
|
|
@@ -355,6 +354,7 @@ export declare class SceneViewer implements IDisposable {
|
|
|
355
354
|
private cacheArFileUrl;
|
|
356
355
|
exportMeshToGLBBlob(meshID: string): Promise<Blob | null>;
|
|
357
356
|
exportSceneToUsdzAsync(sceneID?: string, sceneCode?: string, useCacheWithDesign?: boolean): Promise<Nullable<string>>;
|
|
357
|
+
loadFromGlbUrl(url: string, sceneConfig?: any): Promise<void>;
|
|
358
358
|
exportMeshToUsdzAsync(meshID: string): Promise<Nullable<string>>;
|
|
359
359
|
exportSceneToRemoteGlTFAsync(sceneID?: string, sceneCode?: string, useCacheWithDesign?: boolean): Promise<Nullable<string>>;
|
|
360
360
|
exportMeshToRemoteGlTFAsync(meshID: string): Promise<Nullable<string>>;
|
|
@@ -224,7 +224,7 @@ export declare class ZakekeEnvironment {
|
|
|
224
224
|
hasExplodedMode: () => boolean;
|
|
225
225
|
setBackgroundColor: (color: string, alpha: number) => void;
|
|
226
226
|
getCurrentSelection: () => PlatformAttributeSelection[];
|
|
227
|
-
getScreenshot: (width?: number, height?: number, legacyScreenshot?: boolean, backgroundColor?: string | null, padding?: number) => Promise<string>;
|
|
227
|
+
getScreenshot: (width?: number, height?: number, legacyScreenshot?: boolean, backgroundColor?: string | null, padding?: number, camera?: Zakeke.SceneCameraLocation | null) => Promise<string>;
|
|
228
228
|
private fireItemsChange;
|
|
229
229
|
isAreaVisible(areaId: number): boolean;
|
|
230
230
|
removeItem: (guid: string) => Promise<void>;
|
|
@@ -9,6 +9,7 @@ interface PricingRulePropertyModel {
|
|
|
9
9
|
interface IContext {
|
|
10
10
|
sides: any;
|
|
11
11
|
items: any;
|
|
12
|
+
design: MPlaza.Design;
|
|
12
13
|
}
|
|
13
14
|
export declare class DesignPriceCalculatorRuleFactory {
|
|
14
15
|
static create: (product: any, apiUrl?: string, token?: string, isOwin?: boolean, cloudFlareApiUrl?: string, clientLang?: string) => Promise<DesignPriceCalculatorRuleBased>;
|
|
@@ -38,7 +39,7 @@ export declare class DesignPriceCalculatorRuleBased {
|
|
|
38
39
|
LinesLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
39
40
|
AmountOfElementsFunction: (pContext: any, formula: FormulaModel) => any;
|
|
40
41
|
AmountOfUsedColorsFunction: (pContext: any, formula: FormulaModel) => any;
|
|
41
|
-
CanvasSizeFunction: (pContext:
|
|
42
|
+
CanvasSizeFunction: (pContext: IContext, formula: FormulaModel) => any;
|
|
42
43
|
DesignSizeFunction: (pContext: any, formula: FormulaModel) => any;
|
|
43
44
|
DesignTextLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
44
45
|
CustomizedSidesFunction: (pContext: any, formula: FormulaModel) => any;
|