{"action":"created","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/789","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/789/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/789/events","html_url":"https://github.com/cytoscape/cytoscape.js/issues/789","id":53504139,"number":789,"title":"Fixed element size (nodes,edges,font) regardless of zoom","user":{"login":"markov00","id":1421091,"avatar_url":"https://avatars.githubusercontent.com/u/1421091?v=3","gravatar_id":"","url":"https://api.github.com/users/markov00","html_url":"https://github.com/markov00","followers_url":"https://api.github.com/users/markov00/followers","following_url":"https://api.github.com/users/markov00/following{/other_user}","gists_url":"https://api.github.com/users/markov00/gists{/gist_id}","starred_url":"https://api.github.com/users/markov00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markov00/subscriptions","organizations_url":"https://api.github.com/users/markov00/orgs","repos_url":"https://api.github.com/users/markov00/repos","events_url":"https://api.github.com/users/markov00/events{/privacy}","received_events_url":"https://api.github.com/users/markov00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/labels/enhancement","name":"enhancement","color":"c7def8"},{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/labels/renderer","name":"renderer","color":"ffffff"},{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/labels/style","name":"style","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-06T11:06:05Z","updated_at":"2015-03-10T12:21:28Z","closed_at":null,"body":"Is there a way to specify a fixed size for each element regardless of the zoom? on #780 I've found a way to have a fixed node size that you can test [here](http://jsbin.com/hapasuyoni/2/edit?js,output): \r\nbut it has some problems:\r\n- the labels are redrawn only when you are selecting a node or an edge\r\n- the arrow size depend on the initial edge width, but if this width change the edge arrow doesn't change its dimension\r\n- edges curves: we can't control the bezier control point so if the edges are relatively very near each other, the curve is very big.\r\nI'm asking if there is a different way to create a graph with fixed element size regardless of the zoom level. \r\nThink of a big graph that you want to explore like the [tokyo railways demo](http://jsbin.com/gist/f64e811fc3311414e083?js,output), if you zoom in  everything becomes overlapped and unreadable. I think this feature can be very useful.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/comments/78042727","html_url":"https://github.com/cytoscape/cytoscape.js/issues/789#issuecomment-78042727","issue_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/789","id":78042727,"user":{"login":"ktei","id":2195250,"avatar_url":"https://avatars.githubusercontent.com/u/2195250?v=3","gravatar_id":"","url":"https://api.github.com/users/ktei","html_url":"https://github.com/ktei","followers_url":"https://api.github.com/users/ktei/followers","following_url":"https://api.github.com/users/ktei/following{/other_user}","gists_url":"https://api.github.com/users/ktei/gists{/gist_id}","starred_url":"https://api.github.com/users/ktei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktei/subscriptions","organizations_url":"https://api.github.com/users/ktei/orgs","repos_url":"https://api.github.com/users/ktei/repos","events_url":"https://api.github.com/users/ktei/events{/privacy}","received_events_url":"https://api.github.com/users/ktei/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T12:21:28Z","updated_at":"2015-03-10T12:21:28Z","body":"Bump up this. I currently set font-size and node radius based on the count of visible nodes, because when there are only a few nodes, without any adjustment, all nodes and labels become very very big. I can work around with this by tweaking zoom level and style dynamically.\r\n\r\nIt'd be nice to see that: if a max node radius is specified, then regardless of how many nodes are there, their size won't go beyond the max node radius (which potentially means that the cytoscape would choose a proper zoom level for the graph when it's loaded...?)\r\n\r\nAlso, it'd be nice to see that: if a max text size is specified, then regardless of how many nodes are there, all the text's size won't go beyond the max value?\r\n\r\nI fully understand that at the moment, cytoscape is just trying to fully fill the canvas on loading, but it doesn't look very good when you just have a handful nodes, but each one of them is so large with very big font size.\r\n\r\nThoughts?"}}