Fibonacci's series is a recurrence relation where by Valuen = Valuen-1 + Valuen-2. Each iteration generates a square (<rect> element) with hieght & width of Valuen, plus a curve (<path> element) with radius Valuen.

Wrapping each iteration's <rect> and <path> in a <g>roup allows us to rotate both elements at the same time. This might normally be done in CSS, but IE10 doesn't obey so a different technique was used: adding inline SVG transform attributes as each <g>roup is created in the directive's link function

Because we're rotating with each iteration, <g>roup X and Y starting coordinates are relatively easy to calculate. Xn and Yn depend on attributes of their siblings:
Xn = +( Yn-1 )
Yn = -( Widthn-2 + Yn-2 )

Resulting Fibonacci series:
{{ series(iterations) | json }}