au-widget-design-editor/Commands/create-image-item-command
Classes
CreateImageItemCommand
A command that defines product themes.
For details, you can refer to the ICreateImageItem.
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"createImageItem": {
"url": "public:test.png",
"name": "layerName",
"position": {
"x": 0,
"y": 0
},
"size": {
"width": 100,
"height": 100
}
}
}
}
Extends
Methods
execute()
execute(params): Promise<void>;
Executes this command.
Parameters
| Parameter | Type | Description |
|---|---|---|
params | | ICreateImageItem | ICreateImageItem[] | Parameters for the command. |
Returns
Promise<void>