kangax/fabric.js — pull request #230 by davidjrice (2012-08-13 14:21:51+00:00)
Title: Move to using node-canvas 0.13.0

Currently node-canvas does not build on OSX (and therefore fabric does not).

canvas 0.13.0 was recently released, I've started looking at moving to it in this branch, however there is currently one additional **test failure** that is not happening in fabric.js#master I've been trying to locate what commit in node-canvas or fabric introduced this new failure as when I was building from node-canvas#master last week it was not present.

http://travis-ci.org/#!/davidjrice/fabric.js/jobs/2108676

Module: fabric.Image Test: toObject
at /home/vagrant/builds/davidjrice/fabric.js/test/unit/image.js:95:7
at /home/vagrant/builds/davidjrice/fabric.js/test/unit/image.js:51:7
at /home/vagrant/builds/davidjrice/fabric.js/test/unit/image.js:68:21
at [object Object]. (fs.js:123:5)
at [object Object].emit (events.js:64:17)
at Object.oncomplete (fs.js:1190:12)
Actual value:
{ type: 'image',
left: 0,
top: 0,
width: 276,
height: 110,
fill: 'rgb(0,0,0)',
overlayFill: null,
stroke: null,
strokeWidth: 1,
strokeDashArray: null,
scaleX: 1,
scaleY: 1,
angle: 0,
flipX: false,
flipY: false,
opacity: 1,
selectable: true,
hasControls: true,
hasBorders: true,
hasRotatingPoint: false,
filters: [] }
Expected value:
{ type: 'image',
left: 0,
top: 0,
width: 0,
height: 0,
fill: 'rgb(0,0,0)',
overlayFill: null,
stroke: null,
strokeWidth: 1,
strokeDashArray: null,
scaleX: 1,
scaleY: 1,
angle: 0,
flipX: false,
flipY: false,
opacity: 1,
selectable: true,
hasControls: true,
hasBorders: true,
hasRotatingPoint: false,
filters: [] }