UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

50 lines (26 loc) 1.22 kB
# Class: CanvasWidgetCommand Represents a canvas action. ## Hierarchy * **CanvasWidgetCommand** ↳ [ChangeMockupCommand](changemockupcommand.md) ↳ [InitialCommand](initialcommand.md) ↳ [ModifyItemsCommand](modifyitemscommand.md) ↳ [SetBackgroundCommand](setbackgroundcommand.md) ↳ [SetPrintAreaCommand](setprintareacommand.md) ↳ [SetRemoteMockupCommand](setremotemockupcommand.md) ↳ [SetThemeCommand](setthemecommand.md) ↳ [SetViewerSettings](setviewersettings.md) ↳ [UpdateContainerSettingsCommand](updatecontainersettingscommand.md) ## Index ### Methods * [execute](canvaswidgetcommand.md#abstract-execute) ## Methods ### `Abstract` execute**execute**(`params`: ICanvasCommandDefinition | ICanvasCommandDefinition[], `oldParams?`: ICanvasCommandDefinition | ICanvasCommandDefinition[]): *Promise‹any›* Executes a command. **Parameters:** Name | Type | Description | ------ | ------ | ------ | `params` | ICanvasCommandDefinition | ICanvasCommandDefinition[] | Parameters for the command. | `oldParams?` | ICanvasCommandDefinition | ICanvasCommandDefinition[] | The previous parameters for the command. | **Returns:** *Promise‹any›*