Skip to content

Commit

Permalink
Two stripe jersey
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkennedy22 committed Jun 9, 2024
1 parent 8f62383 commit bea64dc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/display-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const clipToParent = (
const baseShape = unitePaths(findPathItems(parentElement.clone()));

const smallChildren = findPathItems(clippedItem);
console.log("smallChildren", { smallChildren });
const childGroup = new paper.Group();
for (const child of smallChildren) {
// child.stroke = null;
Expand Down Expand Up @@ -144,8 +143,6 @@ export const getOuterStroke = (svgElement: SVGElement): paper.Path => {
unitedPath.fillColor = new paper.Color("transparent");
unitedPath.miterLimit = 1;

console.log("getOuterStroke", { importedItem, unitedPath, pathItems });

// Remove the imported item and its children from the project
importedItem.remove();

Expand All @@ -168,12 +165,6 @@ export const getShadowFromStroke = (
shadowPath.opacity = 0.25;
shadowPath.width *= 0.75;
shadowPath.position.y += 10;
console.log("shadowPath", {
shadowPath,
bodyColor,
svgElement,
shadowPathFill: shadowPath.fillColor,
});
return shadowPath;
};

Expand Down
11 changes: 11 additions & 0 deletions svgs/jersey/football-two-stripe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions tools/lib/svg-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ export const svgMetadata = {
sport: "football",
legacyName: "football",
},
"football-two-stripe": {
gender: "both",
sport: "football",
legacyName: "football5",
},
"football-three-stripe": {
gender: "both",
sport: "football",
Expand Down

0 comments on commit bea64dc

Please sign in to comment.