logologo
FlowGram.AI
Guide
Examples
Common APIs
API Documentation
English
简体中文
Guide
Examples
Common APIs
API Documentation
English
简体中文
logologo
FlowGram.AI
API Overview

Core

FlowDocument
FlowNodeEntity/WorkflowNodeEntity
WorkflowDocument (free)
WorkflowLinesManager (free)
WorkflowLineEntity (free)
Playground

Hooks

useClientContext
useNodeRender
usePlaygroundTools
useRefresh
useService

Components

EditorRenderer
FixedLayoutEditorProvider
FixedLayoutEditor
FreeLayoutEditorProvider
FreeLayoutEditor
WorkflowNodeRenderer(free)

Services

ClipboardService
CommandService
FlowOperationService
history-service
SelectionService

Utils

DisposableCollection
Disposable
Emitter
getNodeForm

#SelectionService

Used to control selected nodes

> API Detail

#Usage

// Listen Selection Change
ctx.selection.onSelectionChanged((nodes) => {
})
// Select All Nodes
ctx.selection.selection = ctx.document.getAllNodes()

Last Updated: 8/27/2025, 1:06:32 PM

Previous Pagehistory-service
Next PageDisposableCollection