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?
optionalname?: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
down?
optionaldown?:string
A background mockup: the mockup lays below the design template. This property represents a file name without an extension.
up?
optionalup?:string
An overlaying mockup: the mockup lays above the design template. This property represents a file name without an extension.