add docs, change perf test

This commit is contained in:
Anton Lavrenov
2019-01-24 08:45:17 -05:00
parent a81f9ec1f9
commit d726c5d6f3
4 changed files with 135 additions and 151 deletions

View File

@@ -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(),