{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/examples/issues/43","repository_url":"https://api.github.com/repos/pixijs/examples","labels_url":"https://api.github.com/repos/pixijs/examples/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/examples/issues/43/comments","events_url":"https://api.github.com/repos/pixijs/examples/issues/43/events","html_url":"https://github.com/pixijs/examples/issues/43","id":308591958,"number":43,"title":"algorithmic Zoom calculation for canvas and render","user":{"login":"djmisterjon","id":24865815,"avatar_url":"https://avatars1.githubusercontent.com/u/24865815?v=4","gravatar_id":"","url":"https://api.github.com/users/djmisterjon","html_url":"https://github.com/djmisterjon","followers_url":"https://api.github.com/users/djmisterjon/followers","following_url":"https://api.github.com/users/djmisterjon/following{/other_user}","gists_url":"https://api.github.com/users/djmisterjon/gists{/gist_id}","starred_url":"https://api.github.com/users/djmisterjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmisterjon/subscriptions","organizations_url":"https://api.github.com/users/djmisterjon/orgs","repos_url":"https://api.github.com/users/djmisterjon/repos","events_url":"https://api.github.com/users/djmisterjon/events{/privacy}","received_events_url":"https://api.github.com/users/djmisterjon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-26T14:17:48Z","updated_at":"2018-03-29T11:39:20Z","closed_at":"2018-03-26T21:18:46Z","author_association":"NONE","body":"would be great if we could have an example with a zoom based on mouse position for canvas rendering.\r\nI am not sure of the mathematical formula to use with event.\r\nA example could help.\r\nThank you guys.\r\n\r\n```javascript\r\nconst mapZoom = SM_S._spriteset._tilemap.scale; // zoom based on scale the render\r\n    function wheel_(event) {//TODO: zoom system\r\n        if(event.wheelDeltaY>0){\r\n            mapZoom.x+=0.05;\r\n            mapZoom.y+=0.05;\r\n            $gameMap._displayX+=0.05\r\n            dX+=0.05;\r\n        }else{\r\n            mapZoom.x-=0.05;\r\n            mapZoom.y-=0.05;\r\n            $gameMap._displayX-=0.05\r\n            dX-=0.05;\r\n        }\r\n    };\r\n```"},"comment":{"url":"https://api.github.com/repos/pixijs/examples/issues/comments/377208356","html_url":"https://github.com/pixijs/examples/issues/43#issuecomment-377208356","issue_url":"https://api.github.com/repos/pixijs/examples/issues/43","id":377208356,"user":{"login":"djmisterjon","id":24865815,"avatar_url":"https://avatars1.githubusercontent.com/u/24865815?v=4","gravatar_id":"","url":"https://api.github.com/users/djmisterjon","html_url":"https://github.com/djmisterjon","followers_url":"https://api.github.com/users/djmisterjon/followers","following_url":"https://api.github.com/users/djmisterjon/following{/other_user}","gists_url":"https://api.github.com/users/djmisterjon/gists{/gist_id}","starred_url":"https://api.github.com/users/djmisterjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmisterjon/subscriptions","organizations_url":"https://api.github.com/users/djmisterjon/orgs","repos_url":"https://api.github.com/users/djmisterjon/repos","events_url":"https://api.github.com/users/djmisterjon/events{/privacy}","received_events_url":"https://api.github.com/users/djmisterjon/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T11:39:20Z","updated_at":"2018-03-29T11:39:20Z","author_association":"NONE","body":"ok thank , i will check more about Rectangle.prototype.contains.\r\nIt look like what a need."}}
{"actor":{"display_login":"djmisterjon"}}