zakeke-configurator-react 0.1.372 → 0.1.374
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/README.md +283 -283
- package/dist/declarations/3D/src/Components/AR/AndroidAR.d.ts +7 -7
- package/dist/declarations/3D/src/Components/ActionExecutor/SceneActionExecutor.d.ts +87 -87
- package/dist/declarations/3D/src/Components/CollapseExplode/MeshLocationsManager.d.ts +44 -44
- package/dist/declarations/3D/src/Components/DesignManagers/MeshDesignManager.d.ts +166 -166
- package/dist/declarations/3D/src/Components/DesignManagers/SceneDesignManager.d.ts +63 -63
- package/dist/declarations/3D/src/Components/Draco/DracoCompression.d.ts +106 -106
- package/dist/declarations/3D/src/Components/Environment/EnvironmentManager.d.ts +43 -43
- package/dist/declarations/3D/src/Components/Glow/GlowManager.d.ts +26 -26
- package/dist/declarations/3D/src/Components/IncrementalFiles/IncrementalFiles.d.ts +26 -26
- package/dist/declarations/3D/src/Components/IncrementalFiles/MakeIncremental.d.ts +11 -11
- package/dist/declarations/3D/src/Components/InfoPointsManager/InfoPointsManager.d.ts +122 -122
- package/dist/declarations/3D/src/Components/MaterialsPreview/MaterialsPreview.d.ts +16 -16
- package/dist/declarations/3D/src/Components/MeshExpander/MeshExpander.d.ts +24 -24
- package/dist/declarations/3D/src/Components/NormalMap/ProceduralNormalMap.d.ts +30 -30
- package/dist/declarations/3D/src/Components/Preview3D/Preview3DConfigurationManager.d.ts +51 -51
- package/dist/declarations/3D/src/Components/ProceduralTextures/BaseProceduralTexture.d.ts +16 -16
- package/dist/declarations/3D/src/Components/ProceduralTextures/BlendProceduralTexture.d.ts +31 -31
- package/dist/declarations/3D/src/Components/ProceduralTextures/BlurXProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/BlurYProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/ForegroundBackgroundProceduralTexture.d.ts +26 -26
- package/dist/declarations/3D/src/Components/ProceduralTextures/MoveProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/MultiplyProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/NormalMapProceduralTexture.d.ts +35 -35
- package/dist/declarations/3D/src/Components/ProceduralTextures/OpacityProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/OverlayProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/SceneHelper.d.ts +352 -352
- package/dist/declarations/3D/src/Components/ScenePreview/ScenePreview.d.ts +19 -19
- package/dist/declarations/3D/src/Components/SceneToBlobs/SceneToBlobs.d.ts +31 -31
- package/dist/declarations/3D/src/Components/Selector/ElementSelector.d.ts +42 -42
- package/dist/declarations/3D/src/Components/Shadows/InnerShadow.d.ts +18 -18
- package/dist/declarations/3D/src/Components/Shadows/OuterShadow.d.ts +16 -16
- package/dist/declarations/3D/src/Components/USDZ/UsdzHelper.d.ts +4 -4
- package/dist/declarations/3D/src/Enumerations.d.ts +15 -15
- package/dist/declarations/3D/src/Helpers/debounce.d.ts +8 -8
- package/dist/declarations/3D/src/Helpers/utils.d.ts +40 -40
- package/dist/declarations/3D/src/Interfaces/IDisposable.d.ts +9 -9
- package/dist/declarations/3D/src/Interfaces/ISceneEditor.d.ts +11 -11
- package/dist/declarations/3D/src/Interfaces/ISupportInitialize.d.ts +13 -13
- package/dist/declarations/3D/src/Interfaces/ITryOn.d.ts +76 -76
- package/dist/declarations/3D/src/Layers/AxesLayer.d.ts +17 -17
- package/dist/declarations/3D/src/Layers/LightsLayer.d.ts +31 -31
- package/dist/declarations/3D/src/Misc/Database.d.ts +20 -20
- package/dist/declarations/3D/src/Misc/DefaultAssetUrls.d.ts +51 -51
- package/dist/declarations/3D/src/Misc/Observable.d.ts +220 -220
- package/dist/declarations/3D/src/Misc/StringTools.d.ts +31 -31
- package/dist/declarations/3D/src/Misc/WorkerPool.d.ts +24 -24
- package/dist/declarations/3D/src/Viewers/MaterialEditor.d.ts +57 -57
- package/dist/declarations/3D/src/Viewers/SceneEditor.d.ts +676 -676
- package/dist/declarations/3D/src/Viewers/SceneViewer.d.ts +411 -411
- package/dist/declarations/3D/src/index.d.ts +61 -61
- package/dist/declarations/3D/src/types.d.ts +2 -2
- package/dist/declarations/composer/Admin/src/Pages/ParametricMeshesBuilder/uvHelpers.d.ts +1 -1
- package/dist/declarations/composer/Components/ChunkedTask.d.ts +16 -16
- package/dist/declarations/composer/Module/src/components/debug/debugPanel.d.ts +6 -6
- package/dist/declarations/composer/Module/src/components/tryOnViewer.d.ts +109 -109
- package/dist/declarations/composer/Module/src/environment.d.ts +1 -0
- package/dist/globals0.js +1 -1
- package/dist/globals1.js +1 -1
- package/dist/globals3.js +1 -1
- package/dist/index.js +76953 -76761
- package/dist/index.js.map +1 -1
- package/package.json +43 -43
|
@@ -1,676 +1,676 @@
|
|
|
1
|
-
import { EnvironmentManager } from '../Components/Environment/EnvironmentManager';
|
|
2
|
-
import { EditingMode, EnvironmentMode } from '../Enumerations';
|
|
3
|
-
import { IDisposable } from '../Interfaces/IDisposable';
|
|
4
|
-
import { ISceneEditor } from '../Interfaces/ISceneEditor';
|
|
5
|
-
import { FineTuningProviderData, TryOnFineTuningSettings, TryOnProvider, TryOnSettings, TryOnSettingsType, TryOnType } from '../Interfaces/ITryOn';
|
|
6
|
-
import { LightSelectedEventArgs, LightSelectedEventHandler } from '../Layers/LightsLayer';
|
|
7
|
-
import { Nullable } from '../types';
|
|
8
|
-
import { SceneViewer } from './SceneViewer';
|
|
9
|
-
export declare class MaterialGroup {
|
|
10
|
-
groupName: string;
|
|
11
|
-
materials: BABYLON.Material[];
|
|
12
|
-
guid: string;
|
|
13
|
-
constructor(groupName: string);
|
|
14
|
-
}
|
|
15
|
-
export type SceneEditorOptions = {
|
|
16
|
-
showGround?: boolean;
|
|
17
|
-
showHighlight?: boolean;
|
|
18
|
-
highlightColor?: string;
|
|
19
|
-
editorBackgroundColor?: string;
|
|
20
|
-
highlightOver?: boolean;
|
|
21
|
-
highlightOverColor?: string;
|
|
22
|
-
};
|
|
23
|
-
export type FileObjectData = {
|
|
24
|
-
fileObjectID?: number | null | undefined;
|
|
25
|
-
fileLength?: number | null | undefined;
|
|
26
|
-
url?: string | null | undefined;
|
|
27
|
-
};
|
|
28
|
-
export type SceneSourceTextureInfo = {
|
|
29
|
-
textureID?: string;
|
|
30
|
-
fileObjectID?: number | null | undefined;
|
|
31
|
-
fileLength?: number | null | undefined;
|
|
32
|
-
url?: string;
|
|
33
|
-
};
|
|
34
|
-
export type SceneSourceInfo = {
|
|
35
|
-
sourceID?: string;
|
|
36
|
-
fileObjectID?: number | null | undefined;
|
|
37
|
-
fileLength?: number | null | undefined;
|
|
38
|
-
url?: string;
|
|
39
|
-
rootUrl?: string;
|
|
40
|
-
sceneFileName?: string;
|
|
41
|
-
textureFiles: SceneSourceTextureInfo[];
|
|
42
|
-
};
|
|
43
|
-
export type SceneTextureInfo = {
|
|
44
|
-
sceneID?: string;
|
|
45
|
-
textureID?: string;
|
|
46
|
-
materialID?: string;
|
|
47
|
-
fileObjectID?: number | null | undefined;
|
|
48
|
-
fileLength?: number | null | undefined;
|
|
49
|
-
url?: string;
|
|
50
|
-
};
|
|
51
|
-
export type SceneMaterialPhotoInfo = {
|
|
52
|
-
sceneID?: string;
|
|
53
|
-
photoID?: string;
|
|
54
|
-
materialID?: string;
|
|
55
|
-
fileObjectID?: number | null | undefined;
|
|
56
|
-
fileLength?: number | null | undefined;
|
|
57
|
-
url?: string;
|
|
58
|
-
};
|
|
59
|
-
export declare enum SourceTaskStatus {
|
|
60
|
-
uploading = 0,
|
|
61
|
-
progress = 1,
|
|
62
|
-
checking = 2,
|
|
63
|
-
success = 3,
|
|
64
|
-
completed_success = 4,
|
|
65
|
-
completed_error = 5
|
|
66
|
-
}
|
|
67
|
-
export type SceneSourceTask = {
|
|
68
|
-
taskID?: number;
|
|
69
|
-
sourceID?: string;
|
|
70
|
-
status?: SourceTaskStatus;
|
|
71
|
-
message?: string;
|
|
72
|
-
downloadProgress?: number;
|
|
73
|
-
uploadProgress?: number;
|
|
74
|
-
sceneSourceInfo: SceneSourceInfo;
|
|
75
|
-
};
|
|
76
|
-
export type MeshSelectedEventArgs = {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
scenePointerX: number;
|
|
80
|
-
scenePointerY: number;
|
|
81
|
-
screenPointerX: number;
|
|
82
|
-
screenPointerY: number;
|
|
83
|
-
};
|
|
84
|
-
export type UploadSceneFileInfo = {
|
|
85
|
-
sceneID: string;
|
|
86
|
-
fileObjectID?: number | null | undefined;
|
|
87
|
-
fileLength?: number | null | undefined;
|
|
88
|
-
url: string;
|
|
89
|
-
rootUrl: string;
|
|
90
|
-
sceneFileName: string;
|
|
91
|
-
manifestFileObjectID?: number | null | undefined;
|
|
92
|
-
manifestFileLength?: number | null | undefined;
|
|
93
|
-
manifestFileUrl?: string | null | undefined;
|
|
94
|
-
incrementalsFileObjectID?: number | null | undefined;
|
|
95
|
-
incrementalsFileLength?: number | null | undefined;
|
|
96
|
-
incrementalsFileUrl?: string | null | undefined;
|
|
97
|
-
};
|
|
98
|
-
export type ProvidersTypesMapping = {
|
|
99
|
-
list: {
|
|
100
|
-
[key: string]: number;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
export type MaterialType = 'Standard' | 'PBRMetallicRoughness' | 'PBRSpecularGlossiness' | 'PBR' | 'NewPBR';
|
|
104
|
-
export type LightType = 'Point' | 'Directional' | 'Spot' | 'Hemispheric';
|
|
105
|
-
export type ObjectSizeType = 'width' | 'height' | 'depth';
|
|
106
|
-
export type PreUpdateEventHandler = () => void;
|
|
107
|
-
export type PostUpdateEventHandler = () => void;
|
|
108
|
-
export type MeshSelectedEventHandler = (evt: MeshSelectedEventArgs) => void;
|
|
109
|
-
export type SelectionChangedEventHandler = () => void;
|
|
110
|
-
export type SceneCreatedEventHandler = () => void;
|
|
111
|
-
export type CameraLocationCreatedEventHandler = (evt: Zakeke.SceneCameraLocation) => void;
|
|
112
|
-
export type SceneSourceTaskSuccessEventHandler = (evt: BABYLON.AbstractMesh[]) => void;
|
|
113
|
-
export type SceneSourceTaskErrorEventHandler = (evt?: number) => void;
|
|
114
|
-
export type SceneSourceTaskCheckEventHandler = () => void;
|
|
115
|
-
export type MeshesUpdateEventHandler = (evt: BABYLON.AbstractMesh[]) => void;
|
|
116
|
-
export type MaterialsUpdateEventHandler = (evt: MaterialGroup[]) => void;
|
|
117
|
-
export type LightsUpdateEventHandler = (evt: BABYLON.Light[]) => void;
|
|
118
|
-
export type CameraLocationsUpdateEventHandler = (evt: Zakeke.SceneCameraLocation[]) => void;
|
|
119
|
-
export type MeshLocationCreatedEventHandler = (evt: Zakeke.SceneMeshLocation) => void;
|
|
120
|
-
export type MeshLocationsUpdateEventHandler = (evt: Zakeke.SceneMeshLocation[]) => void;
|
|
121
|
-
export type ArTaskSuccessEventHandler = () => void;
|
|
122
|
-
export type ArTaskErrorEventHandler = () => void;
|
|
123
|
-
export type ArTasksCheckEventHandler = () => void;
|
|
124
|
-
export type TryOnTaskUpdateFineTuningSettingsEventHandler = (evt: TryOnFineTuningSettings) => void;
|
|
125
|
-
export type TryOnTaskCloseFineTuningEventHandler = () => void;
|
|
126
|
-
export declare class SceneEditor extends SceneViewer implements ISceneEditor, IDisposable {
|
|
127
|
-
private _dracoEnabled;
|
|
128
|
-
private _dracoEncodingSpeed;
|
|
129
|
-
private _dracoDecodingSpeed;
|
|
130
|
-
private _envMode;
|
|
131
|
-
private _selectOnPick;
|
|
132
|
-
private _showBoundingBox;
|
|
133
|
-
private _editorBackgroundColor;
|
|
134
|
-
private _showGround;
|
|
135
|
-
private _ground;
|
|
136
|
-
private _showLights;
|
|
137
|
-
private _lightsLayer;
|
|
138
|
-
private _showAxes;
|
|
139
|
-
private _axesLayer;
|
|
140
|
-
private _showFineTuning;
|
|
141
|
-
private _fineTuningModelLoaded;
|
|
142
|
-
private _showHighlight;
|
|
143
|
-
private _highlightOver;
|
|
144
|
-
private _highlightOverColor;
|
|
145
|
-
private _editingMode;
|
|
146
|
-
private _manipulatedNode;
|
|
147
|
-
private _oldManipulatedNode;
|
|
148
|
-
private _EditControl;
|
|
149
|
-
private _editControl;
|
|
150
|
-
private _editControlVisible;
|
|
151
|
-
private _shiftPressed;
|
|
152
|
-
private _ctrlPressed;
|
|
153
|
-
private _realMeshVisibility;
|
|
154
|
-
private _sceneSourceTasks;
|
|
155
|
-
private _isLoadingSourceFiles;
|
|
156
|
-
private _preUpdateListeners;
|
|
157
|
-
private _postUpdateListeners;
|
|
158
|
-
private _meshSelectedListeners;
|
|
159
|
-
private _selectionChangedListeners;
|
|
160
|
-
private _lightSelectedListeners;
|
|
161
|
-
private _sceneCreatedListeners;
|
|
162
|
-
private _cameraLocationCreatedListeners;
|
|
163
|
-
private _sceneSourceTaskSuccessListeners;
|
|
164
|
-
private _sceneSourceTaskErrorListeners;
|
|
165
|
-
private _sceneSourceTasksCheckListeners;
|
|
166
|
-
private _meshesUpdateListeners;
|
|
167
|
-
private _materialsUpdateListeners;
|
|
168
|
-
private _lightsUpdateListeners;
|
|
169
|
-
private _cameraLocationsUpdateListeners;
|
|
170
|
-
private _meshLocationCreatedListeners;
|
|
171
|
-
private _meshLocationsUpdateListeners;
|
|
172
|
-
private _arTaskSuccessListeners;
|
|
173
|
-
private _arTaskErrorListeners;
|
|
174
|
-
private _arTasksCheckListeners;
|
|
175
|
-
private _tryOnFineTuningSettingListeners;
|
|
176
|
-
private _tryOnFineTuningCloseListeners;
|
|
177
|
-
private _providersTypesMapping;
|
|
178
|
-
private _pickedProvider;
|
|
179
|
-
private _providerData;
|
|
180
|
-
private _sessionTryOnEnabled;
|
|
181
|
-
private _tryOnInfoLoading;
|
|
182
|
-
private _initialMeshMaterials;
|
|
183
|
-
private _initialSubMeshMaterials;
|
|
184
|
-
private _lastMeshMaterials;
|
|
185
|
-
private _lastSubMeshMaterials;
|
|
186
|
-
private _meshOver;
|
|
187
|
-
private _incrementalFilesMaker?;
|
|
188
|
-
private _sceneToBlobs?;
|
|
189
|
-
private _showMeasurements;
|
|
190
|
-
private _modelMeasurements;
|
|
191
|
-
private static readonly EmptyGroupName;
|
|
192
|
-
get realMeshVisibility(): {
|
|
193
|
-
[meshID: string]: boolean;
|
|
194
|
-
};
|
|
195
|
-
get environmentManager(): Nullable<EnvironmentManager>;
|
|
196
|
-
get envMode(): EnvironmentMode;
|
|
197
|
-
get sceneSourceTasks(): SceneSourceTask[];
|
|
198
|
-
set envMode(value: EnvironmentMode);
|
|
199
|
-
get selectOnPick(): boolean;
|
|
200
|
-
set seletOnPick(value: boolean);
|
|
201
|
-
get showBoundingBox(): boolean;
|
|
202
|
-
set showBoundingBox(value: boolean);
|
|
203
|
-
get editorBackgroundColor(): string;
|
|
204
|
-
set editorBackgroundColor(value: string);
|
|
205
|
-
get showGround(): boolean;
|
|
206
|
-
set showGround(value: boolean);
|
|
207
|
-
get showLights(): boolean;
|
|
208
|
-
set showLights(value: boolean);
|
|
209
|
-
get showAxes(): boolean;
|
|
210
|
-
set showAxes(value: boolean);
|
|
211
|
-
get showFineTuning(): boolean;
|
|
212
|
-
set showFineTuning(value: boolean);
|
|
213
|
-
set fineTuningModelLoaded(value: boolean);
|
|
214
|
-
get fineTuningModelLoaded(): boolean;
|
|
215
|
-
get sessionTryOnEnabled(): boolean;
|
|
216
|
-
set sessionTryOnEnabled(value: boolean);
|
|
217
|
-
get tryOnInfoLoading(): boolean;
|
|
218
|
-
set tryOnInfoLoading(value: boolean);
|
|
219
|
-
get showHighlight(): boolean;
|
|
220
|
-
set showHighlight(value: boolean);
|
|
221
|
-
get highlightOver(): boolean;
|
|
222
|
-
set highlightOver(value: boolean);
|
|
223
|
-
get highlightOverColor(): string;
|
|
224
|
-
set highlightOverColor(value: string);
|
|
225
|
-
get editingMode(): EditingMode;
|
|
226
|
-
set editingMode(value: EditingMode);
|
|
227
|
-
get editControlVisible(): boolean;
|
|
228
|
-
set editControlVisible(value: boolean);
|
|
229
|
-
get providersTypesMapping(): ProvidersTypesMapping;
|
|
230
|
-
set providersTypesMapping(value: ProvidersTypesMapping);
|
|
231
|
-
get selectedProvider(): TryOnProvider;
|
|
232
|
-
get selectedProviderFineTuningData(): FineTuningProviderData;
|
|
233
|
-
get modelMeasurements(): BABYLON.Vector3;
|
|
234
|
-
set modelMeasurements(value: BABYLON.Vector3);
|
|
235
|
-
get showMeasurements(): boolean;
|
|
236
|
-
fireHideMeasurementsEvent(): void;
|
|
237
|
-
fireShowMeasurementsEvent(): void;
|
|
238
|
-
protected constructor(options?: SceneEditorOptions);
|
|
239
|
-
static createSceneEditorAsync(options?: SceneEditorOptions): Promise<SceneEditor>;
|
|
240
|
-
protected createCanvas(): HTMLCanvasElement;
|
|
241
|
-
protected deleteComponents(): void;
|
|
242
|
-
dispose(): void;
|
|
243
|
-
protected createEngine(): void;
|
|
244
|
-
createEmptySceneAsync(): Promise<void>;
|
|
245
|
-
protected setupSceneAsync(): Promise<void>;
|
|
246
|
-
render(): void;
|
|
247
|
-
private deleteHighlightLayer;
|
|
248
|
-
protected setupAntialiasPostProcesses(): void;
|
|
249
|
-
protected canEnableAntialiasing(): boolean;
|
|
250
|
-
protected setupHighlightLayerIntensity(): void;
|
|
251
|
-
protected setupAxes(): void;
|
|
252
|
-
getMatchSameNameTextures(): boolean;
|
|
253
|
-
setMatchSameNameTextures(value: boolean): void;
|
|
254
|
-
getAREnabled(): boolean;
|
|
255
|
-
setAREnabled(value: boolean): void;
|
|
256
|
-
getAROnTheFly(): boolean;
|
|
257
|
-
setAROnTheFly(value: boolean): void;
|
|
258
|
-
setARAnchor(value: 'wall' | 'floor' | null): void;
|
|
259
|
-
getTryOnEnabled(): boolean;
|
|
260
|
-
setTryOnEnabled(value: boolean): void;
|
|
261
|
-
setTryOnSelectedType(value: TryOnType): void;
|
|
262
|
-
getForceDracoCompression(): boolean;
|
|
263
|
-
setForceDracoCompression(value: boolean): void;
|
|
264
|
-
setProvider(provider: TryOnProvider): void;
|
|
265
|
-
setProviderFineTuningData(data: FineTuningProviderData): void;
|
|
266
|
-
resetProviderFineTuningData(): void;
|
|
267
|
-
getTryOnSelectedType(): TryOnType | null;
|
|
268
|
-
getTryOnSetting(key: TryOnSettingsType): boolean;
|
|
269
|
-
setTryOnSetting(key: TryOnSettingsType, value: any): void;
|
|
270
|
-
setTryOnTypeSettings(settings: TryOnSettings): void;
|
|
271
|
-
setTryOnDefaultTypeSettings(): void;
|
|
272
|
-
getUseDelayedMaterialLoading(): boolean;
|
|
273
|
-
setUseDelayedMaterialLoading(value: boolean): void;
|
|
274
|
-
getUseDelayedTextureLoading(): boolean;
|
|
275
|
-
setUseDelayedTextureLoading(value: boolean): void;
|
|
276
|
-
getGlowEnabled(): boolean;
|
|
277
|
-
setGlowEnabled(enabled: boolean): void;
|
|
278
|
-
getGlowIntensity(): number;
|
|
279
|
-
setGlowIntensity(intensity: number): void;
|
|
280
|
-
getGlowBlurSize(): number;
|
|
281
|
-
setGlowBlurSize(blurSize: number): void;
|
|
282
|
-
getInfoPointsEnabled(): boolean;
|
|
283
|
-
setInfoPointsEnabled(value: boolean): void;
|
|
284
|
-
getInfoPointsBorderColor(): string;
|
|
285
|
-
setInfoPointsBorderColor(value: string): void;
|
|
286
|
-
getInfoPointsInnerPointColor(): string;
|
|
287
|
-
setInfoPointsInnerPointColor(value: string): void;
|
|
288
|
-
getInfoPointsColor(): string;
|
|
289
|
-
setInfoPointsColor(value: string): void;
|
|
290
|
-
getInfoPointsHighlightColor(): string;
|
|
291
|
-
setInfoPointsHighlightColor(value: string): void;
|
|
292
|
-
enableGlowForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
293
|
-
disableGlowForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
294
|
-
enableARForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
295
|
-
disableARForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
296
|
-
disableTryOnForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
297
|
-
enableTryOnForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
298
|
-
enableInfoPointsForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
299
|
-
disableInfoPointsForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
300
|
-
enableForcedInfoPointsVisibilityOnMesh(mesh: BABYLON.AbstractMesh): void;
|
|
301
|
-
disableForcedInfoPointsVisibilityOnMesh(mesh: BABYLON.AbstractMesh): void;
|
|
302
|
-
setEditorBackgroundColor(hexColor: string): void;
|
|
303
|
-
setViewerBackgroundAlpha(alpha: number): void;
|
|
304
|
-
setViewerBackgroundColor(hexColor: string): void;
|
|
305
|
-
setViewerEnvironmentSizeAuto(sizeAuto: boolean): void;
|
|
306
|
-
setViewerEnvironmentMainColor(hexColor: string): void;
|
|
307
|
-
setViewerSkyboxCreateSkybox(createSkybox: boolean): void;
|
|
308
|
-
setViewerSkyboxSize(size: number): void;
|
|
309
|
-
setViewerSkyboxBlur(blur: number): void;
|
|
310
|
-
setViewerSkyboxTexture(url: string, extensions?: string[], files?: string[]): void;
|
|
311
|
-
removeViewerSkyboxTexture(): void;
|
|
312
|
-
setViewerSkyboxColor(hexColor: string): void;
|
|
313
|
-
setViewerGroundCreateGround(createGround: boolean): void;
|
|
314
|
-
setViewerGroundSize(size: number): void;
|
|
315
|
-
setViewerGroundTexture(url: string): void;
|
|
316
|
-
removeViewerGroundTexture(): void;
|
|
317
|
-
setViewerGroundColor(hexColor: string): void;
|
|
318
|
-
setViewerGroundOpacity(opacity: number): void;
|
|
319
|
-
setViewerGroundEnableShadow(enableShadow: boolean): void;
|
|
320
|
-
setViewerGroundShadowLevel(shadowLevel: number): void;
|
|
321
|
-
setViewerGroundEnableMirror(enableMirror: boolean): void;
|
|
322
|
-
setViewerGroundMirrorBlur(mirrorBlur: number): void;
|
|
323
|
-
setViewerCameraAutoRotate(autoRotate: boolean): void;
|
|
324
|
-
setViewerCameraContrast(contrast: number): void;
|
|
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;
|
|
330
|
-
setViewerCameraToneMappingEnabled(toneMappingEnabled: boolean): void;
|
|
331
|
-
resetEditorEnvironment(): void;
|
|
332
|
-
protected resetEditorBackground(): void;
|
|
333
|
-
protected resetEditorCamera(): void;
|
|
334
|
-
protected preSceneContentScreenshot(): void;
|
|
335
|
-
protected postSceneContentScreenshot(): void;
|
|
336
|
-
protected preSceneMaterialScreenshot(): void;
|
|
337
|
-
protected postSceneMaterialScreenshot(): void;
|
|
338
|
-
sceneReadyForSave(): boolean;
|
|
339
|
-
isCurrentCameraPivot(meshID: string): boolean | null;
|
|
340
|
-
getCurrentCameraPivotID(): Nullable<string>;
|
|
341
|
-
setCameraPivot(meshID: string | null | undefined): void;
|
|
342
|
-
private getBlobFromEmbeddedTextureAsync;
|
|
343
|
-
private uploadEmbeddedTexturesAsync;
|
|
344
|
-
protected useIncrementalLoading(): boolean;
|
|
345
|
-
updateSceneModel(onSuccess: () => void, onError?: (reason: string) => void, onProgress?: (perc: number, type?: string) => void, options?: {
|
|
346
|
-
forceDraco?: boolean;
|
|
347
|
-
}): void;
|
|
348
|
-
private onUploadScenFileSuccess;
|
|
349
|
-
private uploadSceneFile;
|
|
350
|
-
private getSceneFileBlobsAsync;
|
|
351
|
-
getSceneJson(): string;
|
|
352
|
-
private resetCameraRotationLimits;
|
|
353
|
-
private setCameraRotationLimits;
|
|
354
|
-
private adjustSceneForSerialization;
|
|
355
|
-
private extractTextureNameAndUrl;
|
|
356
|
-
private removeDisabledFresnelParameters;
|
|
357
|
-
private uploadSceneIncrementalFiles;
|
|
358
|
-
private getSceneIncrementalFilesAsync;
|
|
359
|
-
setNewSceneModelAsync(zkModel: MPlaza.Model, zkScene: Zakeke.Scene): Promise<void>;
|
|
360
|
-
getSceneConfig(): Zakeke.SceneConfig | null;
|
|
361
|
-
protected preSceneFileLoading(): void;
|
|
362
|
-
protected postSceneFileLoading(): void;
|
|
363
|
-
removeAllVTOReferenceMeshes(meshes: BABYLON.AbstractMesh[]): BABYLON.Mesh[];
|
|
364
|
-
hideAllVTOFiles(meshes: BABYLON.AbstractMesh[]): void;
|
|
365
|
-
loadSceneSourceFiles(files?: File[] | string, onSuccess?: (task: SceneSourceTask) => void, onError?: (reason: string) => void): void;
|
|
366
|
-
private checkSceneSourceTasks;
|
|
367
|
-
private updateSceneModelFromSourceTask;
|
|
368
|
-
private loadMeshesFromRemoteFiles;
|
|
369
|
-
private loadMeshesFromRemoteFiles_OLD;
|
|
370
|
-
isRealMesh(mesh: BABYLON.AbstractMesh): boolean;
|
|
371
|
-
onMeshChanged(evt: {
|
|
372
|
-
mesh: BABYLON.AbstractMesh;
|
|
373
|
-
}): void;
|
|
374
|
-
onSubMeshChanged(evt: {
|
|
375
|
-
mesh: BABYLON.AbstractMesh;
|
|
376
|
-
subMesh: BABYLON.SubMesh;
|
|
377
|
-
}): void;
|
|
378
|
-
onMaterialChanged(evt: {
|
|
379
|
-
material: BABYLON.Material;
|
|
380
|
-
}): void;
|
|
381
|
-
onLightChanged(evt: {
|
|
382
|
-
light: BABYLON.Light;
|
|
383
|
-
}): void;
|
|
384
|
-
getSceneMeshesByName(name: string): BABYLON.AbstractMesh[];
|
|
385
|
-
getSceneMeshes(): BABYLON.AbstractMesh[];
|
|
386
|
-
getMeshesUsingMaterial(materialID: string): BABYLON.AbstractMesh[];
|
|
387
|
-
getMeshesMaterials(meshes: BABYLON.AbstractMesh[]): BABYLON.Material[];
|
|
388
|
-
getMeshMaterials(mesh: BABYLON.AbstractMesh): BABYLON.Material[];
|
|
389
|
-
getAllMaterials(): BABYLON.Material[];
|
|
390
|
-
getGroupedMaterials(): MaterialGroup[];
|
|
391
|
-
setMaterialsGroup(materialIDs: string[], groupName: string, fireEvent?: boolean): void;
|
|
392
|
-
setMaterialGroup(materialID: string, groupName: string, fireEvent?: boolean): void;
|
|
393
|
-
getMaterialGroup(materialID: string): string;
|
|
394
|
-
removeMaterialGroup(materialID: string): void;
|
|
395
|
-
getMaterialsByGroup(groupName: string | undefined | null): BABYLON.Material[];
|
|
396
|
-
getGroupCenter(parent: BABYLON.AbstractMesh): Nullable<BABYLON.Vector3>;
|
|
397
|
-
getGroupBoundingInfo(parent: BABYLON.AbstractMesh): BABYLON.BoundingInfo;
|
|
398
|
-
showHideBoundingBox(show: any): void;
|
|
399
|
-
updateBoundingBox(): void;
|
|
400
|
-
deleteBoundingBox(): void;
|
|
401
|
-
setCameraPositionScale(scale: number): void;
|
|
402
|
-
setCameraLimitLowerRadius(limit: boolean): void;
|
|
403
|
-
setCameraZoomEnabled(enabled: boolean): void;
|
|
404
|
-
setCameraUseMinZoomPercentage(value: boolean): void;
|
|
405
|
-
setCameraMinZoomPercentage(value: number): void;
|
|
406
|
-
setCameraUseMaxZoomPercentage(value: boolean): void;
|
|
407
|
-
setCameraMaxZoomPercentage(value: number): void;
|
|
408
|
-
lockCameraAlphaAngle(): void;
|
|
409
|
-
unlockCameraAlphaAngle(): void;
|
|
410
|
-
lockCameraBetaAngle(): void;
|
|
411
|
-
unlockCameraBetaAngle(): void;
|
|
412
|
-
setCameraLowerAlphaLimit(): void;
|
|
413
|
-
unsetCameraLowerAlphaLimit(): void;
|
|
414
|
-
setCameraUpperAlphaLimit(): void;
|
|
415
|
-
unsetCameraUpperAlphaLimit(): void;
|
|
416
|
-
setCameraLowerBetaLimit(): void;
|
|
417
|
-
unsetCameraLowerBetaLimit(): void;
|
|
418
|
-
setCameraUpperBetaLimit(): void;
|
|
419
|
-
unsetCameraUpperBetaLimit(): void;
|
|
420
|
-
selectMesh(id: string): void;
|
|
421
|
-
unselectMesh(id: string): void;
|
|
422
|
-
unselectAllMeshes(): void;
|
|
423
|
-
selectUnselectMesh(id: string, select: boolean): void;
|
|
424
|
-
selectSingleMesh(mesh: BABYLON.AbstractMesh): void;
|
|
425
|
-
unselectSingleMesh(mesh: any): void;
|
|
426
|
-
isMeshSelected(mesh: BABYLON.AbstractMesh): boolean;
|
|
427
|
-
showMesh(meshID: string): void;
|
|
428
|
-
hideMesh(meshID: string): void;
|
|
429
|
-
showHideMesh(meshID: string, show: boolean, notifyChanges?: boolean): void;
|
|
430
|
-
setTemporaryExclusivelyVisible(meshID: string): void;
|
|
431
|
-
resetRealVisibility(): void;
|
|
432
|
-
changeMaterialColor(material: BABYLON.Material, propertyName: string, nextColor: BABYLON.Color3): void;
|
|
433
|
-
renameMesh(id: string, name: string): void;
|
|
434
|
-
protected firePreUpdateEvent(): void;
|
|
435
|
-
addPreUpdateListener(listenerFunction: PreUpdateEventHandler): void;
|
|
436
|
-
removePreUpdateListener(listenerFunction: PreUpdateEventHandler): void;
|
|
437
|
-
protected firePostUpdateEvent(): void;
|
|
438
|
-
addPostUpdateListener(listenerFunction: PostUpdateEventHandler): void;
|
|
439
|
-
removePostUpdateListener(listenerFunction: PreUpdateEventHandler): void;
|
|
440
|
-
protected fireMeshSelectedEvent(e: MeshSelectedEventArgs): void;
|
|
441
|
-
addMeshSelectedListener(listenerFunction: MeshSelectedEventHandler): void;
|
|
442
|
-
protected fireSelectionChangedEvent(): void;
|
|
443
|
-
addSelectionChangedListener(listenerFunction: SelectionChangedEventHandler): void;
|
|
444
|
-
protected fireLightSelectedEvent(e: LightSelectedEventArgs): void;
|
|
445
|
-
addLightSelectedListener(listenerFunction: LightSelectedEventHandler): void;
|
|
446
|
-
protected fireSceneCreatedEvent(): void;
|
|
447
|
-
addSceneCreatedListener(listenerFunction: SceneCreatedEventHandler): void;
|
|
448
|
-
protected fireCameraLocationCreatedEvent(e: Zakeke.SceneCameraLocation): void;
|
|
449
|
-
addCameraLocationCreatedListener(listenerFunction: CameraLocationCreatedEventHandler): void;
|
|
450
|
-
protected fireCameraLocationsUpdateEvent(locations?: Zakeke.SceneCameraLocation[]): void;
|
|
451
|
-
addCameraLocationsUpdateListener(listenerFunction: CameraLocationsUpdateEventHandler): void;
|
|
452
|
-
protected fireSceneSourceTaskSuccessEvent(meshes: BABYLON.AbstractMesh[]): void;
|
|
453
|
-
addSceneSourceTaskSuccessListener(listenerFunction: SceneSourceTaskSuccessEventHandler): void;
|
|
454
|
-
protected fireSceneSourceTaskErrorEvent(taskID?: number): void;
|
|
455
|
-
addSceneSourceTaskErrorListener(listenerFunction: SceneSourceTaskErrorEventHandler): void;
|
|
456
|
-
removeSceneSourceTaskErrorListener(listenerFunction: SceneSourceTaskErrorEventHandler): void;
|
|
457
|
-
protected fireSceneSourceTaskCheckEvent(): void;
|
|
458
|
-
addSceneSourceTaskCheckListener(listenerFunction: SceneSourceTaskCheckEventHandler): void;
|
|
459
|
-
protected fireMeshesUpdateEvent(meshes?: BABYLON.AbstractMesh[]): void;
|
|
460
|
-
addMeshesUpdateListener(listenerFunction: MeshesUpdateEventHandler): void;
|
|
461
|
-
protected fireMaterialsUpdateEvent(materials?: MaterialGroup[]): void;
|
|
462
|
-
addMaterialsUpdateListener(listenerFunction: MaterialsUpdateEventHandler): void;
|
|
463
|
-
protected fireLightsUpdateEvent(lights?: BABYLON.Light[]): void;
|
|
464
|
-
addLightsUpdateListener(listernerFunction: LightsUpdateEventHandler): void;
|
|
465
|
-
protected fireMeshLocationCreatedEvent(location: Zakeke.SceneMeshLocation): void;
|
|
466
|
-
addMeshLocationCreatedListener(listenerFunction: MeshLocationCreatedEventHandler): void;
|
|
467
|
-
protected fireMeshLocationsUpdateEvent(locations?: Zakeke.SceneMeshLocation[]): void;
|
|
468
|
-
addMeshLocatonsUpdateListener(listenerFunction: MeshLocationsUpdateEventHandler): void;
|
|
469
|
-
protected fireArTaskSuccessEvent(): void;
|
|
470
|
-
addArTaskSuccessListener(listenerFunction: ArTaskSuccessEventHandler): void;
|
|
471
|
-
protected fireArTaskErrorEvent(): void;
|
|
472
|
-
addArTaskErrorListener(listenerFunction: ArTaskErrorEventHandler): void;
|
|
473
|
-
protected fireArTaskCheckEvent(): void;
|
|
474
|
-
addArTaskCheckListener(listenerFunction: ArTasksCheckEventHandler): void;
|
|
475
|
-
fireFineTuningSettingEvent(settings: TryOnFineTuningSettings): void;
|
|
476
|
-
addFineTuningSettingListener(listenerFunction: TryOnTaskUpdateFineTuningSettingsEventHandler): number;
|
|
477
|
-
removeFineTuningSettingListener(listenerIndex: number): void;
|
|
478
|
-
removeAllFineTuningSettingListeners(): void;
|
|
479
|
-
fireFineTuningCloseEvent(): void;
|
|
480
|
-
addFineTuningCloseListener(listenerFunction: TryOnTaskCloseFineTuningEventHandler): void;
|
|
481
|
-
clearListeners(): void;
|
|
482
|
-
protected onPointerDown(evt: PointerEvent, pickInfo: BABYLON.PickingInfo): void;
|
|
483
|
-
protected onPointerMove(evt: BABYLON.IPointerEvent, pickInfo: BABYLON.PickingInfo): void;
|
|
484
|
-
getSubMesh(mesh: BABYLON.AbstractMesh, submeshIdx: number): Nullable<BABYLON.SubMesh>;
|
|
485
|
-
getLightByID(id: string): Nullable<BABYLON.Light>;
|
|
486
|
-
applyMaterialByName(name: string, mesh: BABYLON.AbstractMesh): void;
|
|
487
|
-
applyMaterial(material: BABYLON.Material, mesh: BABYLON.AbstractMesh): void;
|
|
488
|
-
applyMaterialToSubMeshByName(name: string, mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh): void;
|
|
489
|
-
applyMaterialToSubMesh(material: BABYLON.Material, mesh: Nullable<BABYLON.AbstractMesh>, subMesh: BABYLON.SubMesh): void;
|
|
490
|
-
resetMeshMaterial(mesh: BABYLON.AbstractMesh, initial: boolean): void;
|
|
491
|
-
resetSubMeshMaterial(mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh, initial: boolean): void;
|
|
492
|
-
getExtension(name: string): string | undefined;
|
|
493
|
-
loadMobileTextureFilesAsync(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean): Promise<void>;
|
|
494
|
-
getDAMMainMesh(): BABYLON.Mesh | undefined;
|
|
495
|
-
loadMobileTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
496
|
-
loadTextureFilesAsync(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean): Promise<void>;
|
|
497
|
-
loadTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
498
|
-
getRecursiveBoundingBox(mesh: BABYLON.AbstractMesh): BABYLON.BoundingBox;
|
|
499
|
-
calculateRecursiveBoundingBox(mesh: BABYLON.AbstractMesh): void;
|
|
500
|
-
calculateBoundingBox(meshes: BABYLON.AbstractMesh[]): number;
|
|
501
|
-
checkMeshHiddenByMeshes(meshes: BABYLON.AbstractMesh[], referenceMesh: BABYLON.AbstractMesh[], maxThreshold: number, minThreshold: number): number;
|
|
502
|
-
uploadTextureFileAsync(fileToLoad: File, material: Nullable<BABYLON.Material>): Promise<Nullable<Zakeke.SceneTexture>>;
|
|
503
|
-
uploadTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, onSuccess?: (zkSceneTextures: Zakeke.SceneTexture[]) => void, onError?: (reason: any) => void, resize?: boolean): void;
|
|
504
|
-
protected getTexturesUploadUrl(materialID: string): string;
|
|
505
|
-
removeAllMaterialPhotos(material: BABYLON.Material): void;
|
|
506
|
-
removeMaterialPhotoAtIndex(material: BABYLON.Material, index: number): void;
|
|
507
|
-
loadMaterialPhotoFiles(filesToLoad: File[], material: BABYLON.Material, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
508
|
-
uploadMaterialPhotoFiles(filesToLoad: File[], material: BABYLON.Material, onSuccess?: (zkSceneMaterialPhotos: Zakeke.SceneMaterialPhoto[]) => void, onError?: (reason: any) => void): void;
|
|
509
|
-
protected getMaterialPhotosUploadUrl(materialID: string): string;
|
|
510
|
-
protected canLoadCubemap(material: Nullable<BABYLON.Material>, type: string): boolean;
|
|
511
|
-
setEnvironmentTexture(url: string, type: string, extensions?: string[], files?: string[], onLoad?: () => void): void;
|
|
512
|
-
removeSceneEnvironmentTexture(): void;
|
|
513
|
-
setSceneEnvironmentTextureRotationY(rotationY: number): void;
|
|
514
|
-
private setTextureImage;
|
|
515
|
-
private setCubeTextureImages;
|
|
516
|
-
private setMobileTextureImage;
|
|
517
|
-
private setMobileCubeTextureImages;
|
|
518
|
-
private getCubeTextureInfo;
|
|
519
|
-
isTextureUsed(texture: BABYLON.BaseTexture): boolean;
|
|
520
|
-
changeTextureInvertYAsync(material: BABYLON.Material, type: string, invertY: boolean): Promise<void>;
|
|
521
|
-
applyTextureByName(name: string, material: BABYLON.Material, type: string): void;
|
|
522
|
-
applyTexture(texture: Nullable<BABYLON.BaseTexture>, material: BABYLON.Material, type: string): void;
|
|
523
|
-
getMaterialTexture(material: BABYLON.Material, type: string): Nullable<BABYLON.BaseTexture>;
|
|
524
|
-
removeMaterialTexture(material: BABYLON.Material, type: string): void;
|
|
525
|
-
removeMaterialMobileTexture(material: BABYLON.Material, type: string): void;
|
|
526
|
-
/**
|
|
527
|
-
* Create a group of meshes
|
|
528
|
-
* @param parentId Id of the parent node of the group
|
|
529
|
-
* @param name Name of the group
|
|
530
|
-
* @param children Array of meshes to be included in the group
|
|
531
|
-
*/
|
|
532
|
-
createGroup(parentId: Nullable<string>, name: string, children?: BABYLON.AbstractMesh[]): Nullable<BABYLON.Mesh>;
|
|
533
|
-
deleteMesh(meshID: string, removeMaterials: boolean): {
|
|
534
|
-
meshIDs: string[];
|
|
535
|
-
materialIDs: string[];
|
|
536
|
-
};
|
|
537
|
-
deleteAllMeshes(): void;
|
|
538
|
-
deleteDuplicatedMeshesWithDifferentParent(parentID: string, removeMaterials: boolean): {
|
|
539
|
-
meshIDs: string[];
|
|
540
|
-
materialIDs: string[];
|
|
541
|
-
};
|
|
542
|
-
deleteDuplicatedChildMeshes(parentID: string, removeMaterials: boolean): {
|
|
543
|
-
meshIDs: string[];
|
|
544
|
-
materialIDs: string[];
|
|
545
|
-
};
|
|
546
|
-
deleteMaterial(materialID: string): void;
|
|
547
|
-
private deleteMaterialInternal;
|
|
548
|
-
deleteAllMaterials(): void;
|
|
549
|
-
renameMaterial(id: string, name: string): void;
|
|
550
|
-
cloneMesh(id: string): Nullable<BABYLON.AbstractMesh>;
|
|
551
|
-
duplicateMesh(id: string, updatable?: boolean): Nullable<BABYLON.AbstractMesh>;
|
|
552
|
-
cloneMaterial(id: string, newId?: string, newName?: string): Nullable<BABYLON.Material>;
|
|
553
|
-
createMaterial(name?: string, type?: MaterialType, group?: string): Nullable<BABYLON.Material>;
|
|
554
|
-
changeMeshParent(meshID: string, newParentID: string): void;
|
|
555
|
-
removeMeshParent(meshID: any): void;
|
|
556
|
-
protected setManipulatedNode(node: Nullable<BABYLON.AbstractMesh>): void;
|
|
557
|
-
importLibraryMaterial(zkMaterial: Zakeke.Material): void;
|
|
558
|
-
getTexturesForMaterial(material: BABYLON.Material): BABYLON.BaseTexture[];
|
|
559
|
-
getStandardMaterialTextures(material: BABYLON.StandardMaterial): BABYLON.BaseTexture[];
|
|
560
|
-
getPBRBaseSimpleMaterialTextures(material: BABYLON.PBRBaseSimpleMaterial): BABYLON.BaseTexture[];
|
|
561
|
-
getPBRMaterialTextures(material: BABYLON.PBRMaterial): BABYLON.BaseTexture[];
|
|
562
|
-
getNewPBRMaterialTextures(material: Zakeke.PBRMaterial): BABYLON.BaseTexture[];
|
|
563
|
-
getPBRMetallicRoughnessMaterialTextures(material: BABYLON.PBRMetallicRoughnessMaterial): BABYLON.BaseTexture[];
|
|
564
|
-
getPBRSpecularGlossinessMaterialTextures(material: BABYLON.PBRSpecularGlossinessMaterial): BABYLON.BaseTexture[];
|
|
565
|
-
removeCameraLocation(cameraLocation: Zakeke.SceneCameraLocation): void;
|
|
566
|
-
saveCameraLocation(name: string): void;
|
|
567
|
-
clearCameraLocations(): void;
|
|
568
|
-
getAllCameraLocations(): Zakeke.SceneCameraLocation[];
|
|
569
|
-
saveMeshLocation(name: string): void;
|
|
570
|
-
saveExplodedMeshLocation(): void;
|
|
571
|
-
saveCollapsedMeshLocation(): void;
|
|
572
|
-
protected onBeforeSaveMeshLocation(): void;
|
|
573
|
-
protected onAfterSaveMeshLocation(): void;
|
|
574
|
-
clearMeshLocations(): void;
|
|
575
|
-
getAllMeshLocations(): Zakeke.SceneMeshLocation[];
|
|
576
|
-
makeLibraryMaterial(id: string, name: string): Promise<void>;
|
|
577
|
-
private getMaterialScreenShotForLibrary;
|
|
578
|
-
private createLibraryMaterial;
|
|
579
|
-
lightsLayer_onLightSelected(event: LightSelectedEventArgs): void;
|
|
580
|
-
isDefaultLight(light: BABYLON.Light): boolean;
|
|
581
|
-
createLight(name?: string, type?: LightType): Nullable<BABYLON.Light>;
|
|
582
|
-
cloneLight(id: string, newId?: string, newName?: string): Nullable<BABYLON.Light>;
|
|
583
|
-
renameLight(id: string, name: string): void;
|
|
584
|
-
deleteLight(id: string): void;
|
|
585
|
-
getAllLights(): BABYLON.Light[];
|
|
586
|
-
canShowLights(): boolean;
|
|
587
|
-
showHideLights(show: boolean): void;
|
|
588
|
-
canShowGround(): boolean;
|
|
589
|
-
removeGround(): void;
|
|
590
|
-
refreshGround(): void;
|
|
591
|
-
showHideGround(show: boolean): void;
|
|
592
|
-
canShowAxes(): boolean;
|
|
593
|
-
showHideAxes(show: boolean): void;
|
|
594
|
-
showHideHighlight(show: boolean): void;
|
|
595
|
-
setHighlightOver(highlight: boolean): void;
|
|
596
|
-
highlightMesh(mesh: Nullable<BABYLON.AbstractMesh>, highlight: boolean): void;
|
|
597
|
-
highlightMeshOver(highlight: boolean): void;
|
|
598
|
-
showHideEditControl(show: boolean): void;
|
|
599
|
-
setEditingMode(mode: EditingMode): void;
|
|
600
|
-
undoEditing(): void;
|
|
601
|
-
redoEditing(): void;
|
|
602
|
-
setEnvironmentMode(newMode: EnvironmentMode): void;
|
|
603
|
-
refreshEnvironment(): void;
|
|
604
|
-
zoomOnMesh(mesh: BABYLON.AbstractMesh): void;
|
|
605
|
-
moveCameraToMeshPosition(mesh: BABYLON.AbstractMesh): void;
|
|
606
|
-
exportMeshToOBJ(meshID: string): void;
|
|
607
|
-
exportMeshGeometryToJson(meshID: string): void;
|
|
608
|
-
enableDisableARForMesh(meshID: string, value: boolean): void;
|
|
609
|
-
isAREnabledForMesh(meshID: string): any;
|
|
610
|
-
enableDisableTryOnForMesh(meshID: string, value: boolean): void;
|
|
611
|
-
isTryOnEnabledForMesh(meshID: string): any;
|
|
612
|
-
splitSubMeshes(meshID: string): void;
|
|
613
|
-
flipMeshFaces(meshID: string): void;
|
|
614
|
-
convertSceneToScreenPoint(sceneX: number, sceneY: number): Nullable<{
|
|
615
|
-
X: number;
|
|
616
|
-
Y: number;
|
|
617
|
-
}>;
|
|
618
|
-
saveTextAsFile(text: string, filename: string): void;
|
|
619
|
-
saveBytesAsFile(data: ArrayBuffer, filename: string): void;
|
|
620
|
-
saveBlobAsFile(blob: Blob, filename: string, mimetype: string): void;
|
|
621
|
-
private downloadFile;
|
|
622
|
-
exportDracoEncodedToFile(meshID: string): void;
|
|
623
|
-
getDracoEncodedGeometry(originalMesh: BABYLON.AbstractMesh): Nullable<ArrayBuffer>;
|
|
624
|
-
createCustomMesh(): Nullable<BABYLON.Mesh>;
|
|
625
|
-
createBox(parentID: Nullable<string>, name: string): Nullable<BABYLON.AbstractMesh>;
|
|
626
|
-
getSceneBoundingBox(): Nullable<BABYLON.AbstractMesh>;
|
|
627
|
-
getOrCreateSceneBoundingBox(visible?: boolean): Nullable<BABYLON.AbstractMesh>;
|
|
628
|
-
createSceneBoundingBox(visible?: boolean): Nullable<BABYLON.AbstractMesh>;
|
|
629
|
-
createBoundingBox(meshID: Nullable<string>, name?: string, visible?: boolean): BABYLON.Mesh | null;
|
|
630
|
-
createSphere(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
631
|
-
createPlane(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
632
|
-
createDisc(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
633
|
-
createCylinder(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
634
|
-
createTorus(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
635
|
-
createKnot(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
636
|
-
createRibbon(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
637
|
-
createRoundedCubeAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
638
|
-
createRoundedCylinderAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
639
|
-
createMatBallAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
640
|
-
createMaleHeadAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
641
|
-
createFemaleHeadAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
642
|
-
createPokemonBallAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
643
|
-
createShaderBallAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
644
|
-
createBootsAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
645
|
-
createSuzanneAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
646
|
-
createStepPyramidAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
647
|
-
createTeapotAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
648
|
-
createAlloyWheelAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
649
|
-
createTryonReferenceGlassesFrameAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
650
|
-
createTryOnReferenceModelsAsync(parentID: Nullable<string>, name: string, filename: string): Promise<BABYLON.AbstractMesh[]>;
|
|
651
|
-
importMeshesFromUrlAsync(parentID: Nullable<string>, url: string): Promise<BABYLON.AbstractMesh[]>;
|
|
652
|
-
connectMeshToModelSideAsync(meshID: string, submeshID: number, sideID: number): Promise<void>;
|
|
653
|
-
clearMeshDesignManagers(): void;
|
|
654
|
-
getMeshDesignMananger(mesh: BABYLON.Mesh, subMesh: Nullable<BABYLON.SubMesh>): Nullable<import("..").MeshDesignManager>;
|
|
655
|
-
translateDesignView(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, dx: number, dy: number): void;
|
|
656
|
-
rotateDesignView(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, angle: number, centerX: number, centerY: number): void;
|
|
657
|
-
scaleDesignView(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, hor: number, ver: number, centerX: number, centerY: number): void;
|
|
658
|
-
setDesignViewTextureUVChannelAsync(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, uvChannel: number): Promise<void>;
|
|
659
|
-
setDesignViewFormFactorAsync(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, percWidth: number, percHeight: number): Promise<void>;
|
|
660
|
-
setSceneSizeCm(size: number | null, sizeType: ObjectSizeType): void;
|
|
661
|
-
getSceneWidthCm(): Nullable<number>;
|
|
662
|
-
getSceneHeightCm(): Nullable<number>;
|
|
663
|
-
getSceneDepthCm(): Nullable<number>;
|
|
664
|
-
setMeshSizeCm(meshId: string, size: number | null, sizeType: ObjectSizeType): void;
|
|
665
|
-
getMeshWidthCm(meshID: string): Nullable<number>;
|
|
666
|
-
getMeshHeightCm(meshID: string): Nullable<number>;
|
|
667
|
-
getMeshDepthCm(meshID: string): Nullable<number>;
|
|
668
|
-
getMaterialsPreviewsAsync(materialIDs: string[], width?: number, height?: number, crop?: boolean, createBlobs?: boolean): Promise<(Blob | string)[]>;
|
|
669
|
-
getAllMaterialsPreviewsAsync(width?: number, height?: number, crop?: boolean, createBlobs?: boolean): Promise<(Blob | string)[]>;
|
|
670
|
-
downloadMaterialsPreviewsAsync(materialIDs: string[], width?: number, height?: number, crop?: boolean): Promise<void>;
|
|
671
|
-
downloadAllMaterialsPreviewsAsync(width?: number, height?: number, crop?: boolean): Promise<void>;
|
|
672
|
-
createEnvelopeMesh(meshID: string): Nullable<BABYLON.AbstractMesh>;
|
|
673
|
-
expandMesh(meshID: string, delta: number): void;
|
|
674
|
-
enableDisableMeshFacetData(meshID: string, enable: boolean): void;
|
|
675
|
-
enableDisableDepthSortFacets(meshID: string, enable: boolean): void;
|
|
676
|
-
}
|
|
1
|
+
import { EnvironmentManager } from '../Components/Environment/EnvironmentManager';
|
|
2
|
+
import { EditingMode, EnvironmentMode } from '../Enumerations';
|
|
3
|
+
import { IDisposable } from '../Interfaces/IDisposable';
|
|
4
|
+
import { ISceneEditor } from '../Interfaces/ISceneEditor';
|
|
5
|
+
import { FineTuningProviderData, TryOnFineTuningSettings, TryOnProvider, TryOnSettings, TryOnSettingsType, TryOnType } from '../Interfaces/ITryOn';
|
|
6
|
+
import { LightSelectedEventArgs, LightSelectedEventHandler } from '../Layers/LightsLayer';
|
|
7
|
+
import { Nullable } from '../types';
|
|
8
|
+
import { SceneViewer } from './SceneViewer';
|
|
9
|
+
export declare class MaterialGroup {
|
|
10
|
+
groupName: string;
|
|
11
|
+
materials: BABYLON.Material[];
|
|
12
|
+
guid: string;
|
|
13
|
+
constructor(groupName: string);
|
|
14
|
+
}
|
|
15
|
+
export type SceneEditorOptions = {
|
|
16
|
+
showGround?: boolean;
|
|
17
|
+
showHighlight?: boolean;
|
|
18
|
+
highlightColor?: string;
|
|
19
|
+
editorBackgroundColor?: string;
|
|
20
|
+
highlightOver?: boolean;
|
|
21
|
+
highlightOverColor?: string;
|
|
22
|
+
};
|
|
23
|
+
export type FileObjectData = {
|
|
24
|
+
fileObjectID?: number | null | undefined;
|
|
25
|
+
fileLength?: number | null | undefined;
|
|
26
|
+
url?: string | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
export type SceneSourceTextureInfo = {
|
|
29
|
+
textureID?: string;
|
|
30
|
+
fileObjectID?: number | null | undefined;
|
|
31
|
+
fileLength?: number | null | undefined;
|
|
32
|
+
url?: string;
|
|
33
|
+
};
|
|
34
|
+
export type SceneSourceInfo = {
|
|
35
|
+
sourceID?: string;
|
|
36
|
+
fileObjectID?: number | null | undefined;
|
|
37
|
+
fileLength?: number | null | undefined;
|
|
38
|
+
url?: string;
|
|
39
|
+
rootUrl?: string;
|
|
40
|
+
sceneFileName?: string;
|
|
41
|
+
textureFiles: SceneSourceTextureInfo[];
|
|
42
|
+
};
|
|
43
|
+
export type SceneTextureInfo = {
|
|
44
|
+
sceneID?: string;
|
|
45
|
+
textureID?: string;
|
|
46
|
+
materialID?: string;
|
|
47
|
+
fileObjectID?: number | null | undefined;
|
|
48
|
+
fileLength?: number | null | undefined;
|
|
49
|
+
url?: string;
|
|
50
|
+
};
|
|
51
|
+
export type SceneMaterialPhotoInfo = {
|
|
52
|
+
sceneID?: string;
|
|
53
|
+
photoID?: string;
|
|
54
|
+
materialID?: string;
|
|
55
|
+
fileObjectID?: number | null | undefined;
|
|
56
|
+
fileLength?: number | null | undefined;
|
|
57
|
+
url?: string;
|
|
58
|
+
};
|
|
59
|
+
export declare enum SourceTaskStatus {
|
|
60
|
+
uploading = 0,
|
|
61
|
+
progress = 1,
|
|
62
|
+
checking = 2,
|
|
63
|
+
success = 3,
|
|
64
|
+
completed_success = 4,
|
|
65
|
+
completed_error = 5
|
|
66
|
+
}
|
|
67
|
+
export type SceneSourceTask = {
|
|
68
|
+
taskID?: number;
|
|
69
|
+
sourceID?: string;
|
|
70
|
+
status?: SourceTaskStatus;
|
|
71
|
+
message?: string;
|
|
72
|
+
downloadProgress?: number;
|
|
73
|
+
uploadProgress?: number;
|
|
74
|
+
sceneSourceInfo: SceneSourceInfo;
|
|
75
|
+
};
|
|
76
|
+
export type MeshSelectedEventArgs = {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
scenePointerX: number;
|
|
80
|
+
scenePointerY: number;
|
|
81
|
+
screenPointerX: number;
|
|
82
|
+
screenPointerY: number;
|
|
83
|
+
};
|
|
84
|
+
export type UploadSceneFileInfo = {
|
|
85
|
+
sceneID: string;
|
|
86
|
+
fileObjectID?: number | null | undefined;
|
|
87
|
+
fileLength?: number | null | undefined;
|
|
88
|
+
url: string;
|
|
89
|
+
rootUrl: string;
|
|
90
|
+
sceneFileName: string;
|
|
91
|
+
manifestFileObjectID?: number | null | undefined;
|
|
92
|
+
manifestFileLength?: number | null | undefined;
|
|
93
|
+
manifestFileUrl?: string | null | undefined;
|
|
94
|
+
incrementalsFileObjectID?: number | null | undefined;
|
|
95
|
+
incrementalsFileLength?: number | null | undefined;
|
|
96
|
+
incrementalsFileUrl?: string | null | undefined;
|
|
97
|
+
};
|
|
98
|
+
export type ProvidersTypesMapping = {
|
|
99
|
+
list: {
|
|
100
|
+
[key: string]: number;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type MaterialType = 'Standard' | 'PBRMetallicRoughness' | 'PBRSpecularGlossiness' | 'PBR' | 'NewPBR';
|
|
104
|
+
export type LightType = 'Point' | 'Directional' | 'Spot' | 'Hemispheric';
|
|
105
|
+
export type ObjectSizeType = 'width' | 'height' | 'depth';
|
|
106
|
+
export type PreUpdateEventHandler = () => void;
|
|
107
|
+
export type PostUpdateEventHandler = () => void;
|
|
108
|
+
export type MeshSelectedEventHandler = (evt: MeshSelectedEventArgs) => void;
|
|
109
|
+
export type SelectionChangedEventHandler = () => void;
|
|
110
|
+
export type SceneCreatedEventHandler = () => void;
|
|
111
|
+
export type CameraLocationCreatedEventHandler = (evt: Zakeke.SceneCameraLocation) => void;
|
|
112
|
+
export type SceneSourceTaskSuccessEventHandler = (evt: BABYLON.AbstractMesh[]) => void;
|
|
113
|
+
export type SceneSourceTaskErrorEventHandler = (evt?: number) => void;
|
|
114
|
+
export type SceneSourceTaskCheckEventHandler = () => void;
|
|
115
|
+
export type MeshesUpdateEventHandler = (evt: BABYLON.AbstractMesh[]) => void;
|
|
116
|
+
export type MaterialsUpdateEventHandler = (evt: MaterialGroup[]) => void;
|
|
117
|
+
export type LightsUpdateEventHandler = (evt: BABYLON.Light[]) => void;
|
|
118
|
+
export type CameraLocationsUpdateEventHandler = (evt: Zakeke.SceneCameraLocation[]) => void;
|
|
119
|
+
export type MeshLocationCreatedEventHandler = (evt: Zakeke.SceneMeshLocation) => void;
|
|
120
|
+
export type MeshLocationsUpdateEventHandler = (evt: Zakeke.SceneMeshLocation[]) => void;
|
|
121
|
+
export type ArTaskSuccessEventHandler = () => void;
|
|
122
|
+
export type ArTaskErrorEventHandler = () => void;
|
|
123
|
+
export type ArTasksCheckEventHandler = () => void;
|
|
124
|
+
export type TryOnTaskUpdateFineTuningSettingsEventHandler = (evt: TryOnFineTuningSettings) => void;
|
|
125
|
+
export type TryOnTaskCloseFineTuningEventHandler = () => void;
|
|
126
|
+
export declare class SceneEditor extends SceneViewer implements ISceneEditor, IDisposable {
|
|
127
|
+
private _dracoEnabled;
|
|
128
|
+
private _dracoEncodingSpeed;
|
|
129
|
+
private _dracoDecodingSpeed;
|
|
130
|
+
private _envMode;
|
|
131
|
+
private _selectOnPick;
|
|
132
|
+
private _showBoundingBox;
|
|
133
|
+
private _editorBackgroundColor;
|
|
134
|
+
private _showGround;
|
|
135
|
+
private _ground;
|
|
136
|
+
private _showLights;
|
|
137
|
+
private _lightsLayer;
|
|
138
|
+
private _showAxes;
|
|
139
|
+
private _axesLayer;
|
|
140
|
+
private _showFineTuning;
|
|
141
|
+
private _fineTuningModelLoaded;
|
|
142
|
+
private _showHighlight;
|
|
143
|
+
private _highlightOver;
|
|
144
|
+
private _highlightOverColor;
|
|
145
|
+
private _editingMode;
|
|
146
|
+
private _manipulatedNode;
|
|
147
|
+
private _oldManipulatedNode;
|
|
148
|
+
private _EditControl;
|
|
149
|
+
private _editControl;
|
|
150
|
+
private _editControlVisible;
|
|
151
|
+
private _shiftPressed;
|
|
152
|
+
private _ctrlPressed;
|
|
153
|
+
private _realMeshVisibility;
|
|
154
|
+
private _sceneSourceTasks;
|
|
155
|
+
private _isLoadingSourceFiles;
|
|
156
|
+
private _preUpdateListeners;
|
|
157
|
+
private _postUpdateListeners;
|
|
158
|
+
private _meshSelectedListeners;
|
|
159
|
+
private _selectionChangedListeners;
|
|
160
|
+
private _lightSelectedListeners;
|
|
161
|
+
private _sceneCreatedListeners;
|
|
162
|
+
private _cameraLocationCreatedListeners;
|
|
163
|
+
private _sceneSourceTaskSuccessListeners;
|
|
164
|
+
private _sceneSourceTaskErrorListeners;
|
|
165
|
+
private _sceneSourceTasksCheckListeners;
|
|
166
|
+
private _meshesUpdateListeners;
|
|
167
|
+
private _materialsUpdateListeners;
|
|
168
|
+
private _lightsUpdateListeners;
|
|
169
|
+
private _cameraLocationsUpdateListeners;
|
|
170
|
+
private _meshLocationCreatedListeners;
|
|
171
|
+
private _meshLocationsUpdateListeners;
|
|
172
|
+
private _arTaskSuccessListeners;
|
|
173
|
+
private _arTaskErrorListeners;
|
|
174
|
+
private _arTasksCheckListeners;
|
|
175
|
+
private _tryOnFineTuningSettingListeners;
|
|
176
|
+
private _tryOnFineTuningCloseListeners;
|
|
177
|
+
private _providersTypesMapping;
|
|
178
|
+
private _pickedProvider;
|
|
179
|
+
private _providerData;
|
|
180
|
+
private _sessionTryOnEnabled;
|
|
181
|
+
private _tryOnInfoLoading;
|
|
182
|
+
private _initialMeshMaterials;
|
|
183
|
+
private _initialSubMeshMaterials;
|
|
184
|
+
private _lastMeshMaterials;
|
|
185
|
+
private _lastSubMeshMaterials;
|
|
186
|
+
private _meshOver;
|
|
187
|
+
private _incrementalFilesMaker?;
|
|
188
|
+
private _sceneToBlobs?;
|
|
189
|
+
private _showMeasurements;
|
|
190
|
+
private _modelMeasurements;
|
|
191
|
+
private static readonly EmptyGroupName;
|
|
192
|
+
get realMeshVisibility(): {
|
|
193
|
+
[meshID: string]: boolean;
|
|
194
|
+
};
|
|
195
|
+
get environmentManager(): Nullable<EnvironmentManager>;
|
|
196
|
+
get envMode(): EnvironmentMode;
|
|
197
|
+
get sceneSourceTasks(): SceneSourceTask[];
|
|
198
|
+
set envMode(value: EnvironmentMode);
|
|
199
|
+
get selectOnPick(): boolean;
|
|
200
|
+
set seletOnPick(value: boolean);
|
|
201
|
+
get showBoundingBox(): boolean;
|
|
202
|
+
set showBoundingBox(value: boolean);
|
|
203
|
+
get editorBackgroundColor(): string;
|
|
204
|
+
set editorBackgroundColor(value: string);
|
|
205
|
+
get showGround(): boolean;
|
|
206
|
+
set showGround(value: boolean);
|
|
207
|
+
get showLights(): boolean;
|
|
208
|
+
set showLights(value: boolean);
|
|
209
|
+
get showAxes(): boolean;
|
|
210
|
+
set showAxes(value: boolean);
|
|
211
|
+
get showFineTuning(): boolean;
|
|
212
|
+
set showFineTuning(value: boolean);
|
|
213
|
+
set fineTuningModelLoaded(value: boolean);
|
|
214
|
+
get fineTuningModelLoaded(): boolean;
|
|
215
|
+
get sessionTryOnEnabled(): boolean;
|
|
216
|
+
set sessionTryOnEnabled(value: boolean);
|
|
217
|
+
get tryOnInfoLoading(): boolean;
|
|
218
|
+
set tryOnInfoLoading(value: boolean);
|
|
219
|
+
get showHighlight(): boolean;
|
|
220
|
+
set showHighlight(value: boolean);
|
|
221
|
+
get highlightOver(): boolean;
|
|
222
|
+
set highlightOver(value: boolean);
|
|
223
|
+
get highlightOverColor(): string;
|
|
224
|
+
set highlightOverColor(value: string);
|
|
225
|
+
get editingMode(): EditingMode;
|
|
226
|
+
set editingMode(value: EditingMode);
|
|
227
|
+
get editControlVisible(): boolean;
|
|
228
|
+
set editControlVisible(value: boolean);
|
|
229
|
+
get providersTypesMapping(): ProvidersTypesMapping;
|
|
230
|
+
set providersTypesMapping(value: ProvidersTypesMapping);
|
|
231
|
+
get selectedProvider(): TryOnProvider;
|
|
232
|
+
get selectedProviderFineTuningData(): FineTuningProviderData;
|
|
233
|
+
get modelMeasurements(): BABYLON.Vector3;
|
|
234
|
+
set modelMeasurements(value: BABYLON.Vector3);
|
|
235
|
+
get showMeasurements(): boolean;
|
|
236
|
+
fireHideMeasurementsEvent(): void;
|
|
237
|
+
fireShowMeasurementsEvent(): void;
|
|
238
|
+
protected constructor(options?: SceneEditorOptions);
|
|
239
|
+
static createSceneEditorAsync(options?: SceneEditorOptions): Promise<SceneEditor>;
|
|
240
|
+
protected createCanvas(): HTMLCanvasElement;
|
|
241
|
+
protected deleteComponents(): void;
|
|
242
|
+
dispose(): void;
|
|
243
|
+
protected createEngine(): void;
|
|
244
|
+
createEmptySceneAsync(): Promise<void>;
|
|
245
|
+
protected setupSceneAsync(): Promise<void>;
|
|
246
|
+
render(): void;
|
|
247
|
+
private deleteHighlightLayer;
|
|
248
|
+
protected setupAntialiasPostProcesses(): void;
|
|
249
|
+
protected canEnableAntialiasing(): boolean;
|
|
250
|
+
protected setupHighlightLayerIntensity(): void;
|
|
251
|
+
protected setupAxes(): void;
|
|
252
|
+
getMatchSameNameTextures(): boolean;
|
|
253
|
+
setMatchSameNameTextures(value: boolean): void;
|
|
254
|
+
getAREnabled(): boolean;
|
|
255
|
+
setAREnabled(value: boolean): void;
|
|
256
|
+
getAROnTheFly(): boolean;
|
|
257
|
+
setAROnTheFly(value: boolean): void;
|
|
258
|
+
setARAnchor(value: 'wall' | 'floor' | null): void;
|
|
259
|
+
getTryOnEnabled(): boolean;
|
|
260
|
+
setTryOnEnabled(value: boolean): void;
|
|
261
|
+
setTryOnSelectedType(value: TryOnType): void;
|
|
262
|
+
getForceDracoCompression(): boolean;
|
|
263
|
+
setForceDracoCompression(value: boolean): void;
|
|
264
|
+
setProvider(provider: TryOnProvider): void;
|
|
265
|
+
setProviderFineTuningData(data: FineTuningProviderData): void;
|
|
266
|
+
resetProviderFineTuningData(): void;
|
|
267
|
+
getTryOnSelectedType(): TryOnType | null;
|
|
268
|
+
getTryOnSetting(key: TryOnSettingsType): boolean;
|
|
269
|
+
setTryOnSetting(key: TryOnSettingsType, value: any): void;
|
|
270
|
+
setTryOnTypeSettings(settings: TryOnSettings): void;
|
|
271
|
+
setTryOnDefaultTypeSettings(): void;
|
|
272
|
+
getUseDelayedMaterialLoading(): boolean;
|
|
273
|
+
setUseDelayedMaterialLoading(value: boolean): void;
|
|
274
|
+
getUseDelayedTextureLoading(): boolean;
|
|
275
|
+
setUseDelayedTextureLoading(value: boolean): void;
|
|
276
|
+
getGlowEnabled(): boolean;
|
|
277
|
+
setGlowEnabled(enabled: boolean): void;
|
|
278
|
+
getGlowIntensity(): number;
|
|
279
|
+
setGlowIntensity(intensity: number): void;
|
|
280
|
+
getGlowBlurSize(): number;
|
|
281
|
+
setGlowBlurSize(blurSize: number): void;
|
|
282
|
+
getInfoPointsEnabled(): boolean;
|
|
283
|
+
setInfoPointsEnabled(value: boolean): void;
|
|
284
|
+
getInfoPointsBorderColor(): string;
|
|
285
|
+
setInfoPointsBorderColor(value: string): void;
|
|
286
|
+
getInfoPointsInnerPointColor(): string;
|
|
287
|
+
setInfoPointsInnerPointColor(value: string): void;
|
|
288
|
+
getInfoPointsColor(): string;
|
|
289
|
+
setInfoPointsColor(value: string): void;
|
|
290
|
+
getInfoPointsHighlightColor(): string;
|
|
291
|
+
setInfoPointsHighlightColor(value: string): void;
|
|
292
|
+
enableGlowForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
293
|
+
disableGlowForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
294
|
+
enableARForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
295
|
+
disableARForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
296
|
+
disableTryOnForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
297
|
+
enableTryOnForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
298
|
+
enableInfoPointsForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
299
|
+
disableInfoPointsForMesh(mesh: BABYLON.AbstractMesh): void;
|
|
300
|
+
enableForcedInfoPointsVisibilityOnMesh(mesh: BABYLON.AbstractMesh): void;
|
|
301
|
+
disableForcedInfoPointsVisibilityOnMesh(mesh: BABYLON.AbstractMesh): void;
|
|
302
|
+
setEditorBackgroundColor(hexColor: string): void;
|
|
303
|
+
setViewerBackgroundAlpha(alpha: number): void;
|
|
304
|
+
setViewerBackgroundColor(hexColor: string): void;
|
|
305
|
+
setViewerEnvironmentSizeAuto(sizeAuto: boolean): void;
|
|
306
|
+
setViewerEnvironmentMainColor(hexColor: string): void;
|
|
307
|
+
setViewerSkyboxCreateSkybox(createSkybox: boolean): void;
|
|
308
|
+
setViewerSkyboxSize(size: number): void;
|
|
309
|
+
setViewerSkyboxBlur(blur: number): void;
|
|
310
|
+
setViewerSkyboxTexture(url: string, extensions?: string[], files?: string[]): void;
|
|
311
|
+
removeViewerSkyboxTexture(): void;
|
|
312
|
+
setViewerSkyboxColor(hexColor: string): void;
|
|
313
|
+
setViewerGroundCreateGround(createGround: boolean): void;
|
|
314
|
+
setViewerGroundSize(size: number): void;
|
|
315
|
+
setViewerGroundTexture(url: string): void;
|
|
316
|
+
removeViewerGroundTexture(): void;
|
|
317
|
+
setViewerGroundColor(hexColor: string): void;
|
|
318
|
+
setViewerGroundOpacity(opacity: number): void;
|
|
319
|
+
setViewerGroundEnableShadow(enableShadow: boolean): void;
|
|
320
|
+
setViewerGroundShadowLevel(shadowLevel: number): void;
|
|
321
|
+
setViewerGroundEnableMirror(enableMirror: boolean): void;
|
|
322
|
+
setViewerGroundMirrorBlur(mirrorBlur: number): void;
|
|
323
|
+
setViewerCameraAutoRotate(autoRotate: boolean): void;
|
|
324
|
+
setViewerCameraContrast(contrast: number): void;
|
|
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;
|
|
330
|
+
setViewerCameraToneMappingEnabled(toneMappingEnabled: boolean): void;
|
|
331
|
+
resetEditorEnvironment(): void;
|
|
332
|
+
protected resetEditorBackground(): void;
|
|
333
|
+
protected resetEditorCamera(): void;
|
|
334
|
+
protected preSceneContentScreenshot(): void;
|
|
335
|
+
protected postSceneContentScreenshot(): void;
|
|
336
|
+
protected preSceneMaterialScreenshot(): void;
|
|
337
|
+
protected postSceneMaterialScreenshot(): void;
|
|
338
|
+
sceneReadyForSave(): boolean;
|
|
339
|
+
isCurrentCameraPivot(meshID: string): boolean | null;
|
|
340
|
+
getCurrentCameraPivotID(): Nullable<string>;
|
|
341
|
+
setCameraPivot(meshID: string | null | undefined): void;
|
|
342
|
+
private getBlobFromEmbeddedTextureAsync;
|
|
343
|
+
private uploadEmbeddedTexturesAsync;
|
|
344
|
+
protected useIncrementalLoading(): boolean;
|
|
345
|
+
updateSceneModel(onSuccess: () => void, onError?: (reason: string) => void, onProgress?: (perc: number, type?: string) => void, options?: {
|
|
346
|
+
forceDraco?: boolean;
|
|
347
|
+
}): void;
|
|
348
|
+
private onUploadScenFileSuccess;
|
|
349
|
+
private uploadSceneFile;
|
|
350
|
+
private getSceneFileBlobsAsync;
|
|
351
|
+
getSceneJson(): string;
|
|
352
|
+
private resetCameraRotationLimits;
|
|
353
|
+
private setCameraRotationLimits;
|
|
354
|
+
private adjustSceneForSerialization;
|
|
355
|
+
private extractTextureNameAndUrl;
|
|
356
|
+
private removeDisabledFresnelParameters;
|
|
357
|
+
private uploadSceneIncrementalFiles;
|
|
358
|
+
private getSceneIncrementalFilesAsync;
|
|
359
|
+
setNewSceneModelAsync(zkModel: MPlaza.Model, zkScene: Zakeke.Scene): Promise<void>;
|
|
360
|
+
getSceneConfig(): Zakeke.SceneConfig | null;
|
|
361
|
+
protected preSceneFileLoading(): void;
|
|
362
|
+
protected postSceneFileLoading(): void;
|
|
363
|
+
removeAllVTOReferenceMeshes(meshes: BABYLON.AbstractMesh[]): BABYLON.Mesh[];
|
|
364
|
+
hideAllVTOFiles(meshes: BABYLON.AbstractMesh[]): void;
|
|
365
|
+
loadSceneSourceFiles(files?: File[] | string, onSuccess?: (task: SceneSourceTask) => void, onError?: (reason: string) => void): void;
|
|
366
|
+
private checkSceneSourceTasks;
|
|
367
|
+
private updateSceneModelFromSourceTask;
|
|
368
|
+
private loadMeshesFromRemoteFiles;
|
|
369
|
+
private loadMeshesFromRemoteFiles_OLD;
|
|
370
|
+
isRealMesh(mesh: BABYLON.AbstractMesh): boolean;
|
|
371
|
+
onMeshChanged(evt: {
|
|
372
|
+
mesh: BABYLON.AbstractMesh;
|
|
373
|
+
}): void;
|
|
374
|
+
onSubMeshChanged(evt: {
|
|
375
|
+
mesh: BABYLON.AbstractMesh;
|
|
376
|
+
subMesh: BABYLON.SubMesh;
|
|
377
|
+
}): void;
|
|
378
|
+
onMaterialChanged(evt: {
|
|
379
|
+
material: BABYLON.Material;
|
|
380
|
+
}): void;
|
|
381
|
+
onLightChanged(evt: {
|
|
382
|
+
light: BABYLON.Light;
|
|
383
|
+
}): void;
|
|
384
|
+
getSceneMeshesByName(name: string): BABYLON.AbstractMesh[];
|
|
385
|
+
getSceneMeshes(): BABYLON.AbstractMesh[];
|
|
386
|
+
getMeshesUsingMaterial(materialID: string): BABYLON.AbstractMesh[];
|
|
387
|
+
getMeshesMaterials(meshes: BABYLON.AbstractMesh[]): BABYLON.Material[];
|
|
388
|
+
getMeshMaterials(mesh: BABYLON.AbstractMesh): BABYLON.Material[];
|
|
389
|
+
getAllMaterials(): BABYLON.Material[];
|
|
390
|
+
getGroupedMaterials(): MaterialGroup[];
|
|
391
|
+
setMaterialsGroup(materialIDs: string[], groupName: string, fireEvent?: boolean): void;
|
|
392
|
+
setMaterialGroup(materialID: string, groupName: string, fireEvent?: boolean): void;
|
|
393
|
+
getMaterialGroup(materialID: string): string;
|
|
394
|
+
removeMaterialGroup(materialID: string): void;
|
|
395
|
+
getMaterialsByGroup(groupName: string | undefined | null): BABYLON.Material[];
|
|
396
|
+
getGroupCenter(parent: BABYLON.AbstractMesh): Nullable<BABYLON.Vector3>;
|
|
397
|
+
getGroupBoundingInfo(parent: BABYLON.AbstractMesh): BABYLON.BoundingInfo;
|
|
398
|
+
showHideBoundingBox(show: any): void;
|
|
399
|
+
updateBoundingBox(): void;
|
|
400
|
+
deleteBoundingBox(): void;
|
|
401
|
+
setCameraPositionScale(scale: number): void;
|
|
402
|
+
setCameraLimitLowerRadius(limit: boolean): void;
|
|
403
|
+
setCameraZoomEnabled(enabled: boolean): void;
|
|
404
|
+
setCameraUseMinZoomPercentage(value: boolean): void;
|
|
405
|
+
setCameraMinZoomPercentage(value: number): void;
|
|
406
|
+
setCameraUseMaxZoomPercentage(value: boolean): void;
|
|
407
|
+
setCameraMaxZoomPercentage(value: number): void;
|
|
408
|
+
lockCameraAlphaAngle(): void;
|
|
409
|
+
unlockCameraAlphaAngle(): void;
|
|
410
|
+
lockCameraBetaAngle(): void;
|
|
411
|
+
unlockCameraBetaAngle(): void;
|
|
412
|
+
setCameraLowerAlphaLimit(): void;
|
|
413
|
+
unsetCameraLowerAlphaLimit(): void;
|
|
414
|
+
setCameraUpperAlphaLimit(): void;
|
|
415
|
+
unsetCameraUpperAlphaLimit(): void;
|
|
416
|
+
setCameraLowerBetaLimit(): void;
|
|
417
|
+
unsetCameraLowerBetaLimit(): void;
|
|
418
|
+
setCameraUpperBetaLimit(): void;
|
|
419
|
+
unsetCameraUpperBetaLimit(): void;
|
|
420
|
+
selectMesh(id: string): void;
|
|
421
|
+
unselectMesh(id: string): void;
|
|
422
|
+
unselectAllMeshes(): void;
|
|
423
|
+
selectUnselectMesh(id: string, select: boolean): void;
|
|
424
|
+
selectSingleMesh(mesh: BABYLON.AbstractMesh): void;
|
|
425
|
+
unselectSingleMesh(mesh: any): void;
|
|
426
|
+
isMeshSelected(mesh: BABYLON.AbstractMesh): boolean;
|
|
427
|
+
showMesh(meshID: string): void;
|
|
428
|
+
hideMesh(meshID: string): void;
|
|
429
|
+
showHideMesh(meshID: string, show: boolean, notifyChanges?: boolean): void;
|
|
430
|
+
setTemporaryExclusivelyVisible(meshID: string): void;
|
|
431
|
+
resetRealVisibility(): void;
|
|
432
|
+
changeMaterialColor(material: BABYLON.Material, propertyName: string, nextColor: BABYLON.Color3): void;
|
|
433
|
+
renameMesh(id: string, name: string): void;
|
|
434
|
+
protected firePreUpdateEvent(): void;
|
|
435
|
+
addPreUpdateListener(listenerFunction: PreUpdateEventHandler): void;
|
|
436
|
+
removePreUpdateListener(listenerFunction: PreUpdateEventHandler): void;
|
|
437
|
+
protected firePostUpdateEvent(): void;
|
|
438
|
+
addPostUpdateListener(listenerFunction: PostUpdateEventHandler): void;
|
|
439
|
+
removePostUpdateListener(listenerFunction: PreUpdateEventHandler): void;
|
|
440
|
+
protected fireMeshSelectedEvent(e: MeshSelectedEventArgs): void;
|
|
441
|
+
addMeshSelectedListener(listenerFunction: MeshSelectedEventHandler): void;
|
|
442
|
+
protected fireSelectionChangedEvent(): void;
|
|
443
|
+
addSelectionChangedListener(listenerFunction: SelectionChangedEventHandler): void;
|
|
444
|
+
protected fireLightSelectedEvent(e: LightSelectedEventArgs): void;
|
|
445
|
+
addLightSelectedListener(listenerFunction: LightSelectedEventHandler): void;
|
|
446
|
+
protected fireSceneCreatedEvent(): void;
|
|
447
|
+
addSceneCreatedListener(listenerFunction: SceneCreatedEventHandler): void;
|
|
448
|
+
protected fireCameraLocationCreatedEvent(e: Zakeke.SceneCameraLocation): void;
|
|
449
|
+
addCameraLocationCreatedListener(listenerFunction: CameraLocationCreatedEventHandler): void;
|
|
450
|
+
protected fireCameraLocationsUpdateEvent(locations?: Zakeke.SceneCameraLocation[]): void;
|
|
451
|
+
addCameraLocationsUpdateListener(listenerFunction: CameraLocationsUpdateEventHandler): void;
|
|
452
|
+
protected fireSceneSourceTaskSuccessEvent(meshes: BABYLON.AbstractMesh[]): void;
|
|
453
|
+
addSceneSourceTaskSuccessListener(listenerFunction: SceneSourceTaskSuccessEventHandler): void;
|
|
454
|
+
protected fireSceneSourceTaskErrorEvent(taskID?: number): void;
|
|
455
|
+
addSceneSourceTaskErrorListener(listenerFunction: SceneSourceTaskErrorEventHandler): void;
|
|
456
|
+
removeSceneSourceTaskErrorListener(listenerFunction: SceneSourceTaskErrorEventHandler): void;
|
|
457
|
+
protected fireSceneSourceTaskCheckEvent(): void;
|
|
458
|
+
addSceneSourceTaskCheckListener(listenerFunction: SceneSourceTaskCheckEventHandler): void;
|
|
459
|
+
protected fireMeshesUpdateEvent(meshes?: BABYLON.AbstractMesh[]): void;
|
|
460
|
+
addMeshesUpdateListener(listenerFunction: MeshesUpdateEventHandler): void;
|
|
461
|
+
protected fireMaterialsUpdateEvent(materials?: MaterialGroup[]): void;
|
|
462
|
+
addMaterialsUpdateListener(listenerFunction: MaterialsUpdateEventHandler): void;
|
|
463
|
+
protected fireLightsUpdateEvent(lights?: BABYLON.Light[]): void;
|
|
464
|
+
addLightsUpdateListener(listernerFunction: LightsUpdateEventHandler): void;
|
|
465
|
+
protected fireMeshLocationCreatedEvent(location: Zakeke.SceneMeshLocation): void;
|
|
466
|
+
addMeshLocationCreatedListener(listenerFunction: MeshLocationCreatedEventHandler): void;
|
|
467
|
+
protected fireMeshLocationsUpdateEvent(locations?: Zakeke.SceneMeshLocation[]): void;
|
|
468
|
+
addMeshLocatonsUpdateListener(listenerFunction: MeshLocationsUpdateEventHandler): void;
|
|
469
|
+
protected fireArTaskSuccessEvent(): void;
|
|
470
|
+
addArTaskSuccessListener(listenerFunction: ArTaskSuccessEventHandler): void;
|
|
471
|
+
protected fireArTaskErrorEvent(): void;
|
|
472
|
+
addArTaskErrorListener(listenerFunction: ArTaskErrorEventHandler): void;
|
|
473
|
+
protected fireArTaskCheckEvent(): void;
|
|
474
|
+
addArTaskCheckListener(listenerFunction: ArTasksCheckEventHandler): void;
|
|
475
|
+
fireFineTuningSettingEvent(settings: TryOnFineTuningSettings): void;
|
|
476
|
+
addFineTuningSettingListener(listenerFunction: TryOnTaskUpdateFineTuningSettingsEventHandler): number;
|
|
477
|
+
removeFineTuningSettingListener(listenerIndex: number): void;
|
|
478
|
+
removeAllFineTuningSettingListeners(): void;
|
|
479
|
+
fireFineTuningCloseEvent(): void;
|
|
480
|
+
addFineTuningCloseListener(listenerFunction: TryOnTaskCloseFineTuningEventHandler): void;
|
|
481
|
+
clearListeners(): void;
|
|
482
|
+
protected onPointerDown(evt: PointerEvent, pickInfo: BABYLON.PickingInfo): void;
|
|
483
|
+
protected onPointerMove(evt: BABYLON.IPointerEvent, pickInfo: BABYLON.PickingInfo): void;
|
|
484
|
+
getSubMesh(mesh: BABYLON.AbstractMesh, submeshIdx: number): Nullable<BABYLON.SubMesh>;
|
|
485
|
+
getLightByID(id: string): Nullable<BABYLON.Light>;
|
|
486
|
+
applyMaterialByName(name: string, mesh: BABYLON.AbstractMesh): void;
|
|
487
|
+
applyMaterial(material: BABYLON.Material, mesh: BABYLON.AbstractMesh): void;
|
|
488
|
+
applyMaterialToSubMeshByName(name: string, mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh): void;
|
|
489
|
+
applyMaterialToSubMesh(material: BABYLON.Material, mesh: Nullable<BABYLON.AbstractMesh>, subMesh: BABYLON.SubMesh): void;
|
|
490
|
+
resetMeshMaterial(mesh: BABYLON.AbstractMesh, initial: boolean): void;
|
|
491
|
+
resetSubMeshMaterial(mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh, initial: boolean): void;
|
|
492
|
+
getExtension(name: string): string | undefined;
|
|
493
|
+
loadMobileTextureFilesAsync(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean): Promise<void>;
|
|
494
|
+
getDAMMainMesh(): BABYLON.Mesh | undefined;
|
|
495
|
+
loadMobileTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
496
|
+
loadTextureFilesAsync(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean): Promise<void>;
|
|
497
|
+
loadTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, noMipMap: boolean, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
498
|
+
getRecursiveBoundingBox(mesh: BABYLON.AbstractMesh): BABYLON.BoundingBox;
|
|
499
|
+
calculateRecursiveBoundingBox(mesh: BABYLON.AbstractMesh): void;
|
|
500
|
+
calculateBoundingBox(meshes: BABYLON.AbstractMesh[]): number;
|
|
501
|
+
checkMeshHiddenByMeshes(meshes: BABYLON.AbstractMesh[], referenceMesh: BABYLON.AbstractMesh[], maxThreshold: number, minThreshold: number): number;
|
|
502
|
+
uploadTextureFileAsync(fileToLoad: File, material: Nullable<BABYLON.Material>): Promise<Nullable<Zakeke.SceneTexture>>;
|
|
503
|
+
uploadTextureFiles(filesToLoad: File[], material: Nullable<BABYLON.Material>, type: string, onSuccess?: (zkSceneTextures: Zakeke.SceneTexture[]) => void, onError?: (reason: any) => void, resize?: boolean): void;
|
|
504
|
+
protected getTexturesUploadUrl(materialID: string): string;
|
|
505
|
+
removeAllMaterialPhotos(material: BABYLON.Material): void;
|
|
506
|
+
removeMaterialPhotoAtIndex(material: BABYLON.Material, index: number): void;
|
|
507
|
+
loadMaterialPhotoFiles(filesToLoad: File[], material: BABYLON.Material, onSuccess?: () => void, onError?: (reason: any) => void): void;
|
|
508
|
+
uploadMaterialPhotoFiles(filesToLoad: File[], material: BABYLON.Material, onSuccess?: (zkSceneMaterialPhotos: Zakeke.SceneMaterialPhoto[]) => void, onError?: (reason: any) => void): void;
|
|
509
|
+
protected getMaterialPhotosUploadUrl(materialID: string): string;
|
|
510
|
+
protected canLoadCubemap(material: Nullable<BABYLON.Material>, type: string): boolean;
|
|
511
|
+
setEnvironmentTexture(url: string, type: string, extensions?: string[], files?: string[], onLoad?: () => void): void;
|
|
512
|
+
removeSceneEnvironmentTexture(): void;
|
|
513
|
+
setSceneEnvironmentTextureRotationY(rotationY: number): void;
|
|
514
|
+
private setTextureImage;
|
|
515
|
+
private setCubeTextureImages;
|
|
516
|
+
private setMobileTextureImage;
|
|
517
|
+
private setMobileCubeTextureImages;
|
|
518
|
+
private getCubeTextureInfo;
|
|
519
|
+
isTextureUsed(texture: BABYLON.BaseTexture): boolean;
|
|
520
|
+
changeTextureInvertYAsync(material: BABYLON.Material, type: string, invertY: boolean): Promise<void>;
|
|
521
|
+
applyTextureByName(name: string, material: BABYLON.Material, type: string): void;
|
|
522
|
+
applyTexture(texture: Nullable<BABYLON.BaseTexture>, material: BABYLON.Material, type: string): void;
|
|
523
|
+
getMaterialTexture(material: BABYLON.Material, type: string): Nullable<BABYLON.BaseTexture>;
|
|
524
|
+
removeMaterialTexture(material: BABYLON.Material, type: string): void;
|
|
525
|
+
removeMaterialMobileTexture(material: BABYLON.Material, type: string): void;
|
|
526
|
+
/**
|
|
527
|
+
* Create a group of meshes
|
|
528
|
+
* @param parentId Id of the parent node of the group
|
|
529
|
+
* @param name Name of the group
|
|
530
|
+
* @param children Array of meshes to be included in the group
|
|
531
|
+
*/
|
|
532
|
+
createGroup(parentId: Nullable<string>, name: string, children?: BABYLON.AbstractMesh[]): Nullable<BABYLON.Mesh>;
|
|
533
|
+
deleteMesh(meshID: string, removeMaterials: boolean): {
|
|
534
|
+
meshIDs: string[];
|
|
535
|
+
materialIDs: string[];
|
|
536
|
+
};
|
|
537
|
+
deleteAllMeshes(): void;
|
|
538
|
+
deleteDuplicatedMeshesWithDifferentParent(parentID: string, removeMaterials: boolean): {
|
|
539
|
+
meshIDs: string[];
|
|
540
|
+
materialIDs: string[];
|
|
541
|
+
};
|
|
542
|
+
deleteDuplicatedChildMeshes(parentID: string, removeMaterials: boolean): {
|
|
543
|
+
meshIDs: string[];
|
|
544
|
+
materialIDs: string[];
|
|
545
|
+
};
|
|
546
|
+
deleteMaterial(materialID: string): void;
|
|
547
|
+
private deleteMaterialInternal;
|
|
548
|
+
deleteAllMaterials(): void;
|
|
549
|
+
renameMaterial(id: string, name: string): void;
|
|
550
|
+
cloneMesh(id: string): Nullable<BABYLON.AbstractMesh>;
|
|
551
|
+
duplicateMesh(id: string, updatable?: boolean): Nullable<BABYLON.AbstractMesh>;
|
|
552
|
+
cloneMaterial(id: string, newId?: string, newName?: string): Nullable<BABYLON.Material>;
|
|
553
|
+
createMaterial(name?: string, type?: MaterialType, group?: string): Nullable<BABYLON.Material>;
|
|
554
|
+
changeMeshParent(meshID: string, newParentID: string): void;
|
|
555
|
+
removeMeshParent(meshID: any): void;
|
|
556
|
+
protected setManipulatedNode(node: Nullable<BABYLON.AbstractMesh>): void;
|
|
557
|
+
importLibraryMaterial(zkMaterial: Zakeke.Material): void;
|
|
558
|
+
getTexturesForMaterial(material: BABYLON.Material): BABYLON.BaseTexture[];
|
|
559
|
+
getStandardMaterialTextures(material: BABYLON.StandardMaterial): BABYLON.BaseTexture[];
|
|
560
|
+
getPBRBaseSimpleMaterialTextures(material: BABYLON.PBRBaseSimpleMaterial): BABYLON.BaseTexture[];
|
|
561
|
+
getPBRMaterialTextures(material: BABYLON.PBRMaterial): BABYLON.BaseTexture[];
|
|
562
|
+
getNewPBRMaterialTextures(material: Zakeke.PBRMaterial): BABYLON.BaseTexture[];
|
|
563
|
+
getPBRMetallicRoughnessMaterialTextures(material: BABYLON.PBRMetallicRoughnessMaterial): BABYLON.BaseTexture[];
|
|
564
|
+
getPBRSpecularGlossinessMaterialTextures(material: BABYLON.PBRSpecularGlossinessMaterial): BABYLON.BaseTexture[];
|
|
565
|
+
removeCameraLocation(cameraLocation: Zakeke.SceneCameraLocation): void;
|
|
566
|
+
saveCameraLocation(name: string): void;
|
|
567
|
+
clearCameraLocations(): void;
|
|
568
|
+
getAllCameraLocations(): Zakeke.SceneCameraLocation[];
|
|
569
|
+
saveMeshLocation(name: string): void;
|
|
570
|
+
saveExplodedMeshLocation(): void;
|
|
571
|
+
saveCollapsedMeshLocation(): void;
|
|
572
|
+
protected onBeforeSaveMeshLocation(): void;
|
|
573
|
+
protected onAfterSaveMeshLocation(): void;
|
|
574
|
+
clearMeshLocations(): void;
|
|
575
|
+
getAllMeshLocations(): Zakeke.SceneMeshLocation[];
|
|
576
|
+
makeLibraryMaterial(id: string, name: string): Promise<void>;
|
|
577
|
+
private getMaterialScreenShotForLibrary;
|
|
578
|
+
private createLibraryMaterial;
|
|
579
|
+
lightsLayer_onLightSelected(event: LightSelectedEventArgs): void;
|
|
580
|
+
isDefaultLight(light: BABYLON.Light): boolean;
|
|
581
|
+
createLight(name?: string, type?: LightType): Nullable<BABYLON.Light>;
|
|
582
|
+
cloneLight(id: string, newId?: string, newName?: string): Nullable<BABYLON.Light>;
|
|
583
|
+
renameLight(id: string, name: string): void;
|
|
584
|
+
deleteLight(id: string): void;
|
|
585
|
+
getAllLights(): BABYLON.Light[];
|
|
586
|
+
canShowLights(): boolean;
|
|
587
|
+
showHideLights(show: boolean): void;
|
|
588
|
+
canShowGround(): boolean;
|
|
589
|
+
removeGround(): void;
|
|
590
|
+
refreshGround(): void;
|
|
591
|
+
showHideGround(show: boolean): void;
|
|
592
|
+
canShowAxes(): boolean;
|
|
593
|
+
showHideAxes(show: boolean): void;
|
|
594
|
+
showHideHighlight(show: boolean): void;
|
|
595
|
+
setHighlightOver(highlight: boolean): void;
|
|
596
|
+
highlightMesh(mesh: Nullable<BABYLON.AbstractMesh>, highlight: boolean): void;
|
|
597
|
+
highlightMeshOver(highlight: boolean): void;
|
|
598
|
+
showHideEditControl(show: boolean): void;
|
|
599
|
+
setEditingMode(mode: EditingMode): void;
|
|
600
|
+
undoEditing(): void;
|
|
601
|
+
redoEditing(): void;
|
|
602
|
+
setEnvironmentMode(newMode: EnvironmentMode): void;
|
|
603
|
+
refreshEnvironment(): void;
|
|
604
|
+
zoomOnMesh(mesh: BABYLON.AbstractMesh): void;
|
|
605
|
+
moveCameraToMeshPosition(mesh: BABYLON.AbstractMesh): void;
|
|
606
|
+
exportMeshToOBJ(meshID: string): void;
|
|
607
|
+
exportMeshGeometryToJson(meshID: string): void;
|
|
608
|
+
enableDisableARForMesh(meshID: string, value: boolean): void;
|
|
609
|
+
isAREnabledForMesh(meshID: string): any;
|
|
610
|
+
enableDisableTryOnForMesh(meshID: string, value: boolean): void;
|
|
611
|
+
isTryOnEnabledForMesh(meshID: string): any;
|
|
612
|
+
splitSubMeshes(meshID: string): void;
|
|
613
|
+
flipMeshFaces(meshID: string): void;
|
|
614
|
+
convertSceneToScreenPoint(sceneX: number, sceneY: number): Nullable<{
|
|
615
|
+
X: number;
|
|
616
|
+
Y: number;
|
|
617
|
+
}>;
|
|
618
|
+
saveTextAsFile(text: string, filename: string): void;
|
|
619
|
+
saveBytesAsFile(data: ArrayBuffer, filename: string): void;
|
|
620
|
+
saveBlobAsFile(blob: Blob, filename: string, mimetype: string): void;
|
|
621
|
+
private downloadFile;
|
|
622
|
+
exportDracoEncodedToFile(meshID: string): void;
|
|
623
|
+
getDracoEncodedGeometry(originalMesh: BABYLON.AbstractMesh): Nullable<ArrayBuffer>;
|
|
624
|
+
createCustomMesh(): Nullable<BABYLON.Mesh>;
|
|
625
|
+
createBox(parentID: Nullable<string>, name: string): Nullable<BABYLON.AbstractMesh>;
|
|
626
|
+
getSceneBoundingBox(): Nullable<BABYLON.AbstractMesh>;
|
|
627
|
+
getOrCreateSceneBoundingBox(visible?: boolean): Nullable<BABYLON.AbstractMesh>;
|
|
628
|
+
createSceneBoundingBox(visible?: boolean): Nullable<BABYLON.AbstractMesh>;
|
|
629
|
+
createBoundingBox(meshID: Nullable<string>, name?: string, visible?: boolean): BABYLON.Mesh | null;
|
|
630
|
+
createSphere(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
631
|
+
createPlane(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
632
|
+
createDisc(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
633
|
+
createCylinder(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
634
|
+
createTorus(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
635
|
+
createKnot(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
636
|
+
createRibbon(parentID: Nullable<string>, name?: string): Nullable<BABYLON.AbstractMesh>;
|
|
637
|
+
createRoundedCubeAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
638
|
+
createRoundedCylinderAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
639
|
+
createMatBallAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
640
|
+
createMaleHeadAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
641
|
+
createFemaleHeadAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
642
|
+
createPokemonBallAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
643
|
+
createShaderBallAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
644
|
+
createBootsAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
645
|
+
createSuzanneAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
646
|
+
createStepPyramidAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
647
|
+
createTeapotAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
648
|
+
createAlloyWheelAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
649
|
+
createTryonReferenceGlassesFrameAsync(parentID: Nullable<string>, name: string): Promise<BABYLON.AbstractMesh[]>;
|
|
650
|
+
createTryOnReferenceModelsAsync(parentID: Nullable<string>, name: string, filename: string): Promise<BABYLON.AbstractMesh[]>;
|
|
651
|
+
importMeshesFromUrlAsync(parentID: Nullable<string>, url: string): Promise<BABYLON.AbstractMesh[]>;
|
|
652
|
+
connectMeshToModelSideAsync(meshID: string, submeshID: number, sideID: number): Promise<void>;
|
|
653
|
+
clearMeshDesignManagers(): void;
|
|
654
|
+
getMeshDesignMananger(mesh: BABYLON.Mesh, subMesh: Nullable<BABYLON.SubMesh>): Nullable<import("..").MeshDesignManager>;
|
|
655
|
+
translateDesignView(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, dx: number, dy: number): void;
|
|
656
|
+
rotateDesignView(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, angle: number, centerX: number, centerY: number): void;
|
|
657
|
+
scaleDesignView(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, hor: number, ver: number, centerX: number, centerY: number): void;
|
|
658
|
+
setDesignViewTextureUVChannelAsync(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, uvChannel: number): Promise<void>;
|
|
659
|
+
setDesignViewFormFactorAsync(mesh: BABYLON.AbstractMesh, submesh: Nullable<BABYLON.SubMesh>, percWidth: number, percHeight: number): Promise<void>;
|
|
660
|
+
setSceneSizeCm(size: number | null, sizeType: ObjectSizeType): void;
|
|
661
|
+
getSceneWidthCm(): Nullable<number>;
|
|
662
|
+
getSceneHeightCm(): Nullable<number>;
|
|
663
|
+
getSceneDepthCm(): Nullable<number>;
|
|
664
|
+
setMeshSizeCm(meshId: string, size: number | null, sizeType: ObjectSizeType): void;
|
|
665
|
+
getMeshWidthCm(meshID: string): Nullable<number>;
|
|
666
|
+
getMeshHeightCm(meshID: string): Nullable<number>;
|
|
667
|
+
getMeshDepthCm(meshID: string): Nullable<number>;
|
|
668
|
+
getMaterialsPreviewsAsync(materialIDs: string[], width?: number, height?: number, crop?: boolean, createBlobs?: boolean): Promise<(Blob | string)[]>;
|
|
669
|
+
getAllMaterialsPreviewsAsync(width?: number, height?: number, crop?: boolean, createBlobs?: boolean): Promise<(Blob | string)[]>;
|
|
670
|
+
downloadMaterialsPreviewsAsync(materialIDs: string[], width?: number, height?: number, crop?: boolean): Promise<void>;
|
|
671
|
+
downloadAllMaterialsPreviewsAsync(width?: number, height?: number, crop?: boolean): Promise<void>;
|
|
672
|
+
createEnvelopeMesh(meshID: string): Nullable<BABYLON.AbstractMesh>;
|
|
673
|
+
expandMesh(meshID: string, delta: number): void;
|
|
674
|
+
enableDisableMeshFacetData(meshID: string, enable: boolean): void;
|
|
675
|
+
enableDisableDepthSortFacets(meshID: string, enable: boolean): void;
|
|
676
|
+
}
|