{"action":"created","issue":{"url":"https://api.github.com/repos/prawnpdf/prawn/issues/894","labels_url":"https://api.github.com/repos/prawnpdf/prawn/issues/894/labels{/name}","comments_url":"https://api.github.com/repos/prawnpdf/prawn/issues/894/comments","events_url":"https://api.github.com/repos/prawnpdf/prawn/issues/894/events","html_url":"https://github.com/prawnpdf/prawn/pull/894","id":95899789,"number":894,"title":"Track transformations and apply to gradients' matrices","user":{"login":"mogest","id":23133,"avatar_url":"https://avatars.githubusercontent.com/u/23133?v=3","gravatar_id":"","url":"https://api.github.com/users/mogest","html_url":"https://github.com/mogest","followers_url":"https://api.github.com/users/mogest/followers","following_url":"https://api.github.com/users/mogest/following{/other_user}","gists_url":"https://api.github.com/users/mogest/gists{/gist_id}","starred_url":"https://api.github.com/users/mogest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogest/subscriptions","organizations_url":"https://api.github.com/users/mogest/orgs","repos_url":"https://api.github.com/users/mogest/repos","events_url":"https://api.github.com/users/mogest/events{/privacy}","received_events_url":"https://api.github.com/users/mogest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T09:00:04Z","updated_at":"2015-07-29T20:06:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prawnpdf/prawn/pulls/894","html_url":"https://github.com/prawnpdf/prawn/pull/894","diff_url":"https://github.com/prawnpdf/prawn/pull/894.diff","patch_url":"https://github.com/prawnpdf/prawn/pull/894.patch"},"body":"PDF gradients/patterns take coordinates in the coordinate space of the\r\ndocument, not the \"user space\", so if you perform a scale/rotate/translate\r\nand then paint a gradient inside, it doesn't render correctly.\r\n\r\nThis commit tracks transformations applied to the document, and multiplies\r\nthe gradient matrix with this tracked transformation matrix so that the\r\ngradient appears in the correct place in the document.\r\n\r\nThis has been created in response to issue #891."},"comment":{"url":"https://api.github.com/repos/prawnpdf/prawn/issues/comments/126081392","html_url":"https://github.com/prawnpdf/prawn/pull/894#issuecomment-126081392","issue_url":"https://api.github.com/repos/prawnpdf/prawn/issues/894","id":126081392,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T20:06:45Z","updated_at":"2015-07-29T20:06:45Z","body":">  is any backwards compatibility implications.\r\n\r\nIf that's a major concern, why not just add an option at the top-level to use legacy or compliant gradient logic?\r\n\r\nOne thing is for certain. We have to get past this or else gradients in SVGs embedded in PDFs (which is a major use case for a PDF generator) is never going to work correctly."}}