soccer-jersey-fork 1.0.28 → 1.0.30

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.
@@ -18,6 +18,6 @@ export interface DrawSoccerJerseyProps {
18
18
  imageX?: number;
19
19
  imageY?: number;
20
20
  shortsColor: string;
21
- withDefaultBadge?: boolean;
21
+ withBadge?: boolean;
22
22
  withShorts?: boolean;
23
23
  }
@@ -27,4 +27,4 @@ import { DrawSoccerJerseyProps } from "../types";
27
27
  * @return {string} A data URL ready for direct use as src attribute
28
28
  * on <img />
29
29
  */
30
- export default function drawSoccerJersey({ shirtText, textColor, textOutlineColor, textBackgroundColor, shirtColor, sleeveColor, shirtStyle, shirtStyleColor, shirtStyleDirection, isBack, shirtWidth, collarColor, sleeveCuffColor, shortsColor, image, imageHeight, imageWidth, imageX, imageY, withDefaultBadge, withShorts, }: DrawSoccerJerseyProps): string;
30
+ export default function drawSoccerJersey({ shirtText, textColor, textOutlineColor, textBackgroundColor, shirtColor, sleeveColor, shirtStyle, shirtStyleColor, shirtStyleDirection, isBack, shirtWidth, collarColor, sleeveCuffColor, shortsColor, image, imageHeight, imageWidth, imageX, imageY, withBadge, withShorts, }: DrawSoccerJerseyProps): string;
@@ -30,7 +30,7 @@ import { drawHoops, drawSingleBand, drawStriped, drawCheckered, drawTwoColor, dr
30
30
  * @return {string} A data URL ready for direct use as src attribute
31
31
  * on <img />
32
32
  */
33
- export default function drawSoccerJersey({ shirtText, textColor, textOutlineColor, textBackgroundColor, shirtColor = "plain", sleeveColor, shirtStyle, shirtStyleColor, shirtStyleDirection, isBack = false, shirtWidth = 200, collarColor, sleeveCuffColor, shortsColor, image, imageHeight, imageWidth, imageX, imageY, withDefaultBadge = true, withShorts = true, }) {
33
+ export default function drawSoccerJersey({ shirtText, textColor, textOutlineColor, textBackgroundColor, shirtColor = "plain", sleeveColor, shirtStyle, shirtStyleColor, shirtStyleDirection, isBack = false, shirtWidth = 200, collarColor, sleeveCuffColor, shortsColor, image, imageHeight, imageWidth, imageX, imageY, withBadge, withShorts = true, }) {
34
34
  // Colors and Color Optimizations
35
35
  const optimizedSleeveColor = lightenDarkenColor(sleeveColor, -10);
36
36
  const optimizedShirtColor = lightenDarkenColor(shirtColor, -10);
@@ -104,7 +104,7 @@ export default function drawSoccerJersey({ shirtText, textColor, textOutlineColo
104
104
  .size(imageWidth || 20, imageHeight || 20)
105
105
  .move(imageX || 40, imageY || 45);
106
106
  }
107
- if (withDefaultBadge) {
107
+ if (withBadge) {
108
108
  page
109
109
  .circle(8)
110
110
  .fill(lightenDarkenColor(optimizedShirtColor, 60))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soccer-jersey-fork",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Generate soccer jerseys in SVG format",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {