Interface: Zakeke
Contains all the data and methods to control a Zakeke configuration
Properties
IS_ANDROID
• IS_ANDROID: boolean
IS_IOS
• IS_IOS: boolean
T_dynamic
• T_dynamic: (str: string) => string
Type declaration
▸ (str): string
Parameters
| Name | Type |
|---|---|
str | string |
Returns
string
T_static
• T_static: (str: string) => string
Type declaration
▸ (str): string
Parameters
| Name | Type |
|---|---|
str | string |
Returns
string
addFocusAttributesListener
• addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void
Type declaration
▸ (listenerFunction): void
Parameters
| Name | Type |
|---|---|
listenerFunction | FocusAttributesEventListener |
Returns
void
addItemImage
• addItemImage: (id: number, areaId: number) => Promise<undefined | null | string>
Type declaration
▸ (id, areaId): Promise<undefined | null | string>
Parameters
| Name | Type |
|---|---|
id | number |
areaId | number |
Returns
Promise<undefined | null | string>
addItemText
• addItemText: (settings: { fontFamily: string ; text: string }, areaId: number) => Promise<void>
Type declaration
▸ (settings, areaId): Promise<void>
Parameters
| Name | Type |
|---|---|
settings | Object |
settings.fontFamily | string |
settings.text | string |
areaId | number |
Returns
Promise<void>
addToCart
• addToCart: (additionalProperties: Record<string, any>, OnBeforeSendDataToParent?: (data: OnBeforeSendDataToParent) => Promise<Record<string, any>>, legacyScreenshot?: boolean, nftForm?: NftForm, saveDesignFromTemplateEditor?: boolean) => Promise<void>
Type declaration
▸ (additionalProperties, OnBeforeSendDataToParent?, legacyScreenshot?, nftForm?, saveDesignFromTemplateEditor?): Promise<void>
Parameters
| Name | Type |
|---|---|
additionalProperties | Record<string, any> |
OnBeforeSendDataToParent? | (data: OnBeforeSendDataToParent) => Promise<Record<string, any>> |
legacyScreenshot? | boolean |
nftForm? | NftForm |
saveDesignFromTemplateEditor? | boolean |
Returns
Promise<void>
additionalCustomProperties
• additionalCustomProperties: null | { formatString: string ; label: string ; name: string ; value: number }[]
animationsConfig
• animationsConfig: null | SceneAnimationsConfig
applyTemplate
• applyTemplate: (templateGroupCompositionId: number) => Promise<void>
Type declaration
▸ (templateGroupCompositionId): Promise<void>
Parameters
| Name | Type |
|---|---|
templateGroupCompositionId | number |
Returns
Promise<void>
areTranslationsLoaded
• areTranslationsLoaded: boolean
backgroundColor
• backgroundColor: string
cameras
• cameras: Camera[]
canUsePD
• canUsePD: boolean
canUseTryOn
• canUseTryOn: boolean
checkFontSupports
• checkFontSupports: (fontName: string, needsBold: boolean, needsItalic: boolean) => { canKeepStyles: boolean ; supportsBold: boolean ; supportsItalic: boolean }
Type declaration
▸ (fontName, needsBold, needsItalic): Object
Parameters
| Name | Type |
|---|---|
fontName | string |
needsBold | boolean |
needsItalic | boolean |
Returns
Object
| Name | Type |
|---|---|
canKeepStyles | boolean |
supportsBold | boolean |
supportsItalic | boolean |
clearListeners
• clearListeners: () => void
Type declaration
▸ (): void
Returns
void
configureByAI
• configureByAI: (text: string) => Promise<void>
Type declaration
▸ (text): Promise<void>
Parameters
| Name | Type |
|---|---|
text | string |
Returns
Promise<void>
createImage
• createImage: (file: File, progress?: (percentage: number) => void) => Promise<ZakekeImage>
Upload an image and get the uploaded image
Param
The file to upload
Param
A callback to get the upload progress
Type declaration
▸ (file, progress?): Promise<ZakekeImage>
Upload an image and get the uploaded image
Parameters
| Name | Type | Description |
|---|---|---|
file | File | The file to upload |
progress? | (percentage: number) => void | A callback to get the upload progress |
Returns
Promise<ZakekeImage>
The uploaded image
createImageFromUrl
• createImageFromUrl: (url: string) => Promise<ZakekeImage>
Type declaration
▸ (url): Promise<ZakekeImage>
Parameters
| Name | Type |
|---|---|
url | string |
Returns
Promise<ZakekeImage>
createQuote
• createQuote: (formData: any) => Promise<any>
Type declaration
▸ (formData): Promise<any>
Parameters
| Name | Type |
|---|---|
formData | any |
Returns
Promise<any>
culture
• culture: string
currency
• currency: string
currentAttributesSelection
• currentAttributesSelection: null | object
currentCompositionInfo
• currentCompositionInfo: null | { compositionId: null | string ; compositionName: null | string ; compositionTags: null | string[] }
currentTemplate
• currentTemplate: null | Template
deepARsceneGLBUrl
• deepARsceneGLBUrl: null | string
defaultColor
• defaultColor: string
defaultFontID
• defaultFontID: null | number
deleteSavedComposition
• deleteSavedComposition: (docId: string) => Promise<void>
Type declaration
▸ (docId): Promise<void>
Parameters
| Name | Type |
|---|---|
docId | string |
Returns
Promise<void>
designUpdate
• designUpdate: () => void
Type declaration
▸ (): void
Returns
void
disableTextColors
• disableTextColors: boolean
draftCompositions
• draftCompositions: null | ThemeCompositions[]
eventMessages
• eventMessages: null | EventMessage[]
exportSceneToGlb
• exportSceneToGlb: () => Promise<null | string | Blob>
Type declaration
▸ (): Promise<null | string | Blob>
Returns
Promise<null | string | Blob>
exportTryOnMeshToGlb
• exportTryOnMeshToGlb: () => Promise<null | string | Blob>
Type declaration
▸ (): Promise<null | string | Blob>
Returns
Promise<null | string | Blob>
focusAttribute
• focusAttribute: (attributeId: number) => void
Type declaration
▸ (attributeId): void
Parameters
| Name | Type |
|---|---|
attributeId | number |
Returns
void
fonts
• fonts: FontFamily[]
fullyLoadFont
• fullyLoadFont: (fontFamily: string | FontFamily) => Promise<FontFamily>
Type declaration
▸ (fontFamily): Promise<FontFamily>
Parameters
| Name | Type |
|---|---|
fontFamily | string | FontFamily |
Returns
Promise<FontFamily>
getCopyrightMessageAccepted
• getCopyrightMessageAccepted: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
getDeepARDesktopIframeUrl
• getDeepARDesktopIframeUrl: () => Promise<string>
Type declaration
▸ (): Promise<string>
Returns
Promise<string>
getFontWeights
• getFontWeights: (font: FontFamily) => { bold: boolean ; boldWeight: number ; italic: boolean ; italicBold: boolean ; italicBoldWeight: number ; italicWeight: number ; normal: boolean ; normalWeight: number }
Type declaration
▸ (font): Object