vai-canvass

0.0.6 • Public • Published

vai-canvas

这是一个基于 canvas 轻度封装的库,它抽象了各种形状,Canvas 以及事件处理机制等。

Examples

const canvas: Canvas = new Canvas('force_canvas', {
      width: 200,
      height: 200
    });

const circle = new Circle({
  x: 50,
  y: 50,
  r: 5,
  fillStyle: 'red
}, canvas);

canvas.addChild(circle);
canvas.draw();

Api 用法

TODO

Readme

Keywords

Package Sidebar

Install

npm i vai-canvass

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

13.8 kB

Total Files

31

Last publish

Collaborators

  • xutong8