soccer-jersey-fork 1.0.85 → 1.0.86
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.
package/lib/types/index.d.ts
CHANGED
|
@@ -43,5 +43,5 @@ export interface DrawSoccerJerseyProps {
|
|
|
43
43
|
withShorts?: boolean;
|
|
44
44
|
}
|
|
45
45
|
export type ShirtStyleDirection = "diagonalRight" | "diagonalLeft" | "horizontal" | "vertical";
|
|
46
|
-
export type ShirtStyle = "plain" | "twoColors" | "striped" | "stripedThin" | "stripedThick" | "waves" | "checkered" | "checkeredBig" | "diamonds" | "singleBandThin" | "singleBand" | "dashed" | "cross";
|
|
46
|
+
export type ShirtStyle = "plain" | "twoColors" | "contrastingTwoColors" | "striped" | "stripedThin" | "stripedThick" | "waves" | "checkered" | "checkeredBig" | "diamonds" | "singleBandThin" | "singleBand" | "dashed" | "cross";
|
|
47
47
|
export type SleeveStyle = ShirtStyle;
|
|
@@ -81,7 +81,7 @@ export default function drawSoccerJersey({ shirtColor = "plain", sleeveColor = s
|
|
|
81
81
|
page.circle(8).fill(lightenDarkenColor(shirtColor, 60)).move(64, 25);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
const optimizedSleeveColor = lightenDarkenColor(sleeveColor, -
|
|
84
|
+
const optimizedSleeveColor = lightenDarkenColor(sleeveColor, -5);
|
|
85
85
|
sleeveStyleColor = sleeveStyleColor || "#eee";
|
|
86
86
|
sleeveStyleDirection = sleeveStyleDirection || "vertical";
|
|
87
87
|
const sleeveFill = getPatternFill(page, optimizedSleeveColor, sleeveStyle, sleeveStyleColor, "sleeve", sleeveStyleDirection);
|
|
@@ -211,6 +211,8 @@ function getPatternFill(page, baseColor, style, styleColor, type, styleDirection
|
|
|
211
211
|
return drawCheckered(page, baseColor, styleColor, "sm", styleDirection);
|
|
212
212
|
case "checkeredBig":
|
|
213
213
|
return drawCheckered(page, baseColor, styleColor, "lg", styleDirection);
|
|
214
|
+
case "contrastingTwoColors":
|
|
215
|
+
return drawCheckered(page, baseColor, styleColor, "lg", styleDirection);
|
|
214
216
|
case "diamonds":
|
|
215
217
|
return drawDiamonds(page, baseColor, styleColor);
|
|
216
218
|
case "singleBand":
|