logologo
FlowGram.AI
指引
例子
常用 API
API 文档
English
简体中文
指引
例子
常用 API
API 文档
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

API 预览

Core

FlowDocument

  • root
  • originTree
  • renderTree
  • getAllNodes
  • getNode
  • getNodeRegistry
  • fromJSON/toJSON
  • registerFlowNodes
  • addNode
  • addFromNode
  • addBlock
  • removeNode
  • onNodeCreate/onNodeUpdate/onNodeDispose
  • traverse
  • toString

FlowNodeEntity/WorkflowNodeEntity

  • Properties
  • Accessors
  • Methods

WorkflowDocument (free)

  • linesManager
  • createWorkflowNodeByType
  • onContentChange

WorkflowLinesManager (free)

  • getAllLines
  • createLine
  • toJSON
  • onAvailableLinesChange
  • 自定义箭头渲染器

WorkflowLineEntity (free)

    Playground

    • config

    Hooks

    useClientContext

    • 固定布局
    • 自由布局

    useNodeRender

    • 固定布局
    • 自由布局

    usePlaygroundTools

    • 固定布局
    • 自由布局

    useRefresh

    • Source Code
    • Usage

    useService

    • 自定义 Service

    Components

    EditorRenderer

      FixedLayoutEditorProvider

        FixedLayoutEditor

          FreeLayoutEditorProvider

            FreeLayoutEditor

              WorkflowNodeRenderer(free)

              • Usage

              Services

              ClipboardService

                CommandService

                  FlowOperationService

                  • Interface

                  history-service

                  • HistoryService
                  • Redo/Undo
                  • 渲染历史记录

                  SelectionService

                  • Usage

                  Utils

                  DisposableCollection

                  • Usage
                  • Source Code

                  Disposable

                  • Interface
                  • Source Code

                  Emitter

                  • Usage
                  • Source Code

                  getNodeForm

                  • Usage
                  • Return Inteface