It is not only a fully functional graph visualization library, but also an explorer of data relationships.
!!!###!!!title=Pipeline Editor——VisActor/VGraph tutorial documents!!!###!!!!!!###!!!description=PipelineEditor is a process orchestration tool built with vgraph, commonly used for arranging workflows. It has been implemented in scenes like Dorado project management pipelines. This is a pure JS component, imported as follows:```javascriptimport { PipelineEditor } from '@visactor/vgraph';const pipelineEditor = new PipelineEditor(options);```!!!###!!!
Pipeline - Editor Mode
PipelineEditor is a process orchestration tool built with vgraph, commonly used for arranging workflows. It has been implemented in scenes like Dorado project management pipelines. This is a pure JS component, imported as follows:
import { PipelineEditor } from '@visactor/vgraph';
const pipelineEditor = new PipelineEditor(options);
Get the Graph instance corresponding to the solution.
Built-in Nodes
To meet the needs of more scenarios, pipelineEditor does not specify node types, but provides recommended node registration methods for reuse. Users can also register nodes that better fit their business scenarios and set the type in the setDefaultNode configuration item to the name of the registered node. The recommended node registration method is as follows:
import { registerPipelineEditorNode } from '@visactor/vgraph';
registerPipelineEditorNode(options);
The configuration items for each part are as follows:
Field
Type
Description
addImage
string
The cdn of the image for the add node icon.
onClickImage
(e: ShapeEvent, nodeData: any)
The event for when a user clicks the add icon.
errorImage
string
The cdn of the image for the node error icon, which appears when the error parameter in the node data is true.
The node fields used by the built-in nodes are as follows:
Field
Type
Description
label
string
The node name.
error
boolean
If true, an error image is displayed after the node name.