Meet us at Print 18. Chicago, IL. Sept. 30 - Oct. 2.

IWidgetConfigsForSurface Interface

A structure defining the configuration of widgets for a separate surface.

example
product: {
    surfaces: [{
            name: "surface1",
            printAreas: [{ designFile: "Postcard_side1" }]
        },
        {
            name: "surface2",
            printAreas: [{ designFile: "Postcard_side2" }]
        }
    ]
};

config: {
    perSurfaceConfiguration: {
        "surface2": {
            widgets: {
                ObjectInspector: {
                    bgItemEnabled: false
                },
                ColorPicker: {
                    showPaletteOnly: false,
                    palette: [[ "rgb(0, 0, 0)", "rgb(255, 255, 255)" ]]
                }
            }
        }
    }
};

Properties

Optional ColorPicker

Settings defining a color selection in the editor.

Optional LeftToolbarConfig

LeftToolbarConfig: ILeftToolbarConfigParsed

Outdated, use the Toolbox object instead. Settings of design elements that can be added to a canvas.

Optional ObjectInspector

Settings defining a position of the Object Inspector, an appearance of layers, and messages.

Optional Toolbox

Settings of design elements that can be added to a canvas from the Toolbox.