Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Latest commit

ย 

History

History
82 lines (59 loc) ยท 2.24 KB

File metadata and controls

82 lines (59 loc) ยท 2.24 KB

GUI

UI components for G.

Build Status Coverage Status npm Version npm Download npm License

โœจ Features

๐Ÿ“ฆ Installation

$ npm install @antv/gui

๐Ÿ”จ Getting Started

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();

๐Ÿ“Ž Components

๐Ÿ“ฎ Contribution

$ git clone git@github.com:antvis/gui.git

$ cd gui

$ npm install

$ npm run dev

Then send a pull request after coding.

๐Ÿ“„ License

MIT@AntV.