Interface SurfaceShapesOptions

Options for a shape library for the surface to use. If you want to use a shape library with a surface you at least need to provide library here.

interface SurfaceShapesOptions {
    labelAttribute?: string;
    library: ShapeLibrary<ObjectData>;
    showLabels?: boolean;
    strokeWidth?: number;
    tagName?: string;
}

Properties

labelAttribute?: string

The attribute containing each vertex's label. Defaults to 'label'

library: ShapeLibrary<ObjectData>

The shape library to use. Required.

showLabels?: boolean

Whether or not to show labels. Defaults to true.

strokeWidth?: number

Stroke width to use when drawing svg shapes.

tagName?: string

The name of the tag to make available to node/group renderers. Defaults to jtk-shape. You'll only use this tag with vanilla JsPlumb. If you're using an integration there's a dedicated shape component you will use instead.

Version :