Fix SVG export

This commit is contained in:
arne 2024-07-19 00:39:05 +02:00
commit aeae5c6771

View file

@ -80,8 +80,6 @@ const scene = sync({
[xPadding, yPadding] [xPadding, yPadding]
) )
console.log(asSvg(svgDoc({ viewBox: `0 0 ${size[0]} ${size[1]}` }, scene)))
return scene return scene
}) })
@ -110,5 +108,12 @@ $compile(
value: ys_, value: ys_,
oninput: $input(ys) oninput: $input(ys)
}]]], }]]],
["h2", {}, "SVG Export"],
["div", {},
["textarea", {
value: scene.map((scene) => asSvg(svgDoc({ viewBox: `0 0 ${size[0]} ${size[1]}` }, scene))),
cols: 80,
rows: 20
}]]
] ]
).mount(document.body) ).mount(document.body)