This is bananas.  I hadn't seen the source article, thanks for posting this sample.  I was able to grab your component from Github and try it in minutes.  Time to get good with SVG math I guess...