White paper: Templates in web-to-print.  Free download

ILineItemDefaultConfig Interface

A structure containing default parameters of lines.

You can apply these parameters to the line object through either clientConfig.json or IConfiguration.

lineItemConfig = {
    width: 7,
    color: "rgb(255,0,0)",
    point0: { x: 10, y: 10 },
    point1: { x: 100, y: 10 },
    manipulationPermissions: {
        allowMoveHorizontal: false


Optional angle

angle: number

An angle, which design elements are rotated to. By default, this value is 0.

Optional color

color: string

A default color of lines. By default, this value is "rgba(0,0,0,1)".

Optional height

height: string | number

The height of design elements being added to the canvas, in points or percent. For QR codes, the width value is used for both width and height.

Optional isVariable

isVariable: boolean

Marks a design element as a variable item. The default value is false.

Optional itemPermissions

itemPermissions: IItemPermissionsConfig

A structure defining the Item Menu and the Floating item toolbar for design elements.

Optional linePermissions

linePermissions: ILinePermissionsConfig

A structure defining line permissions.

Optional location

The location of design elements being added to the canvas. By default, you can add them to the center of your product.

Optional manipulationPermissions

manipulationPermissions: IManipulationPermissionsConfig

A structure defining the manipulation permissions for design elements.

Optional name

name: string

The name of design elements being added to the canvas.

Optional opacity

opacity: number

An opacity applied to design elements. This value can be from 0 to 1. By default, it is 1.

Optional point0

point0: IPointF

A default start point of lines.

Optional point1

point1: IPointF

A default end point of lines.

Optional textWrappingMode

textWrappingMode: WrappingModeType

A wrapping mode applied to wrap text around design elements. By default, it is "none".

Optional themeBinding

themeBinding: IThemeBindingConfig

A style or a color applied to new design elements.

Optional visualizationPermissions

visualizationPermissions: IVisualizationPermissionsConfig

A structure defining the visualization permissions for design elements.

Optional width

width: number

A default width of lines, in points. By default, this value is 1.