Flow

The Flow graph.

Usage

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

<GGEditor>
  <Flow />
</GGEditor>

API

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

Align

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 -

Grid

Property Description Type Default
cell The size of the grid. number -
line The line style of the grid. object -

Shortcut

Example:

  shortcut: {
    zoomIn: true,   // To turn on the zoom-in shortcut
    zoomOut: false, // To turn off the zoom-out shortcut
  }

Events

See more on PageEvents.