{"action":"created","issue":{"url":"https://api.github.com/repos/shamansir/rpd/issues/311","repository_url":"https://api.github.com/repos/shamansir/rpd","labels_url":"https://api.github.com/repos/shamansir/rpd/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/shamansir/rpd/issues/311/comments","events_url":"https://api.github.com/repos/shamansir/rpd/issues/311/events","html_url":"https://github.com/shamansir/rpd/issues/311","id":131892833,"number":311,"title":"addPatch, addNode, addOutlet, addInlet should be able to get optional objects (hashes) overriding/extending renderer methods","user":{"login":"shamansir","id":110920,"avatar_url":"https://avatars.githubusercontent.com/u/110920?v=3","gravatar_id":"","url":"https://api.github.com/users/shamansir","html_url":"https://github.com/shamansir","followers_url":"https://api.github.com/users/shamansir/followers","following_url":"https://api.github.com/users/shamansir/following{/other_user}","gists_url":"https://api.github.com/users/shamansir/gists{/gist_id}","starred_url":"https://api.github.com/users/shamansir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamansir/subscriptions","organizations_url":"https://api.github.com/users/shamansir/orgs","repos_url":"https://api.github.com/users/shamansir/repos","events_url":"https://api.github.com/users/shamansir/events{/privacy}","received_events_url":"https://api.github.com/users/shamansir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shamansir/rpd/labels/could-change-api","name":"could-change-api","color":"bfe5bf"},{"url":"https://api.github.com/repos/shamansir/rpd/labels/docs","name":"docs","color":"d4c5f9"},{"url":"https://api.github.com/repos/shamansir/rpd/labels/tests","name":"tests","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/shamansir/rpd/milestones/1","html_url":"https://github.com/shamansir/rpd/milestones/v0.2.0-%CE%B1","labels_url":"https://api.github.com/repos/shamansir/rpd/milestones/1/labels","id":960119,"number":1,"title":"v0.2.0-α","description":"Planned Features:\r\n\r\n* Better UI;\r\n* Massive API changes and improvements in the sake of consistency;\r\n* Ability to connect patches (\"models\", maiden name) and navigate between them;\r\n* Simplified renderers;\r\n* SVG Renderer;\r\n* Import/Export;\r\n* Quartz & PD \"modes\" are now separate \"styles\" (which reduces resulting file size);\r\n* Improved building, with Gulp;\r\n* ...","creator":{"login":"shamansir","id":110920,"avatar_url":"https://avatars.githubusercontent.com/u/110920?v=3","gravatar_id":"","url":"https://api.github.com/users/shamansir","html_url":"https://github.com/shamansir","followers_url":"https://api.github.com/users/shamansir/followers","following_url":"https://api.github.com/users/shamansir/following{/other_user}","gists_url":"https://api.github.com/users/shamansir/gists{/gist_id}","starred_url":"https://api.github.com/users/shamansir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamansir/subscriptions","organizations_url":"https://api.github.com/users/shamansir/orgs","repos_url":"https://api.github.com/users/shamansir/repos","events_url":"https://api.github.com/users/shamansir/events{/privacy}","received_events_url":"https://api.github.com/users/shamansir/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":79,"state":"open","created_at":"2015-02-01T11:13:46Z","updated_at":"2016-02-06T19:53:14Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-06T19:53:14Z","updated_at":"2016-02-06T22:05:28Z","closed_at":null,"body":"Excerpt from #107:\r\n\r\nAlso it would be cool to be able to override renderer same way, both for nodes and channels:\r\n\r\n```javascript\r\naddNode('node/type', 'Name', {\r\n    inlets: { ... }\r\n    render: {\r\n        'show': function() { /* ... */ },\r\n        'edit': function() { /* ... */ },\r\n    }\r\n});\r\n```\r\n\r\nor:\r\n\r\n```javascript\r\naddNode('node/type', 'Name', { /* def */ },\r\n    {\r\n        'show': function() { /* ... */ },\r\n        'edit': function() { /* ... */ },\r\n    });\r\n```\r\n\r\n(the latter looks better ftm)"},"comment":{"url":"https://api.github.com/repos/shamansir/rpd/issues/comments/180872989","html_url":"https://github.com/shamansir/rpd/issues/311#issuecomment-180872989","issue_url":"https://api.github.com/repos/shamansir/rpd/issues/311","id":180872989,"user":{"login":"shamansir","id":110920,"avatar_url":"https://avatars.githubusercontent.com/u/110920?v=3","gravatar_id":"","url":"https://api.github.com/users/shamansir","html_url":"https://github.com/shamansir","followers_url":"https://api.github.com/users/shamansir/followers","following_url":"https://api.github.com/users/shamansir/following{/other_user}","gists_url":"https://api.github.com/users/shamansir/gists{/gist_id}","starred_url":"https://api.github.com/users/shamansir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamansir/subscriptions","organizations_url":"https://api.github.com/users/shamansir/orgs","repos_url":"https://api.github.com/users/shamansir/repos","events_url":"https://api.github.com/users/shamansir/events{/privacy}","received_events_url":"https://api.github.com/users/shamansir/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T22:05:28Z","updated_at":"2016-02-06T22:05:28Z","body":"Normally (in `noderenderer` and `channelrenderer`) this requires specifying which rendering engine (HTML / SVG) is currently defined, render object stored inside the instance of Node or Channel is a hash of engines and renderers pairs, i.e.:\r\n\r\n```javascript\r\nnode.render == { 'html': { first: /* ... */ },\r\n                            'svg': { first: /* ... */ } };\r\n```\r\n\r\nThe question is, do we know already which renderer is currently used, or should we require user to build the similar structure?"}}