{"action":"created","issue":{"url":"https://api.github.com/repos/wout/svg.js/issues/542","repository_url":"https://api.github.com/repos/wout/svg.js","labels_url":"https://api.github.com/repos/wout/svg.js/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/wout/svg.js/issues/542/comments","events_url":"https://api.github.com/repos/wout/svg.js/issues/542/events","html_url":"https://github.com/wout/svg.js/issues/542","id":185133959,"number":542,"title":"viewbox().zoom returns 0 in 2.3.5 and calculates the zoom in 2.2.5","user":{"login":"ohjames","id":97685,"avatar_url":"https://avatars.githubusercontent.com/u/97685?v=3","gravatar_id":"","url":"https://api.github.com/users/ohjames","html_url":"https://github.com/ohjames","followers_url":"https://api.github.com/users/ohjames/followers","following_url":"https://api.github.com/users/ohjames/following{/other_user}","gists_url":"https://api.github.com/users/ohjames/gists{/gist_id}","starred_url":"https://api.github.com/users/ohjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohjames/subscriptions","organizations_url":"https://api.github.com/users/ohjames/orgs","repos_url":"https://api.github.com/users/ohjames/repos","events_url":"https://api.github.com/users/ohjames/events{/privacy}","received_events_url":"https://api.github.com/users/ohjames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-25T14:27:40Z","updated_at":"2016-10-25T15:21:56Z","closed_at":null,"body":"I have this code:\r\n\r\n```javascript\r\nconst bbox = svgJsObject.bbox()\r\nsvgJsObject.viewbox(bbox)        \r\nconst vbox = svgJsObject.viewbox()\r\n// in 2.2.5 vbox.zoom is correct, in 2.3.5 it is 0.\r\n```\r\n\r\nThis should calculate the zoom according to how the bounding box fits in the svg element. In `2.2.5` this worked great, in `2.3.5` I always get an invalid zoom value of `0`."},"comment":{"url":"https://api.github.com/repos/wout/svg.js/issues/comments/256067176","html_url":"https://github.com/wout/svg.js/issues/542#issuecomment-256067176","issue_url":"https://api.github.com/repos/wout/svg.js/issues/542","id":256067176,"user":{"login":"Fuzzyma","id":3540542,"avatar_url":"https://avatars.githubusercontent.com/u/3540542?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuzzyma","html_url":"https://github.com/Fuzzyma","followers_url":"https://api.github.com/users/Fuzzyma/followers","following_url":"https://api.github.com/users/Fuzzyma/following{/other_user}","gists_url":"https://api.github.com/users/Fuzzyma/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuzzyma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuzzyma/subscriptions","organizations_url":"https://api.github.com/users/Fuzzyma/orgs","repos_url":"https://api.github.com/users/Fuzzyma/repos","events_url":"https://api.github.com/users/Fuzzyma/events{/privacy}","received_events_url":"https://api.github.com/users/Fuzzyma/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T15:21:56Z","updated_at":"2016-10-25T15:21:56Z","body":"Does it correctly set the viewbox on the element?"}}
{"actor":{"display_login":"Fuzzyma"}}