Class 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
}
}
}
}
Package: ui-framework
Methods
execute(ICreateImageItem | ICreateImageItem[])
Executes this command.
Declaration
function execute(params: ICreateImageItem | ICreateImageItem[])
Parameters
Type | Name | Description |
---|---|---|
ICreateImageItem | ICreateImageItem[] | params |
Parameters for the command. |
Returns
Type | Description |
---|---|
Promise<void> |