Back to Website
Show / Hide Table of Contents

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>
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