TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

ISnapLinesConfig Interface

A structure containing the configuration of snap lines.

example
configuration = {
    canvas: {
        snapLines: {
            enabled: false
        }
    }
};

Properties

Optional color

color: string

Deprecated, use the advanced configuration. Snap line color. The default value is "rgb(255,0,255)".

Optional enabled

enabled: boolean

Deprecated, use the advanced configuration. Displays snap lines. The default is true.

items

The configuration of snap lines that clings to design elements.

printArea

The configuration of snap lines that clings to the product page.

safetyLines

The configuration of snap lines that clings to safety lines.

Optional tolerance

tolerance: number

Deprecated, use the advanced configuration. The distance between an object and a snap line where the object clings to the line. It is measured in pixels. The default value is 5.