soccer-jersey-fork 1.0.49 → 1.0.51

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.
@@ -255,5 +255,5 @@ export const drawShortsSideStriped = (page, primaryColor, secondaryColor) => {
255
255
  };
256
256
  export function addShoulderStriped(page, color) {
257
257
  page.path(`m 17 10, l 18 -9`).stroke({ width: 2, color, linecap: "butt" });
258
- page.path(`m 83 10, l -18 -9`).stroke({ width: 2, color, linecap: "butt" });
258
+ page.path(`m 83 9, l -18 -9`).stroke({ width: 2, color, linecap: "butt" });
259
259
  }
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export interface DrawSoccerJerseyProps {
7
7
  shirtText?: string;
8
- textColor: string;
8
+ textColor?: string;
9
9
  textOutlineColor?: string;
10
10
  textBackgroundColor?: string;
11
11
  shirtColor: string;
@@ -181,8 +181,8 @@ export default function drawSoccerJersey({ shirtText, textColor, textOutlineColo
181
181
  drawText(page);
182
182
  }
183
183
  if (shoulderStyle) {
184
- switch (shortsStyle) {
185
- case "sideStriped": {
184
+ switch (shoulderStyle) {
185
+ case "striped": {
186
186
  addShoulderStriped(page, shoulderStyleColor || "red");
187
187
  }
188
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soccer-jersey-fork",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Generate soccer jerseys in SVG format",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {