Skip to content

@sqlrooms/canvas / createCanvasSlice

Function: createCanvasSlice()

createCanvasSlice(props): StateCreator<CanvasSliceState>

Parameters

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

Returns

StateCreator<CanvasSliceState>