samizdatco / arbor

a graph visualization library using web workers and jQuery
http://arborjs.org
2.66k stars 635 forks source link

Tweening of Edges #47

Open pramttl opened 11 years ago

pramttl commented 11 years ago

I have tried tweening a node, which works fine. But tweening an Edge in an existing particle system is obfuscating. It has not worked for me yet.

The syntax given in the reference is:

    tweenEdge(edge, duration, opts)

How do I specify an edge in a single parameter?

I tried all this, but does not work:

    sys.tweenEdge({"somenode1":"somenode2"},1,{length:50})
    sys.tweenEdge("somenode1":{"somenode2"},1,{length:50})
    sys.tweenEdge({"somenode1":{"somenode2"}},1,{length:50})