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
<void
>, 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 <void > |
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
>
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
<Image
>
Type declaration
▸ (file
, progress?
): Promise
<Image
>
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
<Image
>
The uploaded image
createImageFromUrl
• createImageFromUrl: (url
: string
) => Promise
<Image
>
Type declaration
▸ (url
): Promise
<Image
>
Parameters
Name | Type |
---|---|
url | string |
Returns
Promise
<Image
>
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
[]
getCopyrightMessageAccepted
• getCopyrightMessageAccepted: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
getImages
• getImages: (categoryId
: number
) => Promise
<Image
[]>
Type declaration
▸ (categoryId
): Promise
<Image
[]>
Parameters
Name | Type |
---|---|
categoryId | number |
Returns
Promise
<Image
[]>
getMacroCategories
• getMacroCategories: () => Promise
<ImageMacroCategory
[]>
Type declaration
▸ (): Promise
<ImageMacroCategory
[]>
Returns
Promise
<ImageMacroCategory
[]>
getMeshIDbyName
• getMeshIDbyName: (name
: string
) => undefined
| null
| string
Type declaration
▸ (name
): undefined
| null
| string
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| null
| string
getMobileArUrl
• getMobileArUrl: (onFlyArUrl?
: string
) => Promise
<null
| string
| Blob
>
Type declaration
▸ (onFlyArUrl?
): Promise
<null
| string
| Blob
>
Parameters
Name | Type |
---|---|
onFlyArUrl? | string |
Returns
Promise
<null
| string
| Blob
>
getOnlineScreenshot
• getOnlineScreenshot: (width
: number
, height
: number
, legacyScreenshot?
: boolean
, backgroundColor?
: string
, padding?
: number
) => Promise
<{ originalUrl
: string
; rewrittenUrl
: string
}>
Type declaration
▸ (width
, height
, legacyScreenshot?
, backgroundColor?
, padding?
): Promise
<{ originalUrl
: string
; rewrittenUrl
: string
}>
Parameters
Name | Type |
---|---|
width | number |
height | number |
legacyScreenshot? | boolean |
backgroundColor? | string |
padding? | number |
Returns
Promise
<{ originalUrl
: string
; rewrittenUrl
: string
}>
getPDF
• getPDF: () => Promise
<string
>
Type declaration
▸ (): Promise
<string
>
Create a PDF of the current configuration
Returns
Promise
<string
>
The URL of the PDF
getQrCodeArUrl
• getQrCodeArUrl: (device
: "iOS"
| "Android"
) => Promise
<string
>
Type declaration
▸ (device
): Promise
<string
>
Parameters
Name | Type |
---|---|
device | "iOS" | "Android" |
Returns
Promise
<string
>
getShareCompositionUrl
• getShareCompositionUrl: () => Promise
<string
>
Type declaration
▸ (): Promise
<string
>
Returns
Promise
<string
>
getTemplateUploadRestrictictions
• getTemplateUploadRestrictictions: (templateId
: number
, areaId
: number
) => TemplateUploadRestrictictions
Type declaration
▸ (templateId
, areaId
): TemplateUploadRestrictictions
Parameters
Name | Type |
---|---|
templateId | number |
areaId | number |
Returns
getTryOnSettings
• getTryOnSettings: () => undefined
| TryOnSettings
Type declaration
▸ (): undefined
| TryOnSettings
Returns
undefined
| TryOnSettings
getTryOnUrl
• getTryOnUrl: (tryOnUrl?
: string
) => Promise
<string
>
Type declaration
▸ (tryOnUrl?
): Promise
<string
>
Parameters
Name | Type |
---|---|
tryOnUrl? | string |
Returns
Promise
<string
>
groups
• groups: Group
[]
hasExplodedMode
• hasExplodedMode: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
hasVTryOnEnabled
• hasVTryOnEnabled: boolean
hideMeshAndSaveState
• hideMeshAndSaveState: (meshId
: string
) => void
Type declaration
▸ (meshId
): void
Parameters
Name | Type |
---|---|
meshId | string |
Returns
void
highlightAttribute
• highlightAttribute: (attributeId
: number
) => void
Type declaration
▸ (attributeId
): void
Parameters
Name | Type |
---|---|
attributeId | number |
Returns
void
highlightGroup
• highlightGroup: (groupId
: number
) => void
Type declaration
▸ (groupId
): void
Parameters
Name | Type |
---|---|
groupId | number |
Returns
void
isAIEnabled
• isAIEnabled: boolean
isAddToCartLoading
• isAddToCartLoading: boolean
isArDeviceCompliant
• isArDeviceCompliant: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
isAreaVisible
• isAreaVisible: (areaId
: number
) => boolean
Type declaration
▸ (areaId
): boolean
Parameters
Name | Type |
---|---|
areaId | number |
Returns
boolean
isAssetsLoading
• isAssetsLoading: boolean
isExplodedMode
• isExplodedMode: boolean
isFullscreenMode
• isFullscreenMode: boolean
isInfoPointContentVisible
• isInfoPointContentVisible: boolean
isMandatoryPD
• isMandatoryPD: boolean
isOutOfStock
• isOutOfStock: boolean
isSceneArEnabled
• isSceneArEnabled: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
isSceneLoading
• isSceneLoading: boolean
isSceneTryOnEnabled
• isSceneTryOnEnabled: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
isTryOnMeshVisible
• isTryOnMeshVisible: boolean
isViewerReady
• isViewerReady: boolean
isVisibleMeshShownForTryOn
• isVisibleMeshShownForTryOn: boolean
items
• items: Item
[]
loadComposition
• loadComposition: (id
: string
) => Promise
<void
>
Type declaration
▸ (id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
loadSavedComposition
• loadSavedComposition: (docID
: string
) => Promise
<void
>
Type declaration
▸ (docID
): Promise
<void
>
Parameters
Name | Type |
---|---|
docID | string |
Returns
Promise
<void
>
loadedComposition
• loadedComposition: null
| { attributesOptions
: Map
<number
, number
> ; selectedCategoryID
: null
| number
; templateName
: string
}
nftSettings
• nftSettings: null
| NftSettings
openArMobile
• openArMobile: (url
: string
) => void
Type declaration
▸ (url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
openSecondScreen
• openSecondScreen: () => void
Type declaration
▸ (): void
Returns
void
pdDistance
• pdDistance: () => number
Type declaration
▸ (): number
Returns
number
previewOnly__setItemImageFromBase64
• previewOnly__setItemImageFromBase64: (guid
: string
, base64
: string
) => void
Type declaration
▸ (guid
, base64
): void
Parameters
Name | Type |
---|---|
guid | string |
base64 | string |
Returns
void
price
• price: number
The current price of the configuration plus the product price
product
• product: null
| Product
productCode
• productCode: string
productName
• productName: string
quantity
• quantity: number
quantityRule
• quantityRule: null
| ProductQuantityRule
redo
• redo: () => Promise
<void
>
Type declaration
▸ (): Promise
<void
>
Returns
Promise
<void
>
removeItem
• removeItem: (guid
: string
) => Promise
<void
>
Type declaration
▸ (guid
): Promise
<void
>
Remove an item from the customization
Parameters
Name | Type | Description |
---|---|---|
guid | string | The guid of the item to remove |
Returns
Promise
<void
>
reset
• reset: () => Promise
<void
>
Type declaration
▸ (): Promise
<void
>
Returns
Promise
<void
>
resetCameraPivot
• resetCameraPivot: () => void
Type declaration
▸ (): void
Returns
void
restoreMeshVisibility
• restoreMeshVisibility: (meshId
: string
) => void
Type declaration
▸ (meshId
): void
Parameters
Name | Type |
---|---|
meshId | string |
Returns
void
saveComposition
• saveComposition: (customPreviewSize?
: CustomPreviewSize
) => Promise
<void
>
Type declaration
▸ (customPreviewSize?
): Promise
<void
>
Parameters
Name | Type |
---|---|
customPreviewSize? | CustomPreviewSize |
Returns
Promise
<void
>
saveDraftsComposition
• saveDraftsComposition: (name
: string
, tags
: string
[], isCopy?
: boolean
) => Promise
<void
>
Type declaration
▸ (name
, tags
, isCopy?
): Promise
<void
>
Parameters
Name | Type |
---|---|
name | string |
tags | string [] |
isCopy? | boolean |
Returns
Promise
<void
>
saveTemplate
• saveTemplate: (templateName
: string
, selectedCategoryID
: null
| number
, attributesOptions
: Map
<number
, number
>) => Promise
<void
>
Type declaration
▸ (templateName
, selectedCategoryID
, attributesOptions
): Promise
<void
>
Parameters
Name | Type |
---|---|
templateName | string |
selectedCategoryID | null | number |
attributesOptions | Map <number , number > |
Returns
Promise
<void
>
selectOption
• selectOption: (optionId
: number
) => void
Type declaration
▸ (optionId
): void
Parameters
Name | Type |
---|---|
optionId | number |
Returns
void
sellerSettings
• sellerSettings: null
| SellerSettings
setBackgroundColor
• setBackgroundColor: (color
: string
, alpha
: number
) => void
Type declaration
▸ (color
, alpha
): void
Parameters
Name | Type |
---|---|
color | string |
alpha | number |
Returns
void
setCamera
• setCamera: (id
: string
, onlyAngleOfView?
: boolean
, animate?
: boolean
) => void
Type declaration
▸ (id
, onlyAngleOfView?
, animate?
): void
Parameters
Name | Type |
---|---|
id | string |
onlyAngleOfView? | boolean |
animate? | boolean |
Returns
void
setCameraByName
• setCameraByName: (name
: string
, onlyAngleOfView?
: boolean
, animate?
: boolean
) => void
Type declaration
▸ (name
, onlyAngleOfView?
, animate?
): void
Parameters
Name | Type |
---|---|
name | string |
onlyAngleOfView? | boolean |
animate? | boolean |
Returns
void
setCameraLocked
• setCameraLocked: (isBlocked
: boolean
) => void
Type declaration
▸ (isBlocked
): void
Parameters
Name | Type |
---|---|
isBlocked | boolean |
Returns
void
setCameraPivot
• setCameraPivot: (meshId
: string
) => void
Type declaration
▸ (meshId
): void
Parameters
Name | Type |
---|---|
meshId | string |
Returns
void
setCameraZoomEnabled
• setCameraZoomEnabled: (enabled
: boolean
) => void
Type declaration
▸ (enabled
): void
Parameters
Name | Type |
---|---|
enabled | boolean |
Returns
void
setCopyrightMessageAccepted
• setCopyrightMessageAccepted: (copyrightMandatoryCheckbox
: boolean
) => void
Type declaration
▸ (copyrightMandatoryCheckbox
): void
Parameters
Name | Type |
---|---|
copyrightMandatoryCheckbox | boolean |
Returns
void
setExplodedMode
• setExplodedMode: (exploded
: boolean
) => void
Type declaration
▸ (exploded
): void
Parameters
Name | Type |
---|---|
exploded | boolean |
Returns
void
setHighlightSettings
• setHighlightSettings: (settings
: { color
: string
; size
: number
}) => void
Type declaration
▸ (settings
): void
Parameters
Name | Type |
---|---|
settings | Object |
settings.color | string |
settings.size | number |
Returns
void
setItemBold
• setItemBold: (guid
: string
, bold
: boolean
) => void
Type declaration
▸ (guid
, bold
): void
Parameters
Name | Type |
---|---|
guid | string |
bold | boolean |
Returns
void
setItemColor
• setItemColor: (guid
: string
, color
: string
) => void
Type declaration
▸ (guid
, color
): void
Parameters
Name | Type |
---|---|
guid | string |
color | string |
Returns
void
setItemFontFamily
• setItemFontFamily: (guid
: string
, fontFamily
: string
) => void
Type declaration
▸ (guid
, fontFamily
): void
Parameters
Name | Type |
---|---|
guid | string |
fontFamily | string |
Returns
void
setItemImage
• setItemImage: (guid
: string
, imageId
: number
) => Promise
<void
>
Type declaration
▸ (guid
, imageId
): Promise
<void
>
Parameters
Name | Type |
---|---|
guid | string |
imageId | number |
Returns
Promise
<void
>
setItemImageFromFile
• setItemImageFromFile: (guid
: string
, file
: File
) => Promise
<void
>
Type declaration
▸ (guid
, file
): Promise
<void
>
Parameters
Name | Type |
---|---|
guid | string |
file | File |
Returns
Promise
<void
>
setItemItalic
• setItemItalic: (guid
: string
, italic
: boolean
) => void
Type declaration
▸ (guid
, italic
): void
Parameters
Name | Type |
---|---|
guid | string |
italic | boolean |
Returns
void
setItemText
• setItemText: (guid
: string
, text
: string
) => void
Type declaration
▸ (guid
, text
): void
Parameters
Name | Type |
---|---|
guid | string |
text | string |
Returns
void
setItemTextOnPath
• setItemTextOnPath: (guid
: string
, areaId
: number
, value
: boolean
) => void
Type declaration
▸ (guid
, areaId
, value
): void
Parameters
Name | Type |
---|---|
guid | string |
areaId | number |
value | boolean |
Returns
void
setMeshDesignVisibility
• setMeshDesignVisibility: (meshId
: string
, visible
: boolean
) => void
Type declaration
▸ (meshId
, visible
): void
Parameters
Name | Type |
---|---|
meshId | string |
visible | boolean |
Returns
void
setPDDistance
• setPDDistance: (distance
: number
) => void
Type declaration
▸ (distance
): void
Parameters
Name | Type |
---|---|
distance | number |
Returns
void
setQuantity
• setQuantity: (quantity
: number
) => void
Type declaration
▸ (quantity
): void
Parameters
Name | Type |
---|---|
quantity | number |
Returns
void
setTemplate
• setTemplate: (templateId
: number
) => Promise
<void
>
Type declaration
▸ (templateId
): Promise
<void
>
Parameters
Name | Type |
---|---|
templateId | number |
Returns
Promise
<void
>
switchFullscreen
• switchFullscreen: () => void
Type declaration
▸ (): void
Returns
void