To register an edge.


G6 Custom Shape (Chinese) Tutorial

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

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


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

Built-in Edges

Edge Name Preview Applicable Page
flow-polyline Polyline Figure Flow
flow-polyline-round Rounded Polyline Figure Flow
flow-smooth Smooth Edge Figure Flow