Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.06 KB

registerNode.en-US.md

File metadata and controls

33 lines (24 loc) · 1.06 KB

RegisterNode

To register a node.

Usage

G6 Custom Shape (Chinese) Tutorial

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

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

API

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