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, saveDesignFromTemplateEditor?: boolean) => Promise<void>
Type declaration
▸ (additionalProperties, OnBeforeSendDataToParent?, legacyScreenshot?, saveDesignFromTemplateEditor?): Promise<void>
Parameters
| Name | Type |
|---|---|
additionalProperties | Record<string, any> |
OnBeforeSendDataToParent? | (data: OnBeforeSendDataToParent) => Promise<Record<string, any>> |
legacyScreenshot? | boolean |
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[]
forceViewerResize
• forceViewerResize: () => void
Forces a resize of the 3D viewer canvas to match its container. Call this after all UI components have finished rendering to fix canvas buffer/display size mismatches caused by layout reflows.
Type declaration
▸ (): void
Forces a resize of the 3D viewer canvas to match its container. Call this after all UI components have finished rendering to fix canvas buffer/display size mismatches caused by layout reflows.
Returns
void
fullyLoadFont
• fullyLoadFont: (fontFamily: string | FontFamily) => Promise<FontFamily>
Type declaration
▸ (fontFamily): Promise<FontFamily>
Parameters
| Name | Type |
|---|---|
fontFamily | string | FontFamily |
Returns
Promise<FontFamily>
generateAIProductStaging
• generateAIProductStaging: (options: AIProductStagingOptions) => Promise<AIProductStagingResult>
Type declaration
▸ (options): Promise<AIProductStagingResult>
Parameters
| Name | Type |
|---|---|
options | AIProductStagingOptions |
Returns
Promise<AIProductStagingResult>
generateAIVirtualTryon
• generateAIVirtualTryon: (options: AIVirtualTryOnOptions) => Promise<AIVirtualTryOnResult>
Type declaration
▸ (options): Promise<AIVirtualTryOnResult>
Parameters
| Name | Type |
|---|---|
options | AIVirtualTryOnOptions |
Returns
Promise<AIVirtualTryOnResult>
getAIPresetCategories
• getAIPresetCategories: (presetType: string) => Promise<AIPresetCategory[]>
Type declaration
▸ (presetType): Promise<AIPresetCategory[]>
Parameters
| Name | Type |
|---|---|
presetType | string |
Returns
Promise<AIPresetCategory[]>
getAIPresetPresets
• getAIPresetPresets: (presetType: string) => Promise<AIPreset[]>
Type declaration
▸ (presetType): Promise<AIPreset[]>
Parameters
| Name | Type |
|---|---|
presetType | string |
Returns
Promise<AIPreset[]>
getApplicableAIStagingRules
• getApplicableAIStagingRules: (options: { printTypeID?: number ; productID?: number }) => Promise<null | AIProductStagingRule>
Type declaration
▸ (options): Promise<null | AIProductStagingRule>
Parameters
| Name | Type |
|---|---|
options | Object |
options.printTypeID? | number |
options.productID? | number |
Returns
Promise<null | AIProductStagingRule>
getApplicableAIVirtualModelRules
• getApplicableAIVirtualModelRules: (options: { printTypeID?: number ; productID?: number }) => Promise<null | AIVirtualModelRule>
Type declaration
▸ (options): Promise<null | AIVirtualModelRule>
Parameters
| Name | Type |
|---|---|
options | Object |
options.printTypeID? | number |
options.productID? | number |
Returns
Promise<null | AIVirtualModelRule>
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
Parameters
| Name | Type |
|---|---|
font | FontFamily |
Returns
Object
| Name | Type |
|---|---|
bold | boolean |
boldWeight | number |
italic | boolean |
italicBold | boolean |
italicBoldWeight | number |
italicWeight | number |
normal | boolean |
normalWeight | number |
getImages
• getImages: (categoryId: number) => Promise<ZakekeImage[]>
Type declaration
▸ (categoryId): Promise<ZakekeImage[]>
Parameters
| Name | Type |
|---|---|
categoryId | number |
Returns
Promise<ZakekeImage[]>
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: () => Promise<null | string | Blob>
Type declaration
▸ (): Promise<null | string | Blob>
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>
Create a PDF of the current configuration
Type declaration
▸ (): Promise<string>
Create a PDF of the current configuration
Returns
Promise<string>
The URL of the PDF
getPrintingMethods
• getPrintingMethods: () => { name: string ; printMethodId: number }[]
Type declaration
▸ (): { name: string ; printMethodId: number }[]
Returns
{ name: string ; printMethodId: number }[]
getPrintingMethodsRestrictions
• getPrintingMethodsRestrictions: () => PrintingMethodsRestrictions
Type declaration
▸ (): PrintingMethodsRestrictions
Returns
getQrCodeArUrl
• getQrCodeArUrl: (device: "iOS" | "Android") => Promise<string>
Type declaration
▸ (device): Promise<string>
Parameters
| Name | Type |
|---|---|
device | "iOS" | "Android" |
Returns
Promise<string>
getSanitationText
• getSanitationText: (family: FontFamily, text: string) => TextSanitationResult
Type declaration
▸ (family, text): TextSanitationResult
Parameters
| Name | Type |
|---|---|
family | FontFamily |
text | string |
Returns
getShareCompositionUrl
• getShareCompositionUrl: () => Promise<string>
Type declaration
▸ (): Promise<string>
Returns
Promise<string>
getTemplateUploadRestrictions
• getTemplateUploadRestrictions: (areaId: number) => TemplateUploadRestrictions
Type declaration
▸ (areaId): TemplateUploadRestrictions
Parameters
| Name | Type |
|---|---|
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[]
hasAnimations
• hasAnimations: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
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
imagesMacroCategories
• imagesMacroCategories: ImageMacroCategory[]
isAIEnabled
• isAIEnabled: boolean
isAIStudioEnabled
• isAIStudioEnabled: boolean
isAIStudioShoppingPreviewEnabled
• isAIStudioShoppingPreviewEnabled: boolean
isAddToCartLoading
• isAddToCartLoading: boolean
isAiEditorEnabled
• isAiEditorEnabled: boolean
isAiProductStagingEnabled
• isAiProductStagingEnabled: boolean
isAiVtoEnabled
• isAiVtoEnabled: 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
isCompositionSaving
• isCompositionSaving: 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[]