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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",