UI components for G.
$ npm install @antv/gui
import { Canvas } from '@antv/g';
import { Arrow } from '@antv/gui';
// add `arrow` instance into canvas
const canvas = new Canvas({/* ... */});
const arrow = new Arrow({/* ... */});
canvas.appendChild(arrow);
// render it
canvas.render();
$ git clone [email protected]:antvis/gui.git
$ cd gui
$ npm i
$ npm t
Then send a pull request after coding.
MIT@AntV.