Skip to main content

Interface: IMockupTemplate

A structure holding settings to create overlaying and background mockups from PSD templates or raster images.

Example

CustomersCanvas.IframeApi.loadEditor(iframe, {
surfaces: [
{
mockup: {
up: "stamp",
down: "envelope",
},
previewMockups: `[{ down: "envelope" }]`,
printAreas: `[{
designFile: "envelopeDesign"
}]`,
},
],
});

Extends

Properties

name?

optional name?: string

A name of a surface (a page) in the product.

Remarks

In multipage products, it allows you to use a name mask for product surfaces. If this string contains the {0} placeholder, it will be replaced with a page number, starting from 1. For example, name: "Page {0}" specifies the following page captions in the Bottom toolbar: Page 1, Page 2, and so on.

Inherited from

IModelComponent.name


down?

optional down?: string

A background mockup: the mockup lays below the design template. This property represents a file name without an extension.


up?

optional up?: string

An overlaying mockup: the mockup lays above the design template. This property represents a file name without an extension.

Was this page helpful?