KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
553 stars 147 forks source link

Add visualizer alignment option #210

Open giodamelio opened 4 years ago

giodamelio commented 4 years ago

First off I want to say how much of a fan of your calculator I am! I was introduced to it recently and have been using it a ton ever since.

This commit adds a option in the visualizer settings to adjust the alignment of the Sankey diagram. I find I prefer it to be left aligned a lot more so I figured I would contribute an option for it.

You can play around with my branch live here: https://5f645b0a27caae0008f365a2--kirkmcdonald-factorio-visualizer.netlify.app/calc.html#tab=graph&data=1-0-0&va=left&items=advanced-circuit:f:1

Sorry if this is a bit of a drive by PR with no discussion beforehand.