IRectangleItemDefaultConfig Interface

A structure defining the default parameters of rectangles.

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

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

Properties

Optional angle

angle: number

Optional borderColor

borderColor: string

Optional borderWidth

borderWidth: number

Optional fillColor

fillColor: string

Optional itemPermissions

itemPermissions: IItemPermissionsConfig

Optional manipulationPermissions

manipulationPermissions: IManipulationPermissionsConfig

Optional opacity

opacity: number

Optional shapePermissions

shapePermissions: IShapePermissionsConfig

Optional textWrappingMode

textWrappingMode: WrappingModeType

Optional visualizationPermissions

visualizationPermissions: IVisualizationPermissionsConfig