UI components for G.
$ npm install @antv/gui
import { Canvas } from '@antv/g';
import { Button } from '@antv/gui';
// add `arrow` instance into canvas
const canvas = new Canvas({
/* ... */
});
const button = new Button({
/* ... */
});
canvas.appendChild(button);
// 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.