mirror of
https://github.com/konvajs/konva.git
synced 2026-01-08 18:54:40 +08:00
fix watch mode
This commit is contained in:
@@ -365,9 +365,7 @@ export class Text extends Shape {
|
||||
|
||||
this.textArr = [];
|
||||
getDummyContext().font = this._getContextFont();
|
||||
var additionalWidth = shouldAddEllipsis
|
||||
? this._getTextWidth(ELLIPSIS)
|
||||
: 0;
|
||||
var additionalWidth = shouldAddEllipsis ? this._getTextWidth(ELLIPSIS) : 0;
|
||||
for (var i = 0, max = lines.length; i < max; ++i) {
|
||||
var line = lines[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user