Update zoom graph size by external button

7 views
Skip to first unread message

raja sekaran

unread,
Jun 3, 2022, 12:54:24 PM6/3/22
to cytoscape-helpdesk
Hello Team,

I would like to achieve the panzoom functional behavior by an external button action.

How can we co-ordinate or update mouse trackpad zoom IN/OUT graph size with external button zoom IN/OUT properties?

cytoscape version: 3.2.0 

Thanks,
Rajasekaran R

Scooter Morris

unread,
Jun 9, 2022, 10:28:17 AM6/9/22
to cytoscape-helpdesk
Hi Rajasekaran,

First, to be clear, Cytoscape 3.2.0 is *extremely* old.  Using Cytoscape 3.9, pretty much all of the information you need is part of the network visual properties.  You are looking for NETWORK_CENTER_X_LOCATION, NETWORK_CENTER_Y_LOCATION, and NETWORK_SCALE_FACTOR.  If you use those visual properties and set them directly, it will control the pan and zoom.  Note that if you set them as locked values, it will override the user and they won't be able to pan and zoom manually,..

-- scooter
Reply all
Reply to author
Forward
0 new messages