{"action":"opened","issue":{"url":"https://api.github.com/repos/xjsframework/xjs/issues/109","repository_url":"https://api.github.com/repos/xjsframework/xjs","labels_url":"https://api.github.com/repos/xjsframework/xjs/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/xjsframework/xjs/issues/109/comments","events_url":"https://api.github.com/repos/xjsframework/xjs/issues/109/events","html_url":"https://github.com/xjsframework/xjs/issues/109","id":166144838,"number":109,"title":"Some questions about global sources","user":{"login":"paul-lrr","id":11876694,"avatar_url":"https://avatars.githubusercontent.com/u/11876694?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-lrr","html_url":"https://github.com/paul-lrr","followers_url":"https://api.github.com/users/paul-lrr/followers","following_url":"https://api.github.com/users/paul-lrr/following{/other_user}","gists_url":"https://api.github.com/users/paul-lrr/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-lrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-lrr/subscriptions","organizations_url":"https://api.github.com/users/paul-lrr/orgs","repos_url":"https://api.github.com/users/paul-lrr/repos","events_url":"https://api.github.com/users/paul-lrr/events{/privacy}","received_events_url":"https://api.github.com/users/paul-lrr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-18T17:13:43Z","updated_at":"2016-07-18T17:13:43Z","closed_at":null,"body":"Not exactly a specific \"Issue\", but I didn't see anywhere else to ask. Let me know if there is a better place to put this.\r\n\r\nI have been experimenting with Global Sources and there is definitely some interesting potential there, but the connection between the Items seems a little fragile. If the \"Keep source in memory\" box is ever unchecked, the connection is permanently lost. Is there a way to \"reconnect\" Items to a Source so that they are kept in sync again? Or do you have to delete the Item and recopy it? Also, is there a way to create a global source via the API? ie. make a new Item based on an existing source?\r\n\r\nObviously the transition from individual Sources to multiple Items with a single Source (and the accompanying API changes) has been a little confusing. Would it make sense to, instead of deprecating it, have the Source class refer to the underlying Source with all the properties and methods that are applied globally (Source type, Source id, Item list, saveConfig() etc.) and then have the Item class refer to the properties that are Item specific (size, position, name, Item id, etc)? At the moment, the Item object can affect both the current Item or the underlying Source depending on what functions are used. By the same token, `Scene#getSources` is currently deprecated in favor of `Scene#getItems`, but it seems like getting the Sources in the Scene and getting the Items in a Scene should be separate and are both potentially useful functions. Having `getItems` return a list of Sources that you then have to individually parse with `getItemList` just adds to the confusion."}}
{"actor":{"display_login":"paul-lrr"}}