Skip to main content

plugins_controller._internal_

perfect-graph / Modules / plugins/controller / <internal>

Namespace: <internal>#

plugins/controller.

Table of contents#

Type aliases#

Type aliases#

ControllerState#

Ƭ ControllerState: { onEvent: (eventInfo: EventInfo & { graphEditor: GraphEditorRef }, draft: ControllerState) => boolean | void } & Pick<GraphEditorProps, "nodes" | "edges" | "mode" | "selectedElementIds" | "actionBar" | "dataBar" | "settingsBar" | "graphConfig" | "playlists" | "isLoading" | "modals" | "events" | "preferencesModal" | "isFocusMode" | "previousDataList" | "label" | "networkStatistics">

Defined in#

type/index.ts:761


UpdateFunction#

Ƭ UpdateFunction: (draft: ControllerState, config: { graphEditorRef: React.MutableRefObject<GraphEditorRef> }) => void

Type declaration#

â–¸ (draft, config): void

Parameters#
NameType
draftControllerState
configObject
config.graphEditorRefReact.MutableRefObject<GraphEditorRef>
Returns#

void

Defined in#

plugins/controller/index.tsx:78