soccer-jersey-fork 1.0.72 → 1.0.74
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,4 +43,4 @@ export interface DrawSoccerJerseyProps {
|
|
|
43
43
|
}
|
|
44
44
|
export type ShirtStyleDirection = "diagonalRight" | "diagonalLeft" | "horizontal" | "vertical";
|
|
45
45
|
export type ShirtStyle = "plain" | "twoColors" | "striped" | "stripedThin" | "stripedThick" | "waves" | "checkered" | "diamonds" | "singleBandThin" | "singleBand" | "dashed" | "cross";
|
|
46
|
-
export type SleeveStyle = "plain" | "striped" | "stripedThin";
|
|
46
|
+
export type SleeveStyle = "plain" | "striped" | "stripedThin" | "stripedThick";
|
|
@@ -114,7 +114,7 @@ export default function drawSoccerJersey({ shirtColor = "plain", sleeveColor, sh
|
|
|
114
114
|
}
|
|
115
115
|
const optimizedSleeveColor = lightenDarkenColor(sleeveColor, -10);
|
|
116
116
|
let sleeveFill;
|
|
117
|
-
sleeveStyleColor = sleeveStyleColor ||
|
|
117
|
+
sleeveStyleColor = sleeveStyleColor || "#eee";
|
|
118
118
|
switch (sleeveStyle) {
|
|
119
119
|
case "striped": {
|
|
120
120
|
sleeveFill = drawStriped(page, optimizedSleeveColor, sleeveStyleColor, sleeveStyleDirection || "horizontal", "normal");
|
|
@@ -124,6 +124,10 @@ export default function drawSoccerJersey({ shirtColor = "plain", sleeveColor, sh
|
|
|
124
124
|
sleeveFill = drawStriped(page, optimizedSleeveColor, sleeveStyleColor, sleeveStyleDirection || "horizontal", "thin");
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
|
+
case "stripedThick": {
|
|
128
|
+
sleeveFill = drawStriped(page, optimizedSleeveColor, sleeveStyleColor, sleeveStyleDirection || "horizontal", "thick");
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
127
131
|
default: {
|
|
128
132
|
sleeveFill = optimizedSleeveColor;
|
|
129
133
|
}
|