UI Framework ReferenceIDesignEditorDefinitionChangeLayout

Interface: IDesignEditorDefinitionChangeLayout

Provides properties to replace design elements in the editor.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "changeLayout": [{
      "discardChanges": false,
      "data": {
        "printAreas": [{
          "designFile": "{{'flyer/'+$['layout']._.props.design}}"
        }]
      }
    }]
  }
}

Hierarchy

Index

Properties

Properties

Optional after

after? : string | string[]

Inherited from IDesignEditorCommandDefinition.after

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:32

The next commands to be executed after this command completes.


data

data: any

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:206

A product definition.


Optional dimesions

dimesions? : SurfaceDimensionsValue

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:212

If the layout and the currently loaded product have different dimensions, you can enable the size of either config or canvas, correspondingly.


Optional discardChanges

discardChanges? : boolean

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:204

If true, a design always loaded from scratch. if false or omitted, merges placeholders and text elements.


removeBackground

removeBackground: boolean

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:210

If true, removes the background image.


Optional sourceSurfaceIndex

sourceSurfaceIndex? : number

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:202

Specifies what page to be used as a layout if data refers to a multipage template.


Optional surfaceIndex

surfaceIndex? : number

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:200

The index of a surface that should be modified (the current surface if omitted).


Optional viewerSettings

viewerSettings? : IDesignEditorDefinitionSetViewerSettings

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:208

Zoom properties.