customized-fabric 2.0.12 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,8 +34,6 @@ const CurvedTextClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group,
|
|
34
34
|
maxFontSize: 200,
|
35
35
|
...text,
|
36
36
|
text: isAllCapital ? fullText.toUpperCase() : fullText,
|
37
|
-
strokeLineJoin: "round",
|
38
|
-
strokeLineCap: "round",
|
39
37
|
});
|
40
38
|
const group = new fabric_1.fabric.Group([this.rectObject, this.textObject]);
|
41
39
|
this.set({
|
@@ -224,6 +222,7 @@ const toCurvedTextObject = (object) => {
|
|
224
222
|
pathSide: textObject?.pathSide,
|
225
223
|
positionAngle: textObject?.positionAngle,
|
226
224
|
isAllCapital: textObject?.isAllCapital,
|
225
|
+
strokeLineJoin: textObject?.strokeLineJoin,
|
227
226
|
},
|
228
227
|
};
|
229
228
|
};
|
@@ -32,6 +32,7 @@ export declare const toTextInputObject: (object: TextInput) => {
|
|
32
32
|
isAllCapital: any;
|
33
33
|
lineHeight: number | undefined;
|
34
34
|
charSpacing: number | undefined;
|
35
|
+
strokeLineJoin: string | undefined;
|
35
36
|
};
|
36
37
|
};
|
37
38
|
export default class TextInput extends fabric.Group {
|
@@ -30,8 +30,6 @@ const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
|
|
30
30
|
paintFirst: "stroke",
|
31
31
|
lineHeight: lineHeight ?? 1,
|
32
32
|
charSpacing: charSpacing ?? 0,
|
33
|
-
strokeLineJoin: "round",
|
34
|
-
strokeLineCap: "round",
|
35
33
|
});
|
36
34
|
const group = new fabric_1.fabric.Group([this.rectObject, this.textObject]);
|
37
35
|
this.set(group);
|
@@ -190,6 +188,7 @@ const toTextInputObject = (object) => {
|
|
190
188
|
isAllCapital: textObject?.isAllCapital,
|
191
189
|
lineHeight: textObject?.lineHeight,
|
192
190
|
charSpacing: textObject?.charSpacing,
|
191
|
+
strokeLineJoin: textObject?.strokeLineJoin,
|
193
192
|
},
|
194
193
|
};
|
195
194
|
};
|