mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 20:34:45 +00:00
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:
parent
31e3ae7bb7
commit
a64f622e61
2 changed files with 12 additions and 1 deletions
3
dist/all.js
vendored
3
dist/all.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue