@antv/g-canvas
A canvas library which providing 2d
Last updated 5 years ago by dengfuping .
ISC · Repository · Bugs · Original npm
$ cnpm install @antv/g-canvas 
SYNC missed versions from official npm registry.

English | 简体中文

g-canvas

npm package npm downloads Percentage of issues still open

  • A canvas library which providing 2d draw for AntV.

✨ 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.

???? Install

$ npm install @antv/g-canvas --save

???? Usage

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

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,
  },
});

Current Tags

  • 1.9.31                                ...           latest (3 years ago)

14 Versions

  • 1.9.31                                ...           3 years ago
  • 0.5.13                                ...           3 years ago
  • 1.1.8-alpha.2                                ...           3 years ago
  • 1.8.5                                ...           3 years ago
  • 0.4.15                                ...           5 years ago
  • 1.0.0-alpha.38                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.0-alpha.0                                ...           4 years ago
  • 0.5.12                                ...           4 years ago
  • 0.5.6                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.5.7                                ...           4 years ago
  • 0.5.0-beta.4                                ...           5 years ago
  • 0.5.0                                ...           5 years ago

Copyright 2013 - present © cnpmjs.org