some removes

This commit is contained in:
Anton Lavrenov 2018-04-24 14:10:28 +08:00
parent 7d5e0024be
commit c7b9e9a385
3 changed files with 9 additions and 13 deletions

View File

@ -14880,7 +14880,6 @@
shouldAddEllipsis = this.getEllipsis() && !shouldWrap;
this.textArr = [];
getDummyContext().save();
getDummyContext().font = this._getContextFont();
for (var i = 0, max = lines.length; i < max; ++i) {
var line = lines[i];
@ -14916,10 +14915,10 @@
}
}
/*
* 'low' is now the index of the substring end
* 'match' is the substring
* 'matchWidth' is the substring width in px
*/
* 'low' is now the index of the substring end
* 'match' is the substring
* 'matchWidth' is the substring width in px
*/
if (match) {
// a fitting substring was found
if (wrapAtWord) {
@ -14975,7 +14974,6 @@
break;
}
}
getDummyContext().restore();
this.textHeight = fontSize;
// var maxTextWidth = 0;
// for(var j = 0; j < this.textArr.length; j++) {

2
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -344,7 +344,6 @@
shouldAddEllipsis = this.getEllipsis() && !shouldWrap;
this.textArr = [];
getDummyContext().save();
getDummyContext().font = this._getContextFont();
for (var i = 0, max = lines.length; i < max; ++i) {
var line = lines[i];
@ -380,10 +379,10 @@
}
}
/*
* 'low' is now the index of the substring end
* 'match' is the substring
* 'matchWidth' is the substring width in px
*/
* 'low' is now the index of the substring end
* 'match' is the substring
* 'matchWidth' is the substring width in px
*/
if (match) {
// a fitting substring was found
if (wrapAtWord) {
@ -439,7 +438,6 @@
break;
}
}
getDummyContext().restore();
this.textHeight = fontSize;
// var maxTextWidth = 0;
// for(var j = 0; j < this.textArr.length; j++) {