chrisprice/t-d3fc

Better support for nesting elements

Opened this issue · 0 comments

Currently it is very verbose -

L().attr({x1:20*s(-t/6e4*2*π+π),y1:20*c(-t/6e4*2*π+π),x2:100*s(-t/6e4*2*π),y2:100*c(-t/6e4*2*π)}).style({stroke:'red','stroke-width':'3px'});_=G().a({[tr]:ts(100*s(-t/6e4*2*π),100*c(-t/6e4*2*π))});z=_.selectAll('circle').data([0]);z.enter().append('circle');z.attr({r:10}).style({fill:'red',stroke:'red'});$=_.selectAll('g line').data([1]);$.enter().append('line');$.attr({x2:10*s(-t/1e3*2*π),y2:10*c(-t/1e3*2*π)})
rn(5).reduce(g=>(g.A('circle').a({r:1}),g.A('g')),G().e)
g.S('g').a({[tr]:(d,i)=>sc(e)+ts(2*s(t/w),2*c(t/w))})http://