Interface: WorkspaceProps
Defined in: workspace/workspace.tsx:49
Props for Workspace component.
See
Properties
| Property | Type | Description |
|---|---|---|
| Component children. | |
| Initial language to display the graph data with. | |
Default function to compute diagram layout. It is recommended to get layout function from a background worker, e.g. with defineDefaultLayouts and useWorker. In cases when a worker is not available, it is possible to import and use blockingDefaultLayout as a synchronous fallback. | ||
Overrides default command history implementation. By default, InMemoryHistory instance is used. | ||
Provides an strategy to visually edit graph data. If provided, switches editor into the graph authoring mode. | ||
( | Handler for a well-known workspace event. | |
| Provides a strategy to rename diagram links (change labels). By default, DefaultRenameLinkProvider instance is used. If specified as | |
Overrides how a single label gets selected from multiple of them based on target language. | ||
readonly | Additional translation bundles for UI text strings in the workspace in order from higher to lower priority. Default See | |
Allows to customize how colors and icons are assigned to elements based on its types. By default, the colors are assigned deterministically based on total hash of type strings. For non-entity elements, the Element.elementState is checked for TemplateProperties.ColorVariant template state property instead. | ||
| If set, disables translation fallback which (with default Default See | |
Provides a strategy to validate changes to the data in the graph authoring mode. |