IPrintZoneConfig Interface

A structure defining the appearance of bleed and trim lines on the canvas.

example
configuration = {
    canvas: {
        printZone: {
            "bleed": {
              color: "rgb(255, 0, 0)",
              altColor: "rgb(255, 0, 0)",
              step: 1,
              width: 1
            },
            "trim": {
              color: "rgb(255, 0, 0)",
              step: 5,
              width: 1
            }
        }
    }
};

Properties

Optional altColor

altColor: string

The alternate color; a CSS-style color value. The default value is "rgba(0,0,0,1)".

color

color: string

The main color; a CSS-style color value. The default value is "rgba(255,255,255,1)".

step

step: number

The dash length in pixels. The default value is 10 px.

width

width: number

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