@antv/gui

UI components for AntV G.

Usage no npm install needed!

<script type="module">
  import antvGui from 'https://cdn.skypack.dev/@antv/gui';
</script>

README

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 { Button } from '@antv/gui';

// add `arrow` instance into canvas
const canvas = new Canvas({
  /* ... */
});
const button = new Button({
  /* ... */
});
canvas.appendChild(button);

// render it
canvas.render();

📎 Components

📮 Contribution

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

$ cd gui

$ npm i

$ npm t

Then send a pull request after coding.

📄 License

MIT@AntV.