Skip to main content
ShapeLibraryOptions
Options for a shape library.
NameTypeDescription
categoryParameter?stringThe property to use to map an object's category (ie which shape set to use). Defaults to "category".
defaultFillColor?stringOptional default for fill color. If not provided, fill is set to #FFFFFF.
defaultOutlineColor?stringOptional default for outline color. If not provided, outline is set to #000000.
labelBackground?boolean | LabelBackgroundOptionsOptions for label background. Use true for defaults, or supply your own values (which will be merged on top of the defaults)
labelFillRatio?numberHow 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.
labelPosition?LabelPositionDefault position for labels (will be overridden by a shape that defines its own position. Defaults to "center"
multilineLabels?booleanDefaults 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?stringThe property to use to map an object's type. Defaults to "type".