{"action":"created","issue":{"url":"https://api.github.com/repos/basiljs/basil.js/issues/141","repository_url":"https://api.github.com/repos/basiljs/basil.js","labels_url":"https://api.github.com/repos/basiljs/basil.js/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/basiljs/basil.js/issues/141/comments","events_url":"https://api.github.com/repos/basiljs/basil.js/issues/141/events","html_url":"https://github.com/basiljs/basil.js/pull/141","id":191611746,"number":141,"title":"Expanding functionality of styles","user":{"login":"trych","id":9803905,"avatar_url":"https://avatars.githubusercontent.com/u/9803905?v=3","gravatar_id":"","url":"https://api.github.com/users/trych","html_url":"https://github.com/trych","followers_url":"https://api.github.com/users/trych/followers","following_url":"https://api.github.com/users/trych/following{/other_user}","gists_url":"https://api.github.com/users/trych/gists{/gist_id}","starred_url":"https://api.github.com/users/trych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trych/subscriptions","organizations_url":"https://api.github.com/users/trych/orgs","repos_url":"https://api.github.com/users/trych/repos","events_url":"https://api.github.com/users/trych/events{/privacy}","received_events_url":"https://api.github.com/users/trych/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-25T01:57:01Z","updated_at":"2016-11-30T15:25:58Z","closed_at":"2016-11-30T15:25:56Z","pull_request":{"url":"https://api.github.com/repos/basiljs/basil.js/pulls/141","html_url":"https://github.com/basiljs/basil.js/pull/141","diff_url":"https://github.com/basiljs/basil.js/pull/141.diff","patch_url":"https://github.com/basiljs/basil.js/pull/141.patch"},"body":"This greatly improves working with styles in basil.js.\r\n\r\n1) All existing style functions (`b.paragraphStyle()`, `b.characterStyle()`, `b.objectStyle()`) are updated:\r\n\r\n  * They can now either get a style by name or the applied style of a given textObject/pageItem. If a style of a give name does not exist, it gets created. Additionally a properties name/value pairs object can be used to set the new style's properties or to update an existing style's properties.\r\n\r\n2) The new functions `b.applyParagraphStyle()`, `b.applyCharacterStyle()` and `b.applyObjectStyle()` are added. They take a textObject|textFrame|Story/pageItem and apply the given style to it. The style can be given as style instance or by name.\r\n\r\n3) The example script `styles.jsx` is added to demonstrate how to use the style functions.\r\n\r\nThis passes all tests, please review. 🔍"},"comment":{"url":"https://api.github.com/repos/basiljs/basil.js/issues/comments/263901548","html_url":"https://github.com/basiljs/basil.js/pull/141#issuecomment-263901548","issue_url":"https://api.github.com/repos/basiljs/basil.js/issues/141","id":263901548,"user":{"login":"b-g","id":480224,"avatar_url":"https://avatars.githubusercontent.com/u/480224?v=3","gravatar_id":"","url":"https://api.github.com/users/b-g","html_url":"https://github.com/b-g","followers_url":"https://api.github.com/users/b-g/followers","following_url":"https://api.github.com/users/b-g/following{/other_user}","gists_url":"https://api.github.com/users/b-g/gists{/gist_id}","starred_url":"https://api.github.com/users/b-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-g/subscriptions","organizations_url":"https://api.github.com/users/b-g/orgs","repos_url":"https://api.github.com/users/b-g/repos","events_url":"https://api.github.com/users/b-g/events{/privacy}","received_events_url":"https://api.github.com/users/b-g/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T15:25:58Z","updated_at":"2016-11-30T15:25:58Z","body":"@trych Many thanks!! Looks good! Merged! (thanks for the linting of the test file)"}}
{"actor":{"display_login":"b-g"}}