Skip to content

@sqlrooms/canvas / createDefaultCanvasConfig

Function: createDefaultCanvasConfig()

createDefaultCanvasConfig(props?): object

Parameters

ParameterType
props?Partial<{ viewport: { x: number; y: number; zoom: number; }; nodes: object[]; edges: object[]; }>

Returns

object

NameType
viewport{ x: number; y: number; zoom: number; }
nodesobject[]
edgesobject[]