Bump version to 0.3. Experiment with using native canvas fillText for fabric.Text. Turns out multiline text is not supported natively. Will experiment more.

This commit is contained in:
kangax 2011-06-30 14:37:39 -04:00
parent 31e3ae7bb7
commit a64f622e61
2 changed files with 12 additions and 1 deletions

3
dist/all.js vendored
View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2011, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.2.8" };
var fabric = fabric || { version: "0.3" };
/**
* Wrapper around `console.log` (when available)
@ -9708,6 +9708,7 @@ fabric.util.animate = animate;
this.setCoords();
},
/**
* @private
* @method _initDummyElement

View file

@ -132,6 +132,16 @@
this.setCoords();
},
// _render: function(context) {
// context.fillStyle = this.fill;
// context.font = this.fontsize + 'px ' + this.fontFamily;
// this.transform(context);
// this.width = context.measureText(this.text).width;
// this.height = this.fontsize;
// context.fillText(this.text, -this.width / 2, 0);
// this.setCoords();
// },
/**
* @private
* @method _initDummyElement