You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3...@googlegroups.com
Why don't use two arrays, one for living and one for dead, containing just id's?
Your structure:
{living: 5, dead: 1} =>
[{id: 1, type : living}, {id: 2, type : living},
{id: 3, type : living}, {id: 4, type : living},
{id: 5, type : living}, {id: 6, type : dead}]
Becomes something like:
{living:[1, 2, 3, 4, 5], dead:[6]}
And for new id's you just increment a counter.
Daniel
unread,
Sep 26, 2011, 11:04:16 AM9/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3-js
Jason: Ahh, of course. Forgot the .js part :=)
Chris: Thanks for the suggestion, this will probably make it easier to
keep track of which symbol to tween. But perhaps I'm still making it
more complex than necessary?