soccer-jersey-fork 1.0.95 → 1.0.96
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/patterns/patterns.js
CHANGED
|
@@ -237,6 +237,15 @@ export const drawWaves = (page, primaryColor, secondaryColor, waveStyle) => {
|
|
|
237
237
|
add.rect(6, 14).fill(secondaryColor).move(3, 9).rotate(15);
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
+
// function drawDownArrow() {
|
|
241
|
+
// return page.pattern(100, 20, function (add) {
|
|
242
|
+
// add.rect(100, 20).fill(primaryColor);
|
|
243
|
+
// // left arrow line
|
|
244
|
+
// add.rect(40, 3).move(0, 0).move(12, 15).fill(secondaryColor).rotate(-20);
|
|
245
|
+
// // right arrow line
|
|
246
|
+
// add.rect(40, 3).move(0, 0).move(49, 15).fill(secondaryColor).rotate(20);
|
|
247
|
+
// });
|
|
248
|
+
// }
|
|
240
249
|
switch (waveStyle) {
|
|
241
250
|
case "horizontal":
|
|
242
251
|
return page.pattern(20, 12, function (add) {
|
|
@@ -291,15 +300,6 @@ export const addShortSideColor = (page, color) => {
|
|
|
291
300
|
.stroke({ width: 2, color, linecap: "butt" });
|
|
292
301
|
};
|
|
293
302
|
export function addShoulderSideColor(page, color) {
|
|
294
|
-
// page
|
|
295
|
-
// .path(`m 2 35, l 16.5 -26, 19 -8`)
|
|
296
|
-
// .fill("none")
|
|
297
|
-
// .stroke({ width: 1, color, linecap: "butt" });
|
|
298
|
-
// page
|
|
299
|
-
// .path(`m 4 36, l 16.5 -25, 19 -8`)
|
|
300
|
-
// .fill("none")
|
|
301
|
-
// .stroke({ width: 1, color, linecap: "butt" });
|
|
302
|
-
// left
|
|
303
303
|
page
|
|
304
304
|
.path(`m 0 35, l 16.5 -26, 19 -8`)
|
|
305
305
|
.fill("none")
|
|
@@ -59,7 +59,7 @@ export default function drawSoccerJersey({ shirtColor = "plain", shirtStyle, shi
|
|
|
59
59
|
/**
|
|
60
60
|
* The points start from the left then spread out to the leftest
|
|
61
61
|
*/
|
|
62
|
-
.path("m36 0.5 l -
|
|
62
|
+
.path("m36.5 0.5 l -6 5 15 9 l 3 -5 3 0 3 5 15 -9 -6 -5 c -10 10 -25 5 -27.5 0")
|
|
63
63
|
.fill(collarColor || "#eee")
|
|
64
64
|
.stroke({
|
|
65
65
|
color: collarColor,
|