Remove personal prettier changes

remove more personal prettier changes

remove personal prettier changes
This commit is contained in:
Adam Greenan 2024-12-11 13:37:28 +00:00
parent a24b30b110
commit 505348099d

View File

@ -383,8 +383,7 @@ export class Text extends Shape<TextConfig> {
return isAuto ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
}
getHeight() {
const isAuto =
this.attrs.height === AUTO || this.attrs.height === undefined;
const isAuto = this.attrs.height === AUTO || this.attrs.height === undefined;
return isAuto
? this.fontSize() * this.textArr.length * this.lineHeight() +
this.padding() * 2
@ -502,9 +501,7 @@ export class Text extends Shape<TextConfig> {
this.textArr = [];
getDummyContext().font = this._getContextFont();
const additionalWidth = shouldAddEllipsis
? this._getTextWidth(ELLIPSIS)
: 0;
const additionalWidth = shouldAddEllipsis ? this._getTextWidth(ELLIPSIS) : 0;
for (let i = 0, max = lines.length; i < max; ++i) {
let line = lines[i];