The Flow graph.
import GGEditor, { Flow } from 'gg-editor';
<GGEditor>
<Flow />
</GGEditor>
Property | Description | Type | Default |
---|---|---|---|
data | The initial data. | object |
- |
graph | To configurate the graph. See more on G6 Graph API (Chinese). | object |
- |
align | To set the alignment. | object |
- |
grid | To set the grid. | object |
- |
shortcut | To set the shortcut keys. See more on Built-in Commands. | object |
- |
noEndEdge | To set if the no-end-edge is supported. | boolean |
true |
Property | Description | Type | Default |
---|---|---|---|
line | The alignment of the line style. | object |
- |
item | The alignment of an item. | true false horizontal vertical center |
- |
grid | The alignment of a grid. | true false cc tl |
- |
Property | Description | Type | Default |
---|---|---|---|
cell | The size of the grid. | number |
- |
line | The line style of the grid. | object |
- |
Example:
shortcut: {
zoomIn: true, // To turn on the zoom-in shortcut
zoomOut: false, // To turn off the zoom-out shortcut
}
See more on PageEvents.