Interface: WorkspaceProps
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, it uses InMemoryHistory instance. | |
| 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). | |
| 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. | |
|
| If set, disables translation fallback which (with default Default
See |
| Provides a strategy to validate changes to the data in the graph authoring mode. |