customized-fabric 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,9 +51,6 @@ const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
|
|
51
51
|
layerId: options?.personalizeId ?? options?.layerId,
|
52
52
|
objectCaching: false,
|
53
53
|
});
|
54
|
-
this.textObject.set({
|
55
|
-
width: this.width,
|
56
|
-
});
|
57
54
|
if (options?.isOriginal) {
|
58
55
|
this.rectObject?.set({ strokeWidth: 0 });
|
59
56
|
}
|
@@ -62,13 +59,10 @@ const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
|
|
62
59
|
this.rectObject?.set({ strokeWidth: 0 });
|
63
60
|
}
|
64
61
|
if (options?.fontUrl) {
|
65
|
-
(0, utils_1.loadFontFromUrl)(options?.fontUrl, text?.fontFamily ?? "")
|
66
|
-
this.autoChangeFontSize(0.1);
|
67
|
-
this.canvas?.renderAll?.();
|
68
|
-
});
|
62
|
+
(0, utils_1.loadFontFromUrl)(options?.fontUrl, text?.fontFamily ?? "");
|
69
63
|
}
|
70
64
|
}
|
71
|
-
this.
|
65
|
+
this.fire("scaling");
|
72
66
|
},
|
73
67
|
autoChangeFontSize: function (changeSpeed) {
|
74
68
|
if (this.width <= this.textObject.__lineWidths ||
|