IDefaultItemsConfig Interface

The configuration of design elements being added to a product. For details, see the Default Parameters of Design Elements 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"]
                }
            }
        }
    }
};

CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition, configuration);

Properties

Optional barcode

Default parameters of barcodes, which users add to the canvas.

Optional boundedText

Default parameters of bounded text elements, which users add to the canvas.

Optional ellipse

Default parameters of ellipses, which users add to the canvas.

Optional image

Default parameters of images, which users add to the canvas.

Optional line

Default parameters of lines, which users add to the canvas.

Optional placeholder

Default parameters of image placeholders, which users add to the canvas.

Optional rectangle

Default parameters of rectangles, which users add to the canvas.

Optional richText

richText: IRichTextConfig

Default parameters of rich text elements, which users add to the canvas.

Optional shape

Default parameters of custom shapes, which users add to the canvas.

Optional text

Default parameters of text, which users add to the canvas.