{"action":"created","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/413","labels_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/413/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/413/events","html_url":"https://github.com/fengyuanchen/cropper/pull/413","id":99241941,"number":413,"title":"Zoom coefficient option","user":{"login":"ZasoGD","id":4642351,"avatar_url":"https://avatars.githubusercontent.com/u/4642351?v=3","gravatar_id":"","url":"https://api.github.com/users/ZasoGD","html_url":"https://github.com/ZasoGD","followers_url":"https://api.github.com/users/ZasoGD/followers","following_url":"https://api.github.com/users/ZasoGD/following{/other_user}","gists_url":"https://api.github.com/users/ZasoGD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZasoGD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZasoGD/subscriptions","organizations_url":"https://api.github.com/users/ZasoGD/orgs","repos_url":"https://api.github.com/users/ZasoGD/repos","events_url":"https://api.github.com/users/ZasoGD/events{/privacy}","received_events_url":"https://api.github.com/users/ZasoGD/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T16:16:14Z","updated_at":"2015-08-12T13:00:18Z","closed_at":"2015-08-12T13:00:17Z","pull_request":{"url":"https://api.github.com/repos/fengyuanchen/cropper/pulls/413","html_url":"https://github.com/fengyuanchen/cropper/pull/413","diff_url":"https://github.com/fengyuanchen/cropper/pull/413.diff","patch_url":"https://github.com/fengyuanchen/cropper/pull/413.patch"},"body":"With _$().cropper('zoom', num)_ the user can choose the zoom ratio that want, but when scrolling the zoom ratio is 0.1.\r\n\r\nRequired in [#251](https://github.com/fengyuanchen/cropper/issues/251)\r\n\r\n##### I added:\r\n- a option _zoomRatio_ to specific the zoom ratio (default is 0.1);\r\n- a method to set _zoomRatio_ and another to get it (_setZoomRatio_ and _getZoomRatio_);\r\n\r\n##### examples\r\n`$().cropper({`\r\n`    zoomRatio: 0.03 //default is 0.1`\r\n`});`\r\n\r\n`$().cropper('setZoomRatio', 0.15);`\r\n`$().cropper('getZoomRatio'); //return zoomRatio value`\r\n\r\n`$().cropper('zoom', +1 * $().cropper('getZoomRatio')); //zoom in`\r\n`$().cropper('zoom', -1 * $().cropper('getZoomRatio')); //zoom out`"},"comment":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/comments/130293455","html_url":"https://github.com/fengyuanchen/cropper/pull/413#issuecomment-130293455","issue_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/413","id":130293455,"user":{"login":"fengyuanchen","id":3456749,"avatar_url":"https://avatars.githubusercontent.com/u/3456749?v=3","gravatar_id":"","url":"https://api.github.com/users/fengyuanchen","html_url":"https://github.com/fengyuanchen","followers_url":"https://api.github.com/users/fengyuanchen/followers","following_url":"https://api.github.com/users/fengyuanchen/following{/other_user}","gists_url":"https://api.github.com/users/fengyuanchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fengyuanchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengyuanchen/subscriptions","organizations_url":"https://api.github.com/users/fengyuanchen/orgs","repos_url":"https://api.github.com/users/fengyuanchen/repos","events_url":"https://api.github.com/users/fengyuanchen/events{/privacy}","received_events_url":"https://api.github.com/users/fengyuanchen/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T13:00:17Z","updated_at":"2015-08-12T13:00:17Z","body":"I think `setZoomRatio` and `setZoomRatio` are unnecessary features. and I have added `wheelZoomRatio` option in v0.11.0. Thank you!"}}