finishes trail printing

This commit is contained in:
Christian Beutel
2024-04-12 00:25:26 +02:00
parent 71d548b9d6
commit f9f8998617
20 changed files with 643 additions and 39 deletions

View File

@@ -4,6 +4,7 @@ export function createRect(
width: number,
height: number,
fill: string,
border?: string,
) {
const svgns = "http://www.w3.org/2000/svg";
@@ -12,7 +13,7 @@ export function createRect(
rect.setAttribute("y", y.toString());
rect.setAttribute("width", width.toString());
rect.setAttribute("height", height.toString());
rect.setAttribute("fill", fill);
rect.setAttribute("style", `fill:${fill};stroke-width:1;stroke:${border ?? ''}`);
return rect;
}