Optional
classOptional class name to set on the surface component's container
Optional
dataOptional data to load after the component has been mounted.
Optional
injectorOptional function that is used to generate a set of props for a given vertex before rendering it. This provides
a mechanism for you to inject specific items into the components you use to render your vertices.
The return value of this function should be Record<string, any>
. It may be null.
Optional
modelOptions for the underlying Toolkit instance.
Optional
renderRender options for the Surface.
Optional
shapeShape library to use to render SVG shapes. Optional.
Optional
toolkitOptional JsPlumb Toolkit to use. If this is not provided, a Toolkit instance will be created.
Optional
urlOptional url from which to load data after the component has been mounted. If you provide this and also data, this will take precedence.
Optional
viewView options for the Surface.
Props for the SurfaceComponent.