Interface ShapeLibraryOptions

Options for a shape library.

interface ShapeLibraryOptions {
    categoryParameter?: string;
    labelFillRatio?: number;
    multilineLabels?: boolean;
    typeParameter?: string;
}

Properties

categoryParameter?: string

The property to use to map an object's category (ie which shape set to use). Defaults to "category".

labelFillRatio?: number

How much of the width of a shape a multiline label will take up before wrapping. Defaults to 0.8. You can set this to a number greater than 1, if you like, but that will allow the label to overflow.

multilineLabels?: boolean

Defaults to true - labels are split across multiple lines to fit inside their shape. Set this to false if you want labels to always be a single line.

typeParameter?: string

The property to use to map an object's type. Defaults to "type".

Version :