This is an old documentation. Go to the latest Customer's Canvas docs

ISnapLinesConfig Interface

A structure containing the configuration of snap lines.

For details, see the Markings topic.

example
configuration = {
    canvas: {
        snapLines: {
            items: {
                enabled: true,
                color: "rgb(255,0,0)",
                tolerance: 5,
                priority: 2,
                initialValue: false
            }
        }
    }
};

Properties

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.