zakeke-configurator-react 0.0.62 → 0.0.66
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 +7 -5
- package/dist/declarations/composer/Module/src/state/providerValue.d.ts +2 -0
- package/dist/globals0.js +7131 -7131
- package/dist/globals1.js +1459 -1459
- package/dist/globals2.js +3393 -3393
- package/dist/index.js +17748 -17489
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { FocusAttributesEventListener } from
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import { PlatformAttributeSelection } from './integrations/Integration';
|
|
3
|
+
import { Camera, FontFamily, Group, Image, ImageMacroCategory, Item, Product, Template } from './models';
|
|
4
|
+
import { FocusAttributesEventListener } from '../../../3D/src';
|
|
5
5
|
export declare class ZakekeEnvironment {
|
|
6
6
|
private token;
|
|
7
7
|
private platformAttributesSelection;
|
|
@@ -21,6 +21,7 @@ export declare class ZakekeEnvironment {
|
|
|
21
21
|
private internalIsFullscreen;
|
|
22
22
|
private highlightSettings;
|
|
23
23
|
private previousMeshesVisibleStates;
|
|
24
|
+
private lastCameraLocation;
|
|
24
25
|
get internalProduct(): MPlaza.Model | null;
|
|
25
26
|
get internalScene(): Zakeke.Scene | null;
|
|
26
27
|
get internalCurrentTemplate(): MPlaza.Design | null | undefined;
|
|
@@ -56,6 +57,7 @@ export declare class ZakekeEnvironment {
|
|
|
56
57
|
size: number;
|
|
57
58
|
}) => void;
|
|
58
59
|
renderDesign: _.DebouncedFunc<() => Promise<void>>;
|
|
60
|
+
resize: () => void;
|
|
59
61
|
private handleSceneLoaded;
|
|
60
62
|
private getComposition;
|
|
61
63
|
private getDesign;
|
|
@@ -111,7 +113,7 @@ export declare class ZakekeEnvironment {
|
|
|
111
113
|
exportSceneToUsdz: (hash: string) => Promise<string | null | undefined>;
|
|
112
114
|
setExplodedMode: (explodedMode: boolean) => Promise<void>;
|
|
113
115
|
hasExplodedMode: () => boolean;
|
|
114
|
-
setBackgroundColor: (color: string) => void;
|
|
116
|
+
setBackgroundColor: (color: string, alpha: number) => void;
|
|
115
117
|
getCurrentSelection: () => PlatformAttributeSelection[];
|
|
116
118
|
getScreenshot: (width?: number, height?: number, backgroundColor?: string | null) => Promise<string>;
|
|
117
119
|
private fireItemsChange;
|
|
@@ -71,11 +71,13 @@ export interface ProviderValue {
|
|
|
71
71
|
setMeshDesignVisibility: (meshId: string, visible: boolean) => void;
|
|
72
72
|
clearListeners: () => void;
|
|
73
73
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
74
|
+
focusAttribute: (attributeId: number) => void;
|
|
74
75
|
getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;
|
|
75
76
|
getMobileArUrl: (useCacheWithDesign?: boolean) => Promise<string | null>;
|
|
76
77
|
openArMobile: (url: string) => void;
|
|
77
78
|
isSceneArEnabled: () => boolean;
|
|
78
79
|
IS_ANDROID: boolean;
|
|
79
80
|
IS_IOS: boolean;
|
|
81
|
+
setBackgroundColor: (color: string, alpha: number) => void;
|
|
80
82
|
}
|
|
81
83
|
export declare const createProviderValue: (state: AppState, dispatch: React.Dispatch<any>) => ProviderValue;
|