To register a node.
G6 Custom Shape (Chinese) Tutorial
import GGEditor, { Flow, RegisterNode } from 'gg-editor';
<GGEditor>
<Flow />
<RegisterNode name={...} config={...} extend={...} />
</GGEditor>| Property | Description | Type | Default |
|---|---|---|---|
| name | The name of a node. | string |
- |
| config | To configurate a node. | object |
- |
| extend | To extend a shape. | string |
- |
| Node Name | Preview | Applicable Page |
|---|---|---|
| flow-circle | Flow | |
| flow-rect | Flow | |
| flow-rhombus | Flow | |
| flow-capsule | Flow |