ICropMark Interface

A structure holding settings for a crop mark. For details, see the Crop Marks topic.

example
product: {
    surfaces: [{
        mockup: {
            up: "envelope"
        },
        printAreas: [{
            designFile: "envelope",
            designLocation: { X: 4.1, Y: 4.1 },
            cropMarks: [{
                margin: 8.5,
                color: "cmyk(0, 1, 1, 0, 1)",
                widthPx: 1,
                length: 6,
                fontSize: 4,
                leftNotes: [{
                    text: "Page information"
                }]
            }] 
        }]
    }
]

Properties

Optional bottomNotes

bottomNotes: ICropMarkText []

The page information to be placed at the bottom of hi-res outputs.

Optional color

color: string

The color of crop marks, in the CSS color format. The default value is black, "rgba(0,0,0,1)".

Optional leftNotes

leftNotes: ICropMarkText []

The page information to be placed on the left side of hi-res outputs.

Optional length

length: number | IMarginHV

The length of the crop mark, in points. The default value is 8.

horizontal

The length of horizontal crop marks.

vertical

The length of vertical crop marks.

Optional margin

margin: number | IMarginHV

The distance between a crop mark and the surface bounds, in points. The default value is 10.

Optional name

name: string

The name of the crop mark.

Optional rightNotes

rightNotes: ICropMarkText []

The page information to be placed on the right side of hi-res outputs.

Optional topNotes

topNotes: ICropMarkText []

The page information to be placed at the top of hi-res outputs.

Optional widthPx

widthPx: number

The line width in pixels. The default value is 1.