Skip to content
/ g Public
forked from antvis/G

A powerful rendering engine which providing Canvas and SVG draw for G2 & G6

Notifications You must be signed in to change notification settings

ICMI/g

This branch is 37 commits ahead of, 503 commits behind antvis/G:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e7b9324 · Mar 21, 2022
Jul 8, 2021
May 10, 2020
Dec 23, 2019
Mar 18, 2022
Dec 16, 2020
Apr 29, 2019
Dec 12, 2019
Dec 16, 2020
Dec 12, 2019
Apr 29, 2019
Apr 29, 2019
Sep 2, 2019
Oct 30, 2019
Aug 28, 2019
May 17, 2021
Nov 22, 2019
Oct 16, 2019
Dec 13, 2019
Dec 16, 2019
May 17, 2021
Apr 29, 2019
Mar 21, 2022
Dec 16, 2020
Sep 2, 2019
Sep 5, 2019

Repository files navigation

English | 简体中文

G

npm package npm downloads npm package npm downloads Percentage of issues still open

  • A powerful rendering engine for AntV providing canvas and svg draw.

✨ Features

  • Powerful and scalable rendering capability with built-in basic Graphics.
  • Excellent rendering performance and supports visualization scenarios with large amounts of data.
  • Complete simulation of browser DOM events, and no difference from native events.
  • Smooth animation implementation and rich configuration interfaces.
  • While providing Canvas and SVG version of implementation, and both of API basic consistent.

📦 Install

# Canvas version
$ npm install @antv/g-canvas --save

# SVG version
$ npm install @antv/g-svg --save

🔨 Usage

<div id="c1"></div>
import { Canvas } from '@antv/g-canvas';
// or use SVG version
// import { Canvas } from '@antv/g-svg';

const canvas = new Canvas({
  container: 'c1',
  width: 500,
  height: 500,
});

const group = canvas.addGroup();
group.addShape('circle', {
  attrs: {
    x: 100,
    y: 100,
    r: 50,
    fill: 'red',
    stroke: 'blue',
    lineWidth: 5,
  },
});

⌨️ Development

$ git clone git@github.com:antvis/g.git
$ cd g
$ npm install
$ npm run bootstrap
$ npm run build

About

A powerful rendering engine which providing Canvas and SVG draw for G2 & G6

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.9%
  • TypeScript 48.1%