IDefaultItemsConfig Interface

The configuration of design elements being added to a product. For details, see the default-settings.htm topic.

example
configuration = {
    defaultItemsConfig: {
        text: {
            font: {
                postScriptName: "Impact",
                size: 33,
                fauxBold: true,
                fauxItalic: true
            },
            color: "rgb(0,255,255)"
        },
        boundedText: {
            tracking: 27,
            leading: 125,
            verticalAlignment: "center",
            isVertical: true
        },
        line: {
            width: 3,
            color: "rgb(255,0,0)",
            linePermissions: {
                allowChangeLineWidth: false
            }
        },
        image: {
            manipulationPermissions: {
                allowMoveHorizontal: false,
                allowMoveVertical: false,
                resizeGrips: {
                    edge: true,
                    corner: ["Arbitrary"]
                }
            }
        }
    }
};

Properties

Optional barcode

Settings of barcodes, which users add to the canvas.

Optional boundedText

Settings of bounded text, which users add to the canvas.

Optional ellipse

Settings of ellipses, which users add to the canvas.

Optional image

Settings of images, which users add to the canvas.

Optional line

Settings of lines, which users add to the canvas.

Optional placeholder

Settings of image placeholders, which users add to the canvas.

Optional rectangle

Settings of rectangles, which users add to the canvas.

Optional shape

Settings of shapes, which users add to the canvas.

Optional text

Settings of text, which users add to the canvas.