bizweekgraphics / swoopyarrows

swoopyarrows makes swoopy arrows between things
http://bizweekgraphics.com/swoopyarrows
The Unlicense
106 stars 7 forks source link

Factor out path-math logic #23

Closed tophtucker closed 8 years ago

tophtucker commented 10 years ago

I can continue using my axis metaphor, but need to introduce a "scale" — i.e. I will separate out the path logic into an object you pass into the DOM-manipulator drawing object. You pass an axis a scale, or you can just access the naked scale, or just let the axis use a default scale. So you'll be able to just access the naked math for getting a circular arc, or get the whole packaged dealio. And then I can write different logic for doing a random walk arrow and you can just pass it in.