0.0.2 • Published 5 years ago

canvanim v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Welcome

Welcome to the CanvAnim v1.0.4 documentation.

About

Canvanim is a powerful Node.js module for the front-end.

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

npm i canvanim

Example usage

const el = document.querySelector("canvas.canvanim")
const area = new CanvAnim(el, {
    width: 500,
    height: 300
})

let rect = area.createRectangle(50, 50, 100, 150, {
    backgroundColor: "red",
    borderWidth: 2
})
rect.bbox.on("click", (e) => {
    console.log(`Click in Rectangle in ${e.x}:${e.y}`)
})

Links

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to ask me at the adress canvanim.js@gmail.com

0.0.2

5 years ago

0.0.1

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago