Interface: IBasePrintAreaDefinition
A structure representing basic print area features.
Example
const productDefinition = {
surfaces: [
{
printAreas: [
{
designFile: "texture",
containers: [
{
name: "foil",
type: "texture",
texture: "texture.jpg",
},
{
name: "spot",
type: "spotColor",
previewColor: "rgba(255,255,0,1)",
},
],
bleed: {
top: 20,
bottom: 20,
left: 20,
right: 20,
},
slug: {
top: 20,
bottom: 20,
left: 20,
right: 20,
},
},
],
},
],
};
Extends
Extended by
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
safetyLines?
optionalsafetyLines?:ISafetyLine[]
A collection of safety lines defined in the print area.
cropMarks?
optionalcropMarks?:ICropMark[]
A collection of crop marks defined in the print area.
containers?
optionalcontainers?:IChannelContainerDefinition[]
A collection of texture and spot color containers defined in the print area.
Remarks
For backward compatibility only!
bleed?
optionalbleed?:IMargin
Margins of the bleed area.
slug?
optionalslug?:IMargin
Margins of the slug area. The editor expands the product boundaries to accommodate the slug area.
hiResOutput?
optionalhiResOutput?:IHiResOutput
Properties of the hi-res output defined in the print area.