Skip to content

antvis/component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c92e623 ยท Feb 21, 2025
Nov 29, 2023
Oct 7, 2023
Mar 21, 2024
Dec 9, 2024
Oct 7, 2023
Dec 9, 2024
May 24, 2021
Jun 15, 2021
Aug 31, 2023
Nov 12, 2023
Feb 27, 2023
May 24, 2021
May 24, 2021
Oct 7, 2023
May 24, 2021
Oct 21, 2024
Nov 27, 2024
Feb 21, 2025
Dec 1, 2022
Oct 7, 2023

Repository files navigation

@antv/component

Visualization components for AntV, based on G which is a flexible rendering engine for visualization.

build Coverage Status npm Version npm Download npm License

โœจ Features

  • Rich - Contains 20+ Visualization components, for AntV G2, G6, L7.
  • Powerful - Each component has powerful abilities and flexible scalability.
  • Well Design - Continuous optimization and iteration.
  • Powerful Renderer - Based on the powerful renderer G, we can render the components using Canvas, SVG or WebGL with same code.

๐Ÿ“ฆ Installation

$ npm install @antv/component
$ yarn add @antv/component

๐Ÿ”จ Getting Started

import { Canvas } from '@antv/g';
import { Renderer } from '@antv/g-canvas';
import { Button } from '@antv/component';

// 1. New a canvas.
const canvas = new Canvas({
  container: 'container',
  width: 600,
  height: 600,
  renderer: new Renderer(),
});

// 2. Create a button with configure.
const button = new Button({
  /* ... */
});

// 3. Append into G canvas.
canvas.appendChild(button);

// 4. Render.
canvas.render();

๐Ÿ“Ž Documents

๐Ÿ“ฎ Contribution

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

$ cd component

$ npm install

$ npm run dev

Then send a pull request on GitHub.

๐Ÿ“„ License

MIT@AntV.