Back to Website
Show / Hide Table of Contents

Class AuWidgetDesignAtoms

Package: ui-framework

Properties

currentSurface

Declaration
Surface currentSurface
Property Value
Type Description
Surface

hiResUrls

Declaration
string[] hiResUrls
Property Value
Type Description
string[]

params

Declaration
params: IDesignAtomsWidgetConfig
Property Value
Type Description
IDesignAtomsWidgetConfig

productModel

Declaration
Product productModel
Property Value
Type Description
Product

proofImageUrls

Declaration
string[] proofImageUrls
Property Value
Type Description
string[]

selectedItems

Declaration
Item[] selectedItems
Property Value
Type Description
Item[]

viewer

Declaration
Viewer viewer
Property Value
Type Description
Viewer

Methods

checkInitDependenciesWidgets()

Returns an array of widget names, due to which the current widget cannot receive parameters.

Declaration
function checkInitDependenciesWidgets()
Returns
Type Description
string[]

getHiResImages()

Declaration
function getHiResImages()
Returns
Type Description
Promise<string[]>

getProofImages()

Declaration
function getProofImages()
Returns
Type Description
Promise<string[]>

getSerializedProduct()

Declaration
function getSerializedProduct()
Returns
Type Description
any

resetPreloaderState()

Declaration
function resetPreloaderState()

resizeSelectedImages(ResizeMode, SizeF)

Declaration
function resizeSelectedImages(resizeMode: ResizeMode, targetSize?: SizeF)
Parameters
Type Name Description
ResizeMode resizeMode
SizeF targetSize

rotateSelectedItems(number)

Declaration
function rotateSelectedItems(angle: number)
Parameters
Type Name Description
number angle

showPreloader(boolean, string | string[], number)

Shows a preloader.

"onClick": [
  "{{#function main.showPreloader(true, 'Creating print files...')}}",
  "{{#function $['editor'].getHiResImages(800,800)}}",
  "{{#function main.showPreloader(false)}}"
]
Declaration
function showPreloader(isPreload: boolean, message: string | string[], timeout: number)
Parameters
Type Name Description
boolean isPreload

If true, enables the preloader.

string | string[] message

A text message that appears next to the preloader.

number timeout

showToast(string, number)

Shows a toast.

return editor.loadUserInfo(data)
    .catch(err => {
        this.widget.showToast("Error: Invalid data");
        console.log(err);
    });
Declaration
function showToast(data?: string, duration?: number)
Parameters
Type Name Description
string data

A string message to display in the toast.

number duration

Defines how long to show the toast for.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback