{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/2198","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/2198/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/2198/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/2198/events","html_url":"https://github.com/kangax/fabric.js/issues/2198","id":76792090,"number":2198,"title":"Gradient forObject ?","user":{"login":"joewashear007","id":3577785,"avatar_url":"https://avatars.githubusercontent.com/u/3577785?v=3","gravatar_id":"","url":"https://api.github.com/users/joewashear007","html_url":"https://github.com/joewashear007","followers_url":"https://api.github.com/users/joewashear007/followers","following_url":"https://api.github.com/users/joewashear007/following{/other_user}","gists_url":"https://api.github.com/users/joewashear007/gists{/gist_id}","starred_url":"https://api.github.com/users/joewashear007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joewashear007/subscriptions","organizations_url":"https://api.github.com/users/joewashear007/orgs","repos_url":"https://api.github.com/users/joewashear007/repos","events_url":"https://api.github.com/users/joewashear007/events{/privacy}","received_events_url":"https://api.github.com/users/joewashear007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T17:17:58Z","updated_at":"2015-05-16T10:16:06Z","closed_at":null,"body":"Is the function supposed to be fromObject?\r\nFound in <https://github.com/kangax/fabric.js/blob/master/src/gradient.class.js>, line 375\r\n\r\n```\r\n/**\r\n     * Returns {@link fabric.Gradient} instance from its object representation\r\n     * @static\r\n     * @memberof fabric.Gradient\r\n     * @param {Object} obj\r\n     * @param {Object} [options] Options object\r\n     */\r\n    forObject: function(obj, options) {\r\n      options || (options = { });\r\n      _convertPercentUnitsToValues(obj, options.coords, 'userSpaceOnUse');\r\n      return new fabric.Gradient(options);\r\n}\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/15077353-gradient-forobject?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/102602007","html_url":"https://github.com/kangax/fabric.js/issues/2198#issuecomment-102602007","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/2198","id":102602007,"user":{"login":"asturur","id":1194048,"avatar_url":"https://avatars.githubusercontent.com/u/1194048?v=3","gravatar_id":"","url":"https://api.github.com/users/asturur","html_url":"https://github.com/asturur","followers_url":"https://api.github.com/users/asturur/followers","following_url":"https://api.github.com/users/asturur/following{/other_user}","gists_url":"https://api.github.com/users/asturur/gists{/gist_id}","starred_url":"https://api.github.com/users/asturur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asturur/subscriptions","organizations_url":"https://api.github.com/users/asturur/orgs","repos_url":"https://api.github.com/users/asturur/repos","events_url":"https://api.github.com/users/asturur/events{/privacy}","received_events_url":"https://api.github.com/users/asturur/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T10:16:06Z","updated_at":"2015-05-16T10:16:06Z","body":"not really is a little bit different.\r\nWhen restoring gradient from object form ( options is the object form of the gradient ) we need to know on whick object it will be applied to construct it properly.\r\nI don't think is a mispell. But i never noticed it before anyway."}}