diff --git a/konva.js b/konva.js index bb7c0806..2ddbf7aa 100644 --- a/konva.js +++ b/konva.js @@ -11412,6 +11412,7 @@ Text.prototype.getTextWidth = function () { return this.textWidth; }; + // TODO: deprecate and remove the method /** * get height of one line of text * @method @@ -11421,6 +11422,7 @@ Text.prototype.getTextHeight = function () { return this.textHeight; }; + // TODO: make it public? Text.prototype._getTextSize = function (text) { var _context = getDummyContext(), fontSize = this.fontSize(), metrics; _context.save(); diff --git a/package.json b/package.json index 025ad717..b66ec083 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "konva", - "version": "3.0.0", + "version": "2.6.0", "author": "Anton Lavrenov", "files": [ "README.md", diff --git a/src/shapes/Text.ts b/src/shapes/Text.ts index 4c791a45..5645c2b2 100644 --- a/src/shapes/Text.ts +++ b/src/shapes/Text.ts @@ -275,6 +275,7 @@ export class Text extends Shape { getTextWidth() { return this.textWidth; } + // TODO: deprecate and remove the method /** * get height of one line of text * @method @@ -284,6 +285,8 @@ export class Text extends Shape { getTextHeight() { return this.textHeight; } + + // TODO: make it public? _getTextSize(text) { var _context = getDummyContext(), fontSize = this.fontSize(), diff --git a/test/performance/bunnies.html b/test/performance/bunnies.html index 51ed182a..39ba003b 100644 --- a/test/performance/bunnies.html +++ b/test/performance/bunnies.html @@ -1,4 +1,4 @@ - +
- - - - + + - \ No newline at end of file +