{"action":"created","issue":{"url":"https://api.github.com/repos/google/blockly/issues/319","repository_url":"https://api.github.com/repos/google/blockly","labels_url":"https://api.github.com/repos/google/blockly/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/google/blockly/issues/319/comments","events_url":"https://api.github.com/repos/google/blockly/issues/319/events","html_url":"https://github.com/google/blockly/pull/319","id":146497834,"number":319,"title":"Shadow blocks morph to regular one on change (see #311), as an optional behavior","user":{"login":"miguel76","id":1584459,"avatar_url":"https://avatars.githubusercontent.com/u/1584459?v=3","gravatar_id":"","url":"https://api.github.com/users/miguel76","html_url":"https://github.com/miguel76","followers_url":"https://api.github.com/users/miguel76/followers","following_url":"https://api.github.com/users/miguel76/following{/other_user}","gists_url":"https://api.github.com/users/miguel76/gists{/gist_id}","starred_url":"https://api.github.com/users/miguel76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguel76/subscriptions","organizations_url":"https://api.github.com/users/miguel76/orgs","repos_url":"https://api.github.com/users/miguel76/repos","events_url":"https://api.github.com/users/miguel76/events{/privacy}","received_events_url":"https://api.github.com/users/miguel76/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/blockly/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-04-07T03:15:08Z","updated_at":"2016-07-13T20:21:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/blockly/pulls/319","html_url":"https://github.com/google/blockly/pull/319","diff_url":"https://github.com/google/blockly/pull/319.diff","patch_url":"https://github.com/google/blockly/pull/319.patch"},"body":"I added back the previous behavior of shadow blocks (they morph to regular blocks upon any change to their fields) in a way that is compatible with the undo/redo mechanism.\r\nI created a new kind of `Blockly.Events.CHANGE` event, with `element` having value `'shadow'`, that gets called upon any call on `.setShadow()` changing the \"shadow state\" of the block.\r\nWhen another `Blockly.Events.CHANGE` event gets called for shadow block, `.setShadow(false)` is called. The resulting new event is grouped with the current one, to ensure it can be undo/redo together.\r\nI added the workspace option `shadowMorph` to activate this behavior, while leaving the pre-existing behavior as default."},"comment":{"url":"https://api.github.com/repos/google/blockly/issues/comments/232474794","html_url":"https://github.com/google/blockly/pull/319#issuecomment-232474794","issue_url":"https://api.github.com/repos/google/blockly/issues/319","id":232474794,"user":{"login":"rachel-fenichel","id":13686399,"avatar_url":"https://avatars.githubusercontent.com/u/13686399?v=3","gravatar_id":"","url":"https://api.github.com/users/rachel-fenichel","html_url":"https://github.com/rachel-fenichel","followers_url":"https://api.github.com/users/rachel-fenichel/followers","following_url":"https://api.github.com/users/rachel-fenichel/following{/other_user}","gists_url":"https://api.github.com/users/rachel-fenichel/gists{/gist_id}","starred_url":"https://api.github.com/users/rachel-fenichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachel-fenichel/subscriptions","organizations_url":"https://api.github.com/users/rachel-fenichel/orgs","repos_url":"https://api.github.com/users/rachel-fenichel/repos","events_url":"https://api.github.com/users/rachel-fenichel/events{/privacy}","received_events_url":"https://api.github.com/users/rachel-fenichel/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T20:21:20Z","updated_at":"2016-07-13T20:21:20Z","body":"Vote noted, but at this time we are not planning to support it on our end."}}
{"actor":{"display_login":"rachel-fenichel"}}