mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
some removes
This commit is contained in:
parent
7d5e0024be
commit
c7b9e9a385
10
konva.js
10
konva.js
@ -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
2
konva.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user