Skip to content

frontend / shared/ui/BlocklyCanvas / BlocklyCanvasHandle

Interface: BlocklyCanvasHandle ​

Defined in: shared/ui/BlocklyCanvas.tsx:32

Handle-interface for imperative access to Blockly workspace.

Use ref to call these methods from parent component, for example to load saved project into canvas.

Properties ​

getWorkspace ​

getWorkspace: () => WorkspaceSvg | null

Defined in: shared/ui/BlocklyCanvas.tsx:33

Returns ​

WorkspaceSvg | null


loadState ​

loadState: (state) => void

Defined in: shared/ui/BlocklyCanvas.tsx:34

Parameters ​

state ​

object

Returns ​

void