Skip to content

Commit

Permalink
GText draw uses the short transformation matrix version.
Browse files Browse the repository at this point in the history
  • Loading branch information
stebanos committed May 2, 2018
1 parent e6e46fc commit e35c086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/vg/objects/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ GText.prototype.draw = function (ctx) {
ctx.font = this._getFont();
ctx.textAlign = this.textAlign;
var m = this.transform.m;
ctx.transform(m[0], m[1], m[3], m[4], m[6], m[7]);
ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
ctx.fillStyle = Color.toCSS(this.fill);
ctx.fillText(this.text, this._x, this._y);
ctx.restore();
Expand Down

0 comments on commit e35c086

Please sign in to comment.