edemaine / svgtiler

Tool for drawing diagrams on a grid, combining grids of SVGs into a big SVG figure
MIT License
61 stars 6 forks source link

svgtiler.def should return a helper object #92

Closed edemaine closed 2 years ago

edemaine commented 2 years ago

Manually converting ids to url(#...)s for every def seems ugly:

https://github.com/edemaine/svgtiler/blob/61ad1d7bb8b940de2eb29191e7942c371cef648b/examples/grid-graph/path.coffee#L29

Let's have svgtiler.def instead return an object def with helpers: