Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.04 KB

registerEdge.en-US.md

File metadata and controls

32 lines (23 loc) · 1.04 KB

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