plugins_controller
perfect-graph / Modules / plugins/controller
#
Module: plugins/controller#
Table of contents#
Namespaces#
Functions#
Functions#
useControllerâ–¸ Const
useController(useControllerData
, _graphEditorRef?
): readonly [Pick
<GraphEditorProps
, "nodes"
| "edges"
| "onEvent"
| "graphConfig"
| "eventHistory"
>, { onEvent
: (eventInfo
: EventInfo
) => void
; update
: (updater
: UpdateFunction
) => void
}]
Graph Editor Controller. There are events handlers for the graph editor. It return the changed props.
#
ParametersName | Type |
---|---|
useControllerData | Partial <ControllerState > |
_graphEditorRef? | MutableRefObject <GraphEditorRef > |
#
Returnsreadonly [Pick
<GraphEditorProps
, "nodes"
| "edges"
| "onEvent"
| "graphConfig"
| "eventHistory"
>, { onEvent
: (eventInfo
: EventInfo
) => void
; update
: (updater
: UpdateFunction
) => void
}]