RegisterEdge

To register an edge.

Usage

G6 Custom Shape (Chinese) Tutorial

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

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

API

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