Skip to content

Commit

Permalink
Merge pull request #7 from tomjn/patch-1
Browse files Browse the repository at this point in the history
Use currentColor
  • Loading branch information
maxwellito authored Aug 21, 2024
2 parents 924ec83 + 367ca0a commit 08e12ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/surface/surface.cmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,11 @@ export function generateBaseSVG(data: ProjectItem) {
<svg data-ref="svg" xmlns="http://www.w3.org/2000/svg" class="surface" viewBox="${viewBox.join(' ')}">
<defs>
<pattern width="${100 / data.width}%" height="${100 / data.height}%" viewBox="0,0,${gap},${gap}" id="${id}">
<circle cx="${0.5 * gap}" cy="${0.5 * gap}" r="1" fill="#000"></circle>
<circle cx="${0.5 * gap}" cy="${0.5 * gap}" r="1" fill="currentColor"></circle>
</pattern>
</defs>
<rect data-ref="dots" x="0" y="0" width="${data.width * gap}" height="${data.height * gap}" fill="url('#${id}')"></rect>
<g data-ref="content" stroke="black" stroke-linecap="round" fill="none" stroke-width="${data.thickness}">${data.content}</g>
<g data-ref="content" stroke="currentColor" stroke-linecap="round" fill="none" stroke-width="${data.thickness}">${data.content}</g>
</svg>
`;
}
}

0 comments on commit 08e12ca

Please sign in to comment.