@sqlrooms/canvas / createDefaultCanvasConfig
Function: createDefaultCanvasConfig()
createDefaultCanvasConfig(
props?):object
Parameters
| Parameter | Type |
|---|---|
props? | Partial<{ viewport: { x: number; y: number; zoom: number; }; nodes: object[]; edges: object[]; }> |
Returns
object
| Name | Type |
|---|---|
viewport | { x: number; y: number; zoom: number; } |
nodes | object[] |
edges | object[] |
