{"action":"created","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1258","repository_url":"https://api.github.com/repos/cytoscape/cytoscape.js","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1258/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1258/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1258/events","html_url":"https://github.com/cytoscape/cytoscape.js/pull/1258","id":134879295,"number":1258,"title":"Extension point in preparation for issue #789","user":{"login":"janblok","id":2283988,"avatar_url":"https://avatars.githubusercontent.com/u/2283988?v=3","gravatar_id":"","url":"https://api.github.com/users/janblok","html_url":"https://github.com/janblok","followers_url":"https://api.github.com/users/janblok/followers","following_url":"https://api.github.com/users/janblok/following{/other_user}","gists_url":"https://api.github.com/users/janblok/gists{/gist_id}","starred_url":"https://api.github.com/users/janblok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janblok/subscriptions","organizations_url":"https://api.github.com/users/janblok/orgs","repos_url":"https://api.github.com/users/janblok/repos","events_url":"https://api.github.com/users/janblok/events{/privacy}","received_events_url":"https://api.github.com/users/janblok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-19T14:32:46Z","updated_at":"2016-02-23T14:34:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/pulls/1258","html_url":"https://github.com/cytoscape/cytoscape.js/pull/1258","diff_url":"https://github.com/cytoscape/cytoscape.js/pull/1258.diff","patch_url":"https://github.com/cytoscape/cytoscape.js/pull/1258.patch"},"body":"In order to make an extension possible as discussed in issue #789, its needed to access or override the zoom factor. It also allows for changing the constants used there."},"comment":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/comments/187721561","html_url":"https://github.com/cytoscape/cytoscape.js/pull/1258#issuecomment-187721561","issue_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1258","id":187721561,"user":{"login":"maxkfranz","id":989043,"avatar_url":"https://avatars.githubusercontent.com/u/989043?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkfranz","html_url":"https://github.com/maxkfranz","followers_url":"https://api.github.com/users/maxkfranz/followers","following_url":"https://api.github.com/users/maxkfranz/following{/other_user}","gists_url":"https://api.github.com/users/maxkfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkfranz/subscriptions","organizations_url":"https://api.github.com/users/maxkfranz/orgs","repos_url":"https://api.github.com/users/maxkfranz/repos","events_url":"https://api.github.com/users/maxkfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maxkfranz/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T14:34:49Z","updated_at":"2016-02-23T14:34:49Z","body":"That looks like it's referencing a lot of internal, renderer-private data/APIs.  All of that is private and subject to change at any time.  It wouldn't work well as an extension.\r\n\r\nFixed element sizing doesn't make sense, because a zoom operation is a scale operation.\r\n\r\nAs mentioned in the issue towards the end, it would make sense to have fixed size elements only if you replace the zoom with your own logic.  This means that the extension doesn't use the Cytoscape.js internals for zoom and pan -- it would have to rewrite them from scratch and disable the built-in zoom and pan features in Cytoscape.js."}}