malyan-ink
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

malyan-ink

这是一个基于 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

Dependencies (3)

Dev Dependencies (1)

Package Sidebar

Install

npm i malyan-ink

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

22.5 kB

Total Files

41

Last publish

Collaborators

  • xutong8