zakeke-configurator-react 0.0.148 → 0.0.151
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/composer/Module/src/environment.d.ts +328 -292
- package/dist/declarations/composer/Module/src/models.d.ts +464 -423
- package/dist/declarations/composer/Module/src/state/providerValue.d.ts +164 -147
- package/dist/globals0.js +1 -1
- package/dist/globals2.js +1 -1
- package/dist/index.js +106593 -45052
- package/package.json +1 -1
|
@@ -1,292 +1,328 @@
|
|
|
1
|
-
import _ from 'lodash';
|
|
2
|
-
import { EventMessage, ExtensionFields, OnBeforeSendDataToParent, VisibleEventMessage } from '.';
|
|
3
|
-
import { FocusAttributesEventListener } from '../../../3D/src';
|
|
4
|
-
import { PlatformAttributeSelection } from './integrations/Integration';
|
|
5
|
-
import { Camera, Composition, FontFamily, Group,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
private
|
|
64
|
-
private
|
|
65
|
-
private
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private
|
|
69
|
-
private
|
|
70
|
-
private
|
|
71
|
-
private
|
|
72
|
-
private
|
|
73
|
-
private
|
|
74
|
-
private
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
private
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
private
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
private
|
|
140
|
-
private
|
|
141
|
-
private
|
|
142
|
-
|
|
143
|
-
private
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
private
|
|
149
|
-
|
|
150
|
-
private
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
private
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
private
|
|
165
|
-
|
|
166
|
-
private
|
|
167
|
-
private
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
private
|
|
181
|
-
private
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
private
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
private
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import { EventMessage, ExtensionFields, NftForm, NftSettings, OnBeforeSendDataToParent, SelectedCategory, VisibleEventMessage } from '.';
|
|
3
|
+
import { FocusAttributesEventListener } from '../../../3D/src';
|
|
4
|
+
import { PlatformAttributeSelection } from './integrations/Integration';
|
|
5
|
+
import { Camera, Composition, FontFamily, Group, ImageMacroCategory, Item, Product, ProductQuantityRule, SellerSettings, Template } from './models';
|
|
6
|
+
import type { Image } from './models';
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
token: string;
|
|
10
|
+
isOwin: boolean;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface RestrictionColor {
|
|
14
|
+
colorCode: string;
|
|
15
|
+
isDefault: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface CustomPreviewSize {
|
|
18
|
+
customCartPreviewWidth: number;
|
|
19
|
+
customCartPreviewHeight: number;
|
|
20
|
+
}
|
|
21
|
+
interface ThemeCompositions {
|
|
22
|
+
name: string;
|
|
23
|
+
docID: string;
|
|
24
|
+
previewImageUrl: string;
|
|
25
|
+
tags: string[];
|
|
26
|
+
}
|
|
27
|
+
interface CurrentCompositionInfo {
|
|
28
|
+
compositionId: string | null;
|
|
29
|
+
compositionName: string | null;
|
|
30
|
+
compositionTags: string[] | null;
|
|
31
|
+
}
|
|
32
|
+
interface StaticTranslation {
|
|
33
|
+
original: string;
|
|
34
|
+
localization: string;
|
|
35
|
+
lcid: number;
|
|
36
|
+
}
|
|
37
|
+
interface DynamicTranslation {
|
|
38
|
+
original: string;
|
|
39
|
+
localization: string;
|
|
40
|
+
lcid: number;
|
|
41
|
+
}
|
|
42
|
+
interface CategoryNameAndID {
|
|
43
|
+
categoryName: string;
|
|
44
|
+
categoryID: number;
|
|
45
|
+
}
|
|
46
|
+
export interface TemplateCategory {
|
|
47
|
+
macroCategoryName: string;
|
|
48
|
+
macroCategoryID: number;
|
|
49
|
+
categories: CategoryNameAndID[];
|
|
50
|
+
}
|
|
51
|
+
export interface Translations {
|
|
52
|
+
statics: StaticTranslation[];
|
|
53
|
+
dynamics: DynamicTranslation[];
|
|
54
|
+
}
|
|
55
|
+
export interface PublicTranslations {
|
|
56
|
+
statics: Map<string, string>;
|
|
57
|
+
dynamics: Map<string, string>;
|
|
58
|
+
}
|
|
59
|
+
export declare class ZakekeEnvironment {
|
|
60
|
+
private token;
|
|
61
|
+
private platformAttributesSelection;
|
|
62
|
+
private settings;
|
|
63
|
+
private platform;
|
|
64
|
+
private viewer;
|
|
65
|
+
private selection;
|
|
66
|
+
private integration;
|
|
67
|
+
private previewWidth;
|
|
68
|
+
private previewHeight;
|
|
69
|
+
private clientPreviewWidth;
|
|
70
|
+
private clientPreviewHeight;
|
|
71
|
+
private shareUrlPrefix;
|
|
72
|
+
private events;
|
|
73
|
+
private zkProduct;
|
|
74
|
+
private zkScene;
|
|
75
|
+
private zkCurrentTemplate;
|
|
76
|
+
private zkTemplates;
|
|
77
|
+
private internalIsFullscreen;
|
|
78
|
+
private highlightSettings;
|
|
79
|
+
private previousMeshesVisibleStates;
|
|
80
|
+
private lastCameraLocation;
|
|
81
|
+
private enableShareCompositionUrl;
|
|
82
|
+
private sharedCompositionDocId;
|
|
83
|
+
private templateId;
|
|
84
|
+
loadedComposition: {
|
|
85
|
+
templateName: string;
|
|
86
|
+
attributesOptions: Map<number, number>;
|
|
87
|
+
selectedCategory: {
|
|
88
|
+
categoryID: number;
|
|
89
|
+
categoryName: string;
|
|
90
|
+
};
|
|
91
|
+
} | null;
|
|
92
|
+
private savedCompositions;
|
|
93
|
+
private isDraftEditor;
|
|
94
|
+
private isViewerMode;
|
|
95
|
+
private draftCompositionDocId;
|
|
96
|
+
private initialSelection;
|
|
97
|
+
private undoStack;
|
|
98
|
+
private redoStack;
|
|
99
|
+
private pricingCalculator;
|
|
100
|
+
currentAttributesSelection: Object | null;
|
|
101
|
+
currentCompositionInfo: CurrentCompositionInfo | null;
|
|
102
|
+
private copyrightMessageLocalStorageKey;
|
|
103
|
+
sellerSettings: SellerSettings | null;
|
|
104
|
+
get internalProduct(): MPlaza.Model | null;
|
|
105
|
+
get internalScene(): Zakeke.Scene | null;
|
|
106
|
+
get internalCurrentTemplate(): MPlaza.Design | null | undefined;
|
|
107
|
+
themeCompositions: ThemeCompositions[] | null;
|
|
108
|
+
currency: string;
|
|
109
|
+
groups: Group[];
|
|
110
|
+
fonts: FontFamily[];
|
|
111
|
+
disableTextColors: boolean;
|
|
112
|
+
textColors: RestrictionColor[];
|
|
113
|
+
defaultColor: string;
|
|
114
|
+
quantity: number;
|
|
115
|
+
quantityRule: ProductQuantityRule | null;
|
|
116
|
+
culture: string;
|
|
117
|
+
productCode: string;
|
|
118
|
+
productName: string;
|
|
119
|
+
price: number;
|
|
120
|
+
composition: any;
|
|
121
|
+
compositionId: string | null;
|
|
122
|
+
templates: Template[];
|
|
123
|
+
currentTemplate: Template | null;
|
|
124
|
+
product: Product | null;
|
|
125
|
+
templateCategories: TemplateCategory[] | null;
|
|
126
|
+
cameras: Camera[];
|
|
127
|
+
isExplodedMode: boolean;
|
|
128
|
+
isAssetsLoading: boolean;
|
|
129
|
+
extensionFields: ExtensionFields[];
|
|
130
|
+
nftSettings: NftSettings | null;
|
|
131
|
+
eventMessages: EventMessage[] | null;
|
|
132
|
+
visibleEventMessages: VisibleEventMessage[];
|
|
133
|
+
private translations;
|
|
134
|
+
publicTranslations: PublicTranslations | null;
|
|
135
|
+
useLegacyScreenshot: boolean;
|
|
136
|
+
get isFullscreenMode(): boolean;
|
|
137
|
+
get isViewerReady(): boolean;
|
|
138
|
+
constructor();
|
|
139
|
+
private parseParameters;
|
|
140
|
+
private getProduct;
|
|
141
|
+
private getScene;
|
|
142
|
+
private getComposerModels;
|
|
143
|
+
private getFonts;
|
|
144
|
+
private getSettings;
|
|
145
|
+
private getSellerSetting;
|
|
146
|
+
createQuote: (formData: any) => Promise<any>;
|
|
147
|
+
private getTranslations;
|
|
148
|
+
private loadLocalization;
|
|
149
|
+
getTemplateMacroCategories: () => Promise<TemplateCategory[]>;
|
|
150
|
+
private loadScript;
|
|
151
|
+
validationNFTEmail: (email: string) => boolean;
|
|
152
|
+
validationNFTWalletAddress: (address: string) => boolean;
|
|
153
|
+
private saveCustomerWalletInfo;
|
|
154
|
+
setCopyrightMessageAccepted: (copyrightMandatoryCheckbox: boolean) => void;
|
|
155
|
+
getCopyrightMessageAccepted: () => boolean;
|
|
156
|
+
boot: (parameters?: any) => Promise<void>;
|
|
157
|
+
appendViewer: (container: HTMLElement) => void;
|
|
158
|
+
setHighlightSettings: (settings: {
|
|
159
|
+
color: string;
|
|
160
|
+
size: number;
|
|
161
|
+
}) => void;
|
|
162
|
+
renderDesign: _.DebouncedFunc<() => Promise<void>>;
|
|
163
|
+
resize: () => void;
|
|
164
|
+
private buildRecapProps;
|
|
165
|
+
updateRecapAndExtensionField: () => void;
|
|
166
|
+
private getCurrentExtensionFields;
|
|
167
|
+
private handleSceneLoaded;
|
|
168
|
+
private getComposition;
|
|
169
|
+
private getDesign;
|
|
170
|
+
private internalLoadDesign;
|
|
171
|
+
private addHotjarScript;
|
|
172
|
+
private addGoogleTagManagerID;
|
|
173
|
+
loadComposition: (id: string | null) => Promise<void>;
|
|
174
|
+
private internalLoadComposition;
|
|
175
|
+
sync3DAndPlatformSelectionWithCurrentSelection: () => Promise<void>;
|
|
176
|
+
cloneSelection: (selection: Zakeke.ComposerSelection) => Zakeke.ComposerSelection;
|
|
177
|
+
undo: () => Promise<void>;
|
|
178
|
+
redo: () => Promise<void>;
|
|
179
|
+
reset: () => Promise<void>;
|
|
180
|
+
private handleAttributeSelectionChanged;
|
|
181
|
+
private handleAttributeEnabled;
|
|
182
|
+
private handleAttributeDisabled;
|
|
183
|
+
private handleAttributeOptionEnabled;
|
|
184
|
+
private handleAttributeOptionDisabled;
|
|
185
|
+
private setAttributeSelectionEnabled;
|
|
186
|
+
private setOptionSelectionEnabled;
|
|
187
|
+
private isOptionEnabled;
|
|
188
|
+
private updateComposition;
|
|
189
|
+
setQuantity(quantity: number): void;
|
|
190
|
+
private _updatePrice;
|
|
191
|
+
private updatePrice;
|
|
192
|
+
private buildStructure;
|
|
193
|
+
private createGroupFromSelection;
|
|
194
|
+
private createStep;
|
|
195
|
+
private createAttributeFromSelection;
|
|
196
|
+
private createOptionFromSelection;
|
|
197
|
+
private createTemplateGroupFromSelection;
|
|
198
|
+
private saveDesignBackbone;
|
|
199
|
+
private saveCompositionBackbone;
|
|
200
|
+
private trigger;
|
|
201
|
+
on: (event: string, callback: any) => void;
|
|
202
|
+
off: (event: string, callback: any) => void;
|
|
203
|
+
setTemplate: (templateId: number) => void;
|
|
204
|
+
getTemplateUploadRestrictictions: (templateId: number, areaId: number) => {
|
|
205
|
+
isUserImageAllowed: boolean;
|
|
206
|
+
isJpgAllowed: boolean;
|
|
207
|
+
isPngAllowed: boolean;
|
|
208
|
+
isSvgAllowed: boolean;
|
|
209
|
+
isPdfAllowed: boolean;
|
|
210
|
+
isEpsAllowed: boolean;
|
|
211
|
+
isPdfWithRasterAllowed: boolean;
|
|
212
|
+
};
|
|
213
|
+
private getTemplates;
|
|
214
|
+
private saveProduct;
|
|
215
|
+
private getTemplate;
|
|
216
|
+
updateView: () => void;
|
|
217
|
+
selectOption: (optionId: number) => void;
|
|
218
|
+
focusGroup: (groupId: number) => void;
|
|
219
|
+
focusAttribute: (attributeId: number) => Promise<void>;
|
|
220
|
+
setCamera(cameraLocationId: string, onlyAngleOfView?: boolean, animate?: boolean): void;
|
|
221
|
+
getCameraByName(name: string): Zakeke.SceneCameraLocation | undefined;
|
|
222
|
+
setCameraLocation(name: string, animate?: boolean): void;
|
|
223
|
+
private base64StringToFile;
|
|
224
|
+
saveTemplate: (templateName: string, selectedCategory: SelectedCategory, attributeOptions: Map<number, number>) => Promise<void>;
|
|
225
|
+
addToCart: (additionalProperties: Record<string, any>, onBeforeSendDataToParent?: ((data: OnBeforeSendDataToParent) => Promise<void>) | undefined, legacyScreenshot?: boolean, nftForm?: NftForm) => Promise<void>;
|
|
226
|
+
zoomIn: () => void;
|
|
227
|
+
zoomOut: () => void;
|
|
228
|
+
isFullscreenEnabled: () => boolean;
|
|
229
|
+
getDesignItemsInfo(): Item[];
|
|
230
|
+
switchFullscreen: () => void;
|
|
231
|
+
openSecondScreen: () => void;
|
|
232
|
+
private extendedUpdate;
|
|
233
|
+
exportSceneToUsdz: (hash: string) => Promise<import("../../../3D/src/types").Nullable<string> | undefined>;
|
|
234
|
+
exportSceneToGlb: () => Promise<string | Blob | null>;
|
|
235
|
+
setExplodedMode: (explodedMode: boolean) => Promise<void>;
|
|
236
|
+
hasExplodedMode: () => boolean;
|
|
237
|
+
setBackgroundColor: (color: string, alpha: number) => void;
|
|
238
|
+
getCurrentSelection: () => PlatformAttributeSelection[];
|
|
239
|
+
getScreenshot: (width?: number, height?: number, legacyScreenshot?: boolean, backgroundColor?: string | null, padding?: number) => Promise<string>;
|
|
240
|
+
private fireItemsChange;
|
|
241
|
+
isAreaVisible(areaId: number): boolean;
|
|
242
|
+
removeItem: (guid: string) => Promise<void>;
|
|
243
|
+
addItemText(settings: {
|
|
244
|
+
text: string;
|
|
245
|
+
fontFamily: string;
|
|
246
|
+
}, areaId: number): Promise<void>;
|
|
247
|
+
setItemText: (guid: string, text: string) => void;
|
|
248
|
+
setItemItalic: (guid: string, italic: boolean) => void;
|
|
249
|
+
setItemBold: (guid: string, bold: boolean) => void;
|
|
250
|
+
setItemColor: (guid: string, color: string) => void;
|
|
251
|
+
setItemFontFamily: (guid: string, fontFamily: string) => Promise<void>;
|
|
252
|
+
setItemTextOnPath: (guid: string, areaId: number, value: boolean) => void;
|
|
253
|
+
createImage: (file: File, progress?: ((percentage: number) => void) | undefined) => Promise<Image>;
|
|
254
|
+
createImageFromUrl: (url: string) => Promise<Image>;
|
|
255
|
+
addItemImage: (id: number, areaId: number) => Promise<void>;
|
|
256
|
+
setItemImageFromFile: (guid: string, file: File, progress?: ((percentage: number) => void) | undefined) => Promise<void>;
|
|
257
|
+
setItemImageFromBase64: (guid: string, base64: string) => Promise<void>;
|
|
258
|
+
setItemImage: (guid: string, id: number) => Promise<void>;
|
|
259
|
+
getMacroCategories: () => Promise<ImageMacroCategory[]>;
|
|
260
|
+
getImages: (categoryId: number) => Promise<Image[]>;
|
|
261
|
+
setCameraPivot(meshID: string): void;
|
|
262
|
+
resetCameraPivot(): void;
|
|
263
|
+
setCameraZoomEnabled(enabled: boolean): void;
|
|
264
|
+
setCameraByName(name: string, onlyAngleOfView?: boolean, animate?: boolean): void;
|
|
265
|
+
findObjectByName(name: string): BABYLON.AbstractMesh | null | undefined;
|
|
266
|
+
getPDF: () => Promise<string>;
|
|
267
|
+
private rewriteShareUrl;
|
|
268
|
+
getShareCompositionUrl: () => Promise<string>;
|
|
269
|
+
saveCompositionCopy: () => Promise<any>;
|
|
270
|
+
getOnlineScreenshot: (width: number, height: number, legacyScreenshot?: boolean, backgroundColor?: string, padding?: number) => Promise<{
|
|
271
|
+
originalUrl: string;
|
|
272
|
+
rewrittenUrl: string;
|
|
273
|
+
}>;
|
|
274
|
+
isSceneArOnTheFly: () => boolean | undefined;
|
|
275
|
+
isArDeviceCompliant: () => boolean;
|
|
276
|
+
isAndroidOrIOS: () => boolean;
|
|
277
|
+
isAndroid: boolean;
|
|
278
|
+
isIOS: boolean;
|
|
279
|
+
private buildModelViewerUrl;
|
|
280
|
+
isSceneArEnabled: () => boolean;
|
|
281
|
+
private getPregeneratedARUrl;
|
|
282
|
+
getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;
|
|
283
|
+
getMobileArUrl: (onFlyArUrl?: string) => Promise<Blob | string | null>;
|
|
284
|
+
getMobileLocalArUrl: (onFlyArUrl?: string) => Promise<string | Blob>;
|
|
285
|
+
openArMobile: (url: string) => void;
|
|
286
|
+
private registerView;
|
|
287
|
+
getMeshIDbyName: (name: string) => string | undefined;
|
|
288
|
+
hightlightGroup(groupId: number): void;
|
|
289
|
+
highlightAttribute(attributeId: number): void;
|
|
290
|
+
/**
|
|
291
|
+
* Hide a mesh and its children and save the state
|
|
292
|
+
* @param meshId The mesh and childs to hide
|
|
293
|
+
*/
|
|
294
|
+
hideMeshAndSaveState: (meshId: string) => void;
|
|
295
|
+
/**
|
|
296
|
+
* Restore a mesh visibility state from a previous saved one (see hideMeshAndSaveState)
|
|
297
|
+
* @param meshId The mesh and childs to show
|
|
298
|
+
*/
|
|
299
|
+
restoreMeshVisibility: (meshId: string) => void;
|
|
300
|
+
/**
|
|
301
|
+
* Change opacity for a specific mesh
|
|
302
|
+
* @param meshId The mesh to change the opacity
|
|
303
|
+
* @param opacity The opacity to set
|
|
304
|
+
*/
|
|
305
|
+
setMeshDesignVisibility: (meshId: string, visible: boolean) => void;
|
|
306
|
+
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
307
|
+
clearListeners: () => void;
|
|
308
|
+
setCameraLocked: (isBlocked?: boolean) => void;
|
|
309
|
+
isSceneTryOnEnabled: () => boolean;
|
|
310
|
+
getTryOnUrl: (tryOnUrl?: string) => Promise<string>;
|
|
311
|
+
private getDisableTextColors;
|
|
312
|
+
private getTextColors;
|
|
313
|
+
private getDefaultColor;
|
|
314
|
+
saveComposition: (customPreviewSize?: CustomPreviewSize, legacyScreenshot?: boolean) => Promise<void>;
|
|
315
|
+
private bootstrapComposition;
|
|
316
|
+
loadSavedComposition: (docID: string) => Promise<void>;
|
|
317
|
+
private updateSavedCompositions;
|
|
318
|
+
themeCompositionsFromSavedCompositions: (compositions: Composition[]) => {
|
|
319
|
+
name: string;
|
|
320
|
+
docID: string;
|
|
321
|
+
previewImageUrl: string;
|
|
322
|
+
tags: string[];
|
|
323
|
+
}[];
|
|
324
|
+
saveDraftsComposition: (name: string, tags: string[], isCopy?: boolean) => Promise<void>;
|
|
325
|
+
deleteSavedComposition: (docId: string) => Promise<void>;
|
|
326
|
+
applyTemplate: (templateGroupCompositionId: number) => Promise<void>;
|
|
327
|
+
}
|
|
328
|
+
export {};
|