Fix SVG export
This commit is contained in:
parent
c9f38a09cc
commit
aeae5c6771
1 changed files with 7 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue