Fw: Using jSBGN for Biopax animation

4 views
Skip to first unread message

rez...@yahoo.com

unread,
Jun 2, 2014, 4:07:04 PM6/2/14
to biogr...@googlegroups.com

Sent from Yahoo Mail on Android



From: rez...@yahoo.com <rez...@yahoo.com>;
To: Thomas...@googlemail.com <Thomas...@googlemail.com>;
Subject: Using jSBGN for Biopax animation
Sent: Sun, Jun 1, 2014 11:06:41 AM

Dear Thomas,

I'm working for a Biopax project. The goal of the project is to animate a Biopax model: showing movements from one node to the other one. Nodes and edges are SBGN nodes and edges.
- Does jSBGN suitable for this purpose?
- Is it possible to associate events to jSBGN nodes?

Thanks in advance,
Reza Haydarlou
VU university Amsterdam

Sent from Yahoo Mail on Android

Thomas Handorf

unread,
Jun 4, 2014, 6:21:38 AM6/4/14
to biogr...@googlegroups.com, rez...@yahoo.com
Hi Reza,

I'm not 100% sure what kind of animation you mean. juSBGN/biographer does not support animation directly. If you want to move nodes this can only be done programmatically accessing the biographer UI library. The nodes shown a svg objects, and you may be able to animate them trough css, but the corresponding data element wouldn't be updated then. 

to move programatically you would need to do
graph.drawables()['nodeid'].position(x,y)
in biographer editor:
editor.graph.drawables()['nodeid'].position(x,y)

.position()
will get the current position

I hope i could help you a bit,
all the best,
Thomas


On Monday, June 2, 2014 10:07:04 PM UTC+2, rez...@yahoo.com wrote:
Reply all
Reply to author
Forward
0 new messages