ICropMark Interface

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

example
product: {
    surfaces: [{
        mockup: {
            up: "envelope"
        },
        printAreas: [{
            designFile: "envelope",
            designLocation: { X: 4.1, Y: 4.1 },
            cropMarks: [{
                margin: 8.5,
                color: "rgba(255, 0, 0, 255)",
                widthPx: 0.5,
                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, 255)".

Optional leftNotes

leftNotes: ICropMarkText []

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

Optional length

length: number | object

The lenght of the crop mark. The default value is 8.

horizontal

The lenght of horizontal crop marks.

vertical

The lenght of vertical crop marks.

Optional margin

margin: number | object

The margin is the distance between a crop mark and the surface bounds. The default value is 10.

horizontal

The horizontal distance between crop marks and print area bounds.

vertical

The vertical distance between crop marks and print area bounds.

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.