mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-01 21:30:24 +00:00
For example, instead of:
canvas.observe('object:selected', function(o) {
console.log('selected', o.target);
})
you can now do:
object.on('selected', function() {
console.log('selected', object);
});
Events that are fired on objects are:
- mouseup
- mousedown
- mousemove
- rotating
- scaling
- moving
- modified
- selected
- added
22 lines
No EOL
707 B
JSON
22 lines
No EOL
707 B
JSON
{
|
|
"name": "fabric",
|
|
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
|
|
"version": "0.8.34",
|
|
"author": "Juriy Zaytsev <kangax@gmail.com>",
|
|
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
|
|
"repository": "git://github.com/kangax/fabric.js",
|
|
"licenses": [{
|
|
"type": "MIT",
|
|
"url": "http://github.com/kangax/fabric.js/raw/master/LICENSE"
|
|
}],
|
|
"scripts": {
|
|
"build": "node build.js modules=ALL"
|
|
},
|
|
"dependencies": {
|
|
"canvas": ">=0.8.1",
|
|
"jsdom": ">=0.2.3",
|
|
"xmldom": ">=0.1.7"
|
|
},
|
|
"engines": { "node": ">= 0.4.0 && <= 0.6.18" },
|
|
"main": "./dist/all.js"
|
|
} |