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.
@@ -33,6 +33,7 @@ export declare const toCurvedTextObject: (object: CurvedText) => {
33
33
  pathSide: any;
34
34
  positionAngle: any;
35
35
  isAllCapital: any;
36
+ strokeLineJoin: string | undefined;
36
37
  };
37
38
  };
38
39
  export default class CurvedText extends fabric.Group {
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",