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

Settings object in API #47

Closed edemaine closed 2 years ago

edemaine commented 5 years ago

Currently, to change something like keepMargins (normally set by a command-line option), you need to change a global Drawing.keepMargins. Instead, we should be passing around a settings object with keys like keepMargins, so that it's easier to use in API mode (e.g. in GUI with multiple tabs each with different settings).