{"action":"opened","number":385,"pull_request":{"url":"https://api.github.com/repos/gabelerner/canvg/pulls/385","id":39199966,"html_url":"https://github.com/gabelerner/canvg/pull/385","diff_url":"https://github.com/gabelerner/canvg/pull/385.diff","patch_url":"https://github.com/gabelerner/canvg/pull/385.patch","issue_url":"https://api.github.com/repos/gabelerner/canvg/issues/385","number":385,"state":"open","locked":false,"title":"Introduced `scaleBy` option","user":{"login":"aliok","id":376732,"avatar_url":"https://avatars.githubusercontent.com/u/376732?v=3","gravatar_id":"","url":"https://api.github.com/users/aliok","html_url":"https://github.com/aliok","followers_url":"https://api.github.com/users/aliok/followers","following_url":"https://api.github.com/users/aliok/following{/other_user}","gists_url":"https://api.github.com/users/aliok/gists{/gist_id}","starred_url":"https://api.github.com/users/aliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliok/subscriptions","organizations_url":"https://api.github.com/users/aliok/orgs","repos_url":"https://api.github.com/users/aliok/repos","events_url":"https://api.github.com/users/aliok/events{/privacy}","received_events_url":"https://api.github.com/users/aliok/received_events","type":"User","site_admin":false},"body":"I wanted to scale my svg on canvas programmatically without quality loss.\r\n\r\n`scaleX` and `scaleY` is good already, but I couldn't find a way to get the SVG dimensions.\r\n\r\nSo, I introduced `scaleBy` option. Pass 2, and the content will be scaled by 2.\r\nI also integrated it with `ignoreDimensions`. That means, when it is not passed (dimensions of canvas to be set automatically), canvas will be also scaled.\r\n\r\n","created_at":"2015-07-04T00:11:41Z","updated_at":"2015-07-04T00:11:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gabelerner/canvg/pulls/385/commits","review_comments_url":"https://api.github.com/repos/gabelerner/canvg/pulls/385/comments","review_comment_url":"https://api.github.com/repos/gabelerner/canvg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabelerner/canvg/issues/385/comments","statuses_url":"https://api.github.com/repos/gabelerner/canvg/statuses/062a4328dbdf1c7c17b903435de611210531f57a","head":{"label":"aliok:master","ref":"master","sha":"062a4328dbdf1c7c17b903435de611210531f57a","user":{"login":"aliok","id":376732,"avatar_url":"https://avatars.githubusercontent.com/u/376732?v=3","gravatar_id":"","url":"https://api.github.com/users/aliok","html_url":"https://github.com/aliok","followers_url":"https://api.github.com/users/aliok/followers","following_url":"https://api.github.com/users/aliok/following{/other_user}","gists_url":"https://api.github.com/users/aliok/gists{/gist_id}","starred_url":"https://api.github.com/users/aliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliok/subscriptions","organizations_url":"https://api.github.com/users/aliok/orgs","repos_url":"https://api.github.com/users/aliok/repos","events_url":"https://api.github.com/users/aliok/events{/privacy}","received_events_url":"https://api.github.com/users/aliok/received_events","type":"User","site_admin":false},"repo":{"id":38514736,"name":"canvg","full_name":"aliok/canvg","owner":{"login":"aliok","id":376732,"avatar_url":"https://avatars.githubusercontent.com/u/376732?v=3","gravatar_id":"","url":"https://api.github.com/users/aliok","html_url":"https://github.com/aliok","followers_url":"https://api.github.com/users/aliok/followers","following_url":"https://api.github.com/users/aliok/following{/other_user}","gists_url":"https://api.github.com/users/aliok/gists{/gist_id}","starred_url":"https://api.github.com/users/aliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliok/subscriptions","organizations_url":"https://api.github.com/users/aliok/orgs","repos_url":"https://api.github.com/users/aliok/repos","events_url":"https://api.github.com/users/aliok/events{/privacy}","received_events_url":"https://api.github.com/users/aliok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aliok/canvg","description":"Javascript SVG parser and renderer on Canvas","fork":true,"url":"https://api.github.com/repos/aliok/canvg","forks_url":"https://api.github.com/repos/aliok/canvg/forks","keys_url":"https://api.github.com/repos/aliok/canvg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliok/canvg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliok/canvg/teams","hooks_url":"https://api.github.com/repos/aliok/canvg/hooks","issue_events_url":"https://api.github.com/repos/aliok/canvg/issues/events{/number}","events_url":"https://api.github.com/repos/aliok/canvg/events","assignees_url":"https://api.github.com/repos/aliok/canvg/assignees{/user}","branches_url":"https://api.github.com/repos/aliok/canvg/branches{/branch}","tags_url":"https://api.github.com/repos/aliok/canvg/tags","blobs_url":"https://api.github.com/repos/aliok/canvg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliok/canvg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliok/canvg/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliok/canvg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliok/canvg/statuses/{sha}","languages_url":"https://api.github.com/repos/aliok/canvg/languages","stargazers_url":"https://api.github.com/repos/aliok/canvg/stargazers","contributors_url":"https://api.github.com/repos/aliok/canvg/contributors","subscribers_url":"https://api.github.com/repos/aliok/canvg/subscribers","subscription_url":"https://api.github.com/repos/aliok/canvg/subscription","commits_url":"https://api.github.com/repos/aliok/canvg/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliok/canvg/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliok/canvg/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliok/canvg/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliok/canvg/contents/{+path}","compare_url":"https://api.github.com/repos/aliok/canvg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliok/canvg/merges","archive_url":"https://api.github.com/repos/aliok/canvg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliok/canvg/downloads","issues_url":"https://api.github.com/repos/aliok/canvg/issues{/number}","pulls_url":"https://api.github.com/repos/aliok/canvg/pulls{/number}","milestones_url":"https://api.github.com/repos/aliok/canvg/milestones{/number}","notifications_url":"https://api.github.com/repos/aliok/canvg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliok/canvg/labels{/name}","releases_url":"https://api.github.com/repos/aliok/canvg/releases{/id}","created_at":"2015-07-03T23:48:42Z","updated_at":"2015-07-03T23:48:43Z","pushed_at":"2015-07-04T00:03:13Z","git_url":"git://github.com/aliok/canvg.git","ssh_url":"git@github.com:aliok/canvg.git","clone_url":"https://github.com/aliok/canvg.git","svn_url":"https://github.com/aliok/canvg","homepage":"","size":3425,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gabelerner:master","ref":"master","sha":"de8341e79981376fe1cd7f111c3fcfe4f37f8bbd","user":{"login":"gabelerner","id":241819,"avatar_url":"https://avatars.githubusercontent.com/u/241819?v=3","gravatar_id":"","url":"https://api.github.com/users/gabelerner","html_url":"https://github.com/gabelerner","followers_url":"https://api.github.com/users/gabelerner/followers","following_url":"https://api.github.com/users/gabelerner/following{/other_user}","gists_url":"https://api.github.com/users/gabelerner/gists{/gist_id}","starred_url":"https://api.github.com/users/gabelerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabelerner/subscriptions","organizations_url":"https://api.github.com/users/gabelerner/orgs","repos_url":"https://api.github.com/users/gabelerner/repos","events_url":"https://api.github.com/users/gabelerner/events{/privacy}","received_events_url":"https://api.github.com/users/gabelerner/received_events","type":"User","site_admin":false},"repo":{"id":27681516,"name":"canvg","full_name":"gabelerner/canvg","owner":{"login":"gabelerner","id":241819,"avatar_url":"https://avatars.githubusercontent.com/u/241819?v=3","gravatar_id":"","url":"https://api.github.com/users/gabelerner","html_url":"https://github.com/gabelerner","followers_url":"https://api.github.com/users/gabelerner/followers","following_url":"https://api.github.com/users/gabelerner/following{/other_user}","gists_url":"https://api.github.com/users/gabelerner/gists{/gist_id}","starred_url":"https://api.github.com/users/gabelerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabelerner/subscriptions","organizations_url":"https://api.github.com/users/gabelerner/orgs","repos_url":"https://api.github.com/users/gabelerner/repos","events_url":"https://api.github.com/users/gabelerner/events{/privacy}","received_events_url":"https://api.github.com/users/gabelerner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabelerner/canvg","description":"Javascript SVG parser and renderer on Canvas","fork":false,"url":"https://api.github.com/repos/gabelerner/canvg","forks_url":"https://api.github.com/repos/gabelerner/canvg/forks","keys_url":"https://api.github.com/repos/gabelerner/canvg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabelerner/canvg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabelerner/canvg/teams","hooks_url":"https://api.github.com/repos/gabelerner/canvg/hooks","issue_events_url":"https://api.github.com/repos/gabelerner/canvg/issues/events{/number}","events_url":"https://api.github.com/repos/gabelerner/canvg/events","assignees_url":"https://api.github.com/repos/gabelerner/canvg/assignees{/user}","branches_url":"https://api.github.com/repos/gabelerner/canvg/branches{/branch}","tags_url":"https://api.github.com/repos/gabelerner/canvg/tags","blobs_url":"https://api.github.com/repos/gabelerner/canvg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabelerner/canvg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabelerner/canvg/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabelerner/canvg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabelerner/canvg/statuses/{sha}","languages_url":"https://api.github.com/repos/gabelerner/canvg/languages","stargazers_url":"https://api.github.com/repos/gabelerner/canvg/stargazers","contributors_url":"https://api.github.com/repos/gabelerner/canvg/contributors","subscribers_url":"https://api.github.com/repos/gabelerner/canvg/subscribers","subscription_url":"https://api.github.com/repos/gabelerner/canvg/subscription","commits_url":"https://api.github.com/repos/gabelerner/canvg/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabelerner/canvg/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabelerner/canvg/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabelerner/canvg/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabelerner/canvg/contents/{+path}","compare_url":"https://api.github.com/repos/gabelerner/canvg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabelerner/canvg/merges","archive_url":"https://api.github.com/repos/gabelerner/canvg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabelerner/canvg/downloads","issues_url":"https://api.github.com/repos/gabelerner/canvg/issues{/number}","pulls_url":"https://api.github.com/repos/gabelerner/canvg/pulls{/number}","milestones_url":"https://api.github.com/repos/gabelerner/canvg/milestones{/number}","notifications_url":"https://api.github.com/repos/gabelerner/canvg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabelerner/canvg/labels{/name}","releases_url":"https://api.github.com/repos/gabelerner/canvg/releases{/id}","created_at":"2014-12-07T19:18:53Z","updated_at":"2015-07-02T12:48:00Z","pushed_at":"2015-06-22T14:57:27Z","git_url":"git://github.com/gabelerner/canvg.git","ssh_url":"git@github.com:gabelerner/canvg.git","clone_url":"https://github.com/gabelerner/canvg.git","svn_url":"https://github.com/gabelerner/canvg","homepage":"","size":3425,"stargazers_count":422,"watchers_count":422,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":103,"forks":61,"open_issues":103,"watchers":422,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gabelerner/canvg/pulls/385"},"html":{"href":"https://github.com/gabelerner/canvg/pull/385"},"issue":{"href":"https://api.github.com/repos/gabelerner/canvg/issues/385"},"comments":{"href":"https://api.github.com/repos/gabelerner/canvg/issues/385/comments"},"review_comments":{"href":"https://api.github.com/repos/gabelerner/canvg/pulls/385/comments"},"review_comment":{"href":"https://api.github.com/repos/gabelerner/canvg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabelerner/canvg/pulls/385/commits"},"statuses":{"href":"https://api.github.com/repos/gabelerner/canvg/statuses/062a4328dbdf1c7c17b903435de611210531f57a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":26,"deletions":8,"changed_files":2}}