Skip to content

Commit

Permalink
Fix: updated svg builder to avoid bundling err
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Jun 15, 2024
1 parent cd40989 commit b72943c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/svg-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ function buildCell(w, h, lineColor, strokeWidth, dashArray) {
}
function buildPage(w, h, page, pat) {
if (!page) return pat;

const p = `<defs>
<pattern id="Pattern" x="0" y="0" width="${w}" height="${h}" patternUnits="userSpaceOnUse">
${pat}
</pattern>
</defs>
<rect fill="url(#Pattern)" stroke="black" width="${page.width}" height="${page.height}"/>
`;
const p = `<defs><pattern id="Pattern" x="0" y="0" width="${w}" height="${h}" patternUnits="userSpaceOnUse">${pat}</pattern></defs><rect fill="url(#Pattern)" stroke="black" width="${page.width}" height="${page.height}"/>`;
return p;
}
function buildGridSvg(
Expand Down

0 comments on commit b72943c

Please sign in to comment.