Interface: Zakeke
Contains all the data and methods to control a Zakeke configuration
Properties
IS_ANDROID
• IS_ANDROID: boolean
IS_IOS
• IS_IOS: boolean
addFocusAttributesListener
• addFocusAttributesListener: (listenerFunction
: FocusAttributesEventListener
) => void
Type declaration
▸ (listenerFunction
): void
Parameters
Name | Type |
---|---|
listenerFunction | FocusAttributesEventListener |
Returns
void
addItemImage
• addItemImage: (id
: number
, areaId
: number
) => Promise
<void
>
Type declaration
▸ (id
, areaId
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | number |
areaId | number |
Returns
Promise
<void
>
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
) => Promise
<void
>
Type declaration
▸ (additionalProperties
, OnBeforeSendDataToParent?
, legacyScreenshot?
, nftForm?
): Promise
<void
>
Parameters
Name | Type |
---|---|
additionalProperties | Record <string , any > |
OnBeforeSendDataToParent? | (data : OnBeforeSendDataToParent ) => Promise <Record <string , any >> |
legacyScreenshot? | boolean |
nftForm? | NftForm |
Returns
Promise
<void
>
additionalCustomProperties
• additionalCustomProperties: null
| { formatString
: string
; label
: string
; name
: string
; value
: number
}[]
applyTemplate
• applyTemplate: (templateGroupCompositionId
: number
) => Promise
<void
>
Type declaration
▸ (templateGroupCompositionId
): Promise
<void
>
Parameters
Name | Type |
---|---|
templateGroupCompositionId | number |
Returns
Promise
<void
>
backgroundColor
• backgroundColor: string
cameras
• cameras: Camera
[]
canUsePD
• canUsePD: boolean
canUseTryOn
• canUseTryOn: 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
defaultColor
• defaultColor: string
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