|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| dist | %!s(int64=2) %!d(string=hai) anos | |
| esm | %!s(int64=2) %!d(string=hai) anos | |
| lib | %!s(int64=2) %!d(string=hai) anos | |
| node_modules | %!s(int64=2) %!d(string=hai) anos | |
| src | %!s(int64=2) %!d(string=hai) anos | |
| LICENSE | %!s(int64=2) %!d(string=hai) anos | |
| README.md | %!s(int64=2) %!d(string=hai) anos | |
| package.json | %!s(int64=2) %!d(string=hai) anos | |
$ npm install @antv/gui
import { Canvas } from '@antv/g';
import { Renderer } from '@antv/g-canvas';
import { Button } from '@antv/gui';
// create a canvas
const canvas = new Canvas({
container: 'container',
width: 600,
height: 600,
renderer: new Renderer(),
});
// create a button
const button = new Button({
/* ... */
});
canvas.appendChild(button);
// render it
canvas.render();
$ git clone git@github.com:antvis/gui.git
$ cd gui
$ npm install
$ npm run dev
Then send a pull request after coding.
MIT@AntV.