Skip to content

Commit

Permalink
Version 0.1.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdb committed May 8, 2018
1 parent c37a9e4 commit 3c33f46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/g.js
Original file line number Diff line number Diff line change
Expand Up @@ -24399,7 +24399,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 Expand Up @@ -24438,6 +24438,9 @@ GText.prototype.toSVG = function () {
if (this.fill !== 'black') {
svg += ' fill="' + Color.toCSS(this.fill) + '"';
}
if (!this.transform.isIdentity()) {
svg += ' transform="matrix(' + this.transform.m.join(',') + ')"';
}
svg += '>';
svg += this.text;
svg += '</text>';
Expand Down
2 changes: 1 addition & 1 deletion dist/g.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "g.js",
"version": "0.1.10",
"version": "0.1.11",
"description": "Graphic Objects Library",
"main": "src/g.js",
"scripts": {
Expand Down

0 comments on commit 3c33f46

Please sign in to comment.