customized-fabric 1.9.6 → 1.9.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -87,6 +87,7 @@ const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
|
|
87
87
|
});
|
88
88
|
maxLineWidth = Math.max(...this.textObject.__lineWidths);
|
89
89
|
}
|
90
|
+
this.textObject.set({ width: this.width - fontSize / 4 });
|
90
91
|
},
|
91
92
|
setText: function (text) {
|
92
93
|
this.textObject.set({
|
@@ -142,7 +143,7 @@ const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
|
|
142
143
|
},
|
143
144
|
setTextAttributes: function (options) {
|
144
145
|
this.textObject.set(options);
|
145
|
-
this.
|
146
|
+
this.fire("scaling");
|
146
147
|
},
|
147
148
|
getTextAttribute: function (attribute) {
|
148
149
|
return this.textObject.get(attribute);
|