SurfaceComponentProps
| Name | Type | Description |
|---|---|---|
| additionalProps? | Array<Record<string,any>> | An optional array of reactive objects. The properties from these objects will be merged into the props passed to each WrapperComponent, preserving reactivity. |
| className? | string | Optional class name to set on the surface component's container |
| data? | any | Optional data to load after the component has been mounted. |
| dataType? | string | ID of the format that or the data retrieved from is expected to be in. Defaults to . |
| injector? | (v:Vertex) => Record<string,any> | Optional 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 . It may be null. |
| model? | BrowserUIModel | Optional Visually JS instance to use. If this is not provided, a Visually JS instance will be created, with if you provide them. |
| modelOptions? | ModelOptions | Options for the underlying model instance. |
| renderOptions? | SvelteSurfaceRenderOptions | Render options for the Surface. |
| shapeLibrary? | ShapeLibraryImpl<ObjectData> | Shape library to use to render SVG shapes. Optional. |
| url? | string | Optional url from which to load data after the component has been mounted. If you provide this and also data, this will take precedence. |
| viewOptions? | SvelteSurfaceViewOptions | View options for the Surface. |