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

IShapeItemDefaultConfig Interface

A structure defining common shape parameters.

example
{
    "defaultItemsConfig": {
        "rectangle": {
            "borderWidth": 2,
            "borderColor": "rgba(155,0,0,155)",
            "shapePermissions": {
                "allowChangeBorderWidth": false
            }
        }
    }
}

Properties

Optional angle

angle: number

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

Optional borderColor

borderColor: string

The shape border color. The default value is "rgba(0,0,0,255)".

Optional borderWidth

borderWidth: number

The shape border width, in points. The default value is 1.

Optional fillColor

fillColor: string

The shape fill color. The default value is "rgba(112,112,112,255)".

Optional itemPermissions

itemPermissions: IItemPermissionsConfig

A structure defining the Item Menu for design elements.

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 shapePermissions

shapePermissions: IShapePermissionsConfig

Defines permissions for shapes.

Optional textWrappingMode

textWrappingMode: WrappingModeType

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

Optional visualizationPermissions

visualizationPermissions: IVisualizationPermissionsConfig

A structure defining the visualization permissions for design elements.