customized-fabric 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -69,7 +69,7 @@ const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
|
|
69
69
|
},
|
70
70
|
autoChangeFontSize: function (changeSpeed) {
|
71
71
|
let maxLineWidth = Math.max(...this.textObject.__lineWidths);
|
72
|
-
let fontSize = this.textObject.fontSize;
|
72
|
+
let fontSize = this.textObject.fontSize ?? 0;
|
73
73
|
while (this.width - fontSize / 4 < maxLineWidth ||
|
74
74
|
this.height < this.textObject.height) {
|
75
75
|
fontSize -= changeSpeed;
|