To register a node.


G6 Custom Shape (Chinese) Tutorial

import GGEditor, { Flow, RegisterNode } from 'gg-editor';

  <Flow />
  <RegisterNode name={...} config={...} extend={...} />


Property Description Type Default
name The name of a node. string -
config To configurate a node. object -
extend To extend a shape. string -

Built-in Nodes

Node Name Preview Applicable Page
flow-circle Cicle Nodes Figure Flow
flow-rect Rect Node Figure Flow
flow-rhombus Rhombus Node Figure Flow
flow-capsule Capsule Node Figure Flow