Interface ICanvasDefinitionChangeLayout
Provides properties to replace design elements in the editor. For details, you can refer to the setSurfaces command.
{
  "type": "canvas",
  "name": "editor",
  "params": {
    "initial": { ... },
    "changeLayout": [{
      "discardChanges": false,
      "data": {
        "printAreas": [{
          "designFile": "{{'flyer/'+$['layout']._.props.design}}"
        }]
      }
    }]
  }
}
Package: ui-framework
Properties
after
The next commands to be executed after this command completes.
Declaration
after?: string | string[]Property Value
| Type | Description | 
|---|---|
| string | string[] | The next commands to be executed after this command completes. | 
data
A product definition.
Declaration
data: anyProperty Value
| Type | Description | 
|---|---|
| any | A product definition. | 
dimesions
If the layout and the currently loaded product have different dimensions, you can enable the size of either config or canvas, correspondingly.
Declaration
dimesions?: SurfaceDimensionsValueProperty Value
| Type | Description | 
|---|---|
| SurfaceDimensionsValue | If the layout and the currently loaded product have different dimensions, you can enable the size of either  | 
discardChanges
If true, a design always loaded from scratch. if false or omitted, merges placeholders and text elements.
Declaration
discardChanges?: booleanProperty Value
| Type | Description | 
|---|---|
| boolean | If  | 
removeBackground
If true, removes the background image.
Declaration
removeBackground: booleanProperty Value
| Type | Description | 
|---|---|
| boolean | If  | 
sourceSurfaceIndex
Specifies what page to be used as a layout if data refers to a multipage template.
Declaration
sourceSurfaceIndex?: numberProperty Value
| Type | Description | 
|---|---|
| number | Specifies what page to be used as a layout if  | 
surfaceIndex
The index of a surface that should be modified (the current surface if omitted).
Declaration
surfaceIndex?: numberProperty Value
| Type | Description | 
|---|---|
| number | The index of a surface that should be modified (the current surface if omitted). | 
viewerSettings
Zoom properties.
Declaration
viewerSettings?: ICanvasDefinitionSetViewerSettingsProperty Value
| Type | Description | 
|---|---|
| ICanvasDefinitionSetViewerSettings | Zoom properties. |