= 0) {\n            this.setTextString(this.history[this.historyPosition]);\n        } else {\n            this.historyPosition = 0;\n        }\n    } else if (evt.keyCode === 40) {\n        this.historyPosition++;\n        if (this.historyPosition < this.history.length) {\n            this.setTextString(this.history[this.historyPosition]);\n        } else if (this.historyPosition == this.history.length) {\n            this.setTextString(\"\");\n        } else {\n            this.historyPosition = this.history.length;\n        }\n    };\n    //evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":3205},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3200":{"this":{"__isSmartRef__":true,"id":3173},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3201}},"3201":{"$super":{"__isSmartRef__":true,"id":3202}},"3202":{"varMapping":{"__isSmartRef__":true,"id":3203},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3204},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3203":{"obj":{"__isSmartRef__":true,"id":3173},"name":"onKeyDown"},"3204":{},"3205":{"timestamp":{"__isSmartRef__":true,"id":3206},"user":"conradcalmez","tags":[]},"3206":{"isSerializedDate":true,"string":"Mon Apr 30 2012 08:32:02 GMT+0200 (CEST)"},"3207":{"submorphs":[{"__isSmartRef__":true,"id":3208}],"scripts":[],"id":"ADF5B4F7-6BE0-40D3-8142-608621D0319F","shape":{"__isSmartRef__":true,"id":3236},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3243},"showsHalos":false,"name":"ConsolePane","partsBinMetaInfo":{"__isSmartRef__":true,"id":3244},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3253},"eventHandler":{"__isSmartRef__":true,"id":3254},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","2284B4AF-3F6A-4ED0-B371-2D6A5F5F8721","825058EF-B1B2-4144-99EA-1AB7F5F057B1","A67547E7-12AD-4C37-AEB2-70DA37858E48","50181AE7-B6F0-4A6A-B4B5-95949DAA9D7F","B61C669C-3446-42B4-AE85-DFE3B0CD272E","2D23B2AE-CE3A-4BE2-B71F-2DB5593F34A1","295D3896-051A-4E4C-91B9-A5BB7E50FC1A","E3E1283C-C506-461E-86D9-1EE0B0600651","707C4A6E-B957-4EEE-98D0-C4EBDD0A8665","53D6AF1E-638F-4820-B6D1-8A3872FAF3FD","9104E920-2A4E-46CA-A40F-E8A24F0097C0","20759F50-158A-437C-A377-5185BD16DBC6","A6AC914D-3CA3-496C-9646-901DA0ADECEE","2E9DE628-367C-4AA5-AD8F-7AD895D56E7A","DAFB4156-1C23-4C62-BD67-14360FE3F7D5","5F0E004E-E50E-44F5-BEAF-3F9FF28CE7FE","12440475-EF19-4F9A-9973-3F654E15E9E0","047863D3-02AB-4319-9E99-B52C542CCA57","B3477420-9838-4720-9254-27632AED17C1","058EB467-B6E2-4972-B15D-129B8DC4C7EE","20084360-884B-4617-A00C-1BF3991A9589"],"partTests":{"__isSmartRef__":true,"id":3255},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":3172},"isBeingDragged":false,"priorExtent":{"__isSmartRef__":true,"id":3260},"prevScroll":[0,0],"#startLetters":"setRich","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3261},"__LivelyClassName__":"lively.morphic.Box"},"3208":{"submorphs":[],"scripts":[],"id":"FE93B987-DFF3-480D-9443-2504B6635C89","shape":{"__isSmartRef__":true,"id":3209},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"courier","registeredForMouseEvents":true,"_MaxTextWidth":326,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3212},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"TextPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":3216},"textChunks":[{"__isSmartRef__":true,"id":3217}],"charsReplaced":"","lastFindLoc":17,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":3219},"renderContextTable":{"__isSmartRef__":true,"id":3220},"eventHandler":{"__isSmartRef__":true,"id":3221},"attributeConnections":[{"__isSmartRef__":true,"id":3222}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"layout":{"__isSmartRef__":true,"id":3223},"_Padding":{"__isSmartRef__":true,"id":3224},"_WhiteSpaceHandling":"pre-wrap","_Position":{"__isSmartRef__":true,"id":3225},"derivationIds":[2362,"5D172806-0544-45B6-80E9-E8AA3475FE71","022F604C-036A-4213-8CCE-C823172C8D13","BC5F6774-C382-49A3-A0C6-E26114FFF113","B5AC1E1E-F04F-4EA8-9416-1B08E0A9ACB8","36F5D6C4-E71B-4FD2-A402-0D9CFDB5A643","0EDD287E-B203-49E2-A7A4-B1E4585D7F89","9E02E702-389F-4781-9011-6E99772A8B49","757F4E2C-C80E-4D2E-BA6B-713CB2CC267A","809DD85D-57DF-4633-881B-251BCE66B79F","2A105C6C-C5BD-426F-B6B4-D2A5C21D69F2","60F9BEBD-0B08-465D-BFE1-0DCF5CBF5C1F","C300B376-13FC-4522-BABC-47428948BA37","ADC0C761-B83D-4A01-B3BD-9F79A6308FA7","76FC1A8C-4309-4894-9BE8-34ADAD7C8B4D","B024113D-92D9-49E4-B1C7-792FE0B5D10E","BB2F5640-650D-4356-BD2C-4BD33A6FC8F9","79FD4841-0647-462A-9074-085FC577687C","A6C5CE78-AEED-462F-85A6-EEA7F742F693","CEF2E15B-9EFE-4ADA-908D-18779AF69FA8","997971B3-F6D6-4984-9622-9538DF41CE54","BB62C05D-4A10-4181-9DB0-CE375A57ED51"],"_ClipMode":"auto","moved":true,"owner":{"__isSmartRef__":true,"id":3207},"_MinTextWidth":326,"_MinTextHeight":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":3226},"isBeingDragged":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","#startLetters":"setRich","_Rotation":0,"_Scale":0.998001,"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3227},"__LivelyClassName__":"lively.morphic.Text"},"3209":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3210},"_Extent":{"__isSmartRef__":true,"id":3211},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3212},"renderContextTable":{"__isSmartRef__":true,"id":3213},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":3214},"_Padding":{"__isSmartRef__":true,"id":3215},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3210":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3211":{"x":326,"y":548,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3212":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3213":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3214":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3215":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3216":{"partsSpaceName":"PartsBin/Text/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"TextBox","revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3217":{"style":{"__isSmartRef__":true,"id":3218},"chunkOwner":{"__isSmartRef__":true,"id":3208},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3218":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3219":{"x":326,"y":548,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3220":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"3221":{"morph":{"__isSmartRef__":true,"id":3208},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3222":{"sourceObj":{"__isSmartRef__":true,"id":3208},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":3208},"targetMethodName":"scrollToBottom","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3223":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"3224":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3225":{"x":2.799100000010526,"y":2.958021000000997,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3226":{"x":180.01001502002487,"y":-12.987981975970001,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3227":{"onrestore":{"__isSmartRef__":true,"id":3228}},"3228":{"varMapping":{"__isSmartRef__":true,"id":3229},"source":"function onrestore() {\n    this.disableEvents();\n    this.setExtent(pt(326,548));\n}","funcProperties":{"__isSmartRef__":true,"id":3234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3229":{"this":{"__isSmartRef__":true,"id":3208},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3230}},"3230":{"$super":{"__isSmartRef__":true,"id":3231}},"3231":{"varMapping":{"__isSmartRef__":true,"id":3232},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3233},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3232":{"obj":{"__isSmartRef__":true,"id":3208},"name":"onrestore"},"3233":{},"3234":{"timestamp":{"__isSmartRef__":true,"id":3235},"user":"conradcalmez","tags":[]},"3235":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:04:02 GMT+0200 (CEST)"},"3236":{"position":{"__isSmartRef__":true,"id":3237},"_Extent":{"__isSmartRef__":true,"id":3238},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3239},"_Fill":{"__isSmartRef__":true,"id":3240},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3241},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3242},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3237":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3238":{"x":330,"y":550,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3239":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3240":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3241":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3242":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3243":{"x":1.196901999999909,"y":0.9980010000000021,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3244":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3245},{"__isSmartRef__":true,"id":3247},{"__isSmartRef__":true,"id":3249},{"__isSmartRef__":true,"id":3251}],"revisionOnLoad":150682,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3245":{"date":{"__isSmartRef__":true,"id":3246},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3246":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3247":{"date":{"__isSmartRef__":true,"id":3248},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3248":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3249":{"date":{"__isSmartRef__":true,"id":3250},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3250":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3251":{"date":{"__isSmartRef__":true,"id":3252},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3252":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3253":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3254":{"morph":{"__isSmartRef__":true,"id":3207},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3255":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3256}},"3256":{"test01IsMorph":{"__isSmartRef__":true,"id":3257}},"3257":{"varMapping":{"__isSmartRef__":true,"id":3258},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3259},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3258":{"this":{"__isSmartRef__":true,"id":3255}},"3259":{},"3260":{"x":330,"y":549,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3261":{"onrestore":{"__isSmartRef__":true,"id":3262}},"3262":{"varMapping":{"__isSmartRef__":true,"id":3263},"source":"function onrestore() {\n    this.setClipMode(\"auto\");\n}","funcProperties":{"__isSmartRef__":true,"id":3268},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3263":{"this":{"__isSmartRef__":true,"id":3207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3264}},"3264":{"$super":{"__isSmartRef__":true,"id":3265}},"3265":{"varMapping":{"__isSmartRef__":true,"id":3266},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3267},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3266":{"obj":{"__isSmartRef__":true,"id":3207},"name":"onrestore"},"3267":{},"3268":{"timestamp":{"__isSmartRef__":true,"id":3269},"user":"conradcalmez","tags":[]},"3269":{"isSerializedDate":true,"string":"Thu Apr 26 2012 20:07:58 GMT+0200 (CEST)"},"3270":{"position":{"__isSmartRef__":true,"id":3271},"_Extent":{"__isSmartRef__":true,"id":3272},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3273},"_Fill":{"__isSmartRef__":true,"id":3274},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3275},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3276},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3271":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3272":{"x":332.6,"y":582.1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3273":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3274":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3275":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3276":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3277":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3278":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3279},{"__isSmartRef__":true,"id":3281},{"__isSmartRef__":true,"id":3283},{"__isSmartRef__":true,"id":3285}],"revisionOnLoad":150682,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3279":{"date":{"__isSmartRef__":true,"id":3280},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3280":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3281":{"date":{"__isSmartRef__":true,"id":3282},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3282":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3283":{"date":{"__isSmartRef__":true,"id":3284},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3284":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3285":{"date":{"__isSmartRef__":true,"id":3286},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3286":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3287":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3288":{"morph":{"__isSmartRef__":true,"id":3172},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3289":{"sourceObj":{"__isSmartRef__":true,"id":3172},"sourceAttrName":"userName","targetObj":{"__isSmartRef__":true,"id":3172},"targetMethodName":"syncUserName","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3290},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"3290":{"source":{"__isSmartRef__":true,"id":3172},"target":{"__isSmartRef__":true,"id":3172}},"3291":{"sourceObj":{"__isSmartRef__":true,"id":3172},"sourceAttrName":"visible","targetObj":{"__isSmartRef__":true,"id":3292},"targetMethodName":"toggleState","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"3292":{"submorphs":[{"__isSmartRef__":true,"id":3293}],"scripts":[],"id":"B1436680-ACA0-4420-B3B8-F8C29B441E44","shape":{"__isSmartRef__":true,"id":3309},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3315},"value":false,"toggle":false,"isActive":true,"lighterFill":{"__isSmartRef__":true,"id":3316},"label":{"__isSmartRef__":true,"id":3293},"name":"ChatButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3326},"attributeConnections":[{"__isSmartRef__":true,"id":3329}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":3330},"renderContextTable":{"__isSmartRef__":true,"id":3331},"eventHandler":{"__isSmartRef__":true,"id":3332},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":1454},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":3333},"whiteboard":{"__isSmartRef__":true,"id":1426},"orderInTaskBar":2,"active":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3334},"__LivelyClassName__":"lively.morphic.Button"},"3293":{"submorphs":[],"scripts":[],"id":"61E5B6C2-9743-4E6D-A79D-43E83871EA3C","shape":{"__isSmartRef__":true,"id":3294},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3300},"_MaxTextWidth":20,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":3301},"_Padding":{"__isSmartRef__":true,"id":3302},"owner":{"__isSmartRef__":true,"id":3292},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3303},"textChunks":[{"__isSmartRef__":true,"id":3304}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3306},"eventHandler":{"__isSmartRef__":true,"id":3307},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"_FontSize":10,"_TextColor":{"__isSmartRef__":true,"id":3308},"__LivelyClassName__":"lively.morphic.Text"},"3294":{"position":{"__isSmartRef__":true,"id":3295},"_Extent":{"__isSmartRef__":true,"id":3296},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3297},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3298},"_Padding":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3295":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3296":{"x":20,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3297":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3298":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3299":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3300":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3301":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3302":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3303":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3304":{"style":{"__isSmartRef__":true,"id":3305},"chunkOwner":{"__isSmartRef__":true,"id":3293},"storedString":"C","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3305":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3306":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"3307":{"morph":{"__isSmartRef__":true,"id":3293},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3308":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3309":{"position":{"__isSmartRef__":true,"id":3310},"_Extent":{"__isSmartRef__":true,"id":3311},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":3312},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3313},"_Padding":{"__isSmartRef__":true,"id":3314},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3310":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3311":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3312":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3313":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3314":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3315":{"x":61,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3316":{"stops":[{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3319},{"__isSmartRef__":true,"id":3321},{"__isSmartRef__":true,"id":3323}],"vector":{"__isSmartRef__":true,"id":3325},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3317":{"offset":0,"color":{"__isSmartRef__":true,"id":3318}},"3318":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3319":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3320}},"3320":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3321":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3322}},"3322":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3323":{"offset":1,"color":{"__isSmartRef__":true,"id":3324}},"3324":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3325":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3326":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":3327}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3327":{"date":{"__isSmartRef__":true,"id":3328},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"3328":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"3329":{"sourceObj":{"__isSmartRef__":true,"id":3292},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3292},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3330":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3331":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3332":{"morph":{"__isSmartRef__":true,"id":3292},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3333":{"x":32,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3334":{"toggleState":{"__isSmartRef__":true,"id":3335},"setInactive":{"__isSmartRef__":true,"id":3339},"onFire":{"__isSmartRef__":true,"id":3343},"setActive":{"__isSmartRef__":true,"id":3347}},"3335":{"varMapping":{"__isSmartRef__":true,"id":3336},"source":"function toggleState(bool) {\n    if (bool)\n        this.setActive();\n    else\n        this.setInactive();\n    this.setFill(this.normalFill)\n}","funcProperties":{"__isSmartRef__":true,"id":3337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3336":{"this":{"__isSmartRef__":true,"id":3292}},"3337":{"timestamp":{"__isSmartRef__":true,"id":3338},"user":"athomschke","tags":[]},"3338":{"isSerializedDate":true,"string":"Fri May 18 2012 11:34:12 GMT+0200 (CEST)"},"3339":{"varMapping":{"__isSmartRef__":true,"id":3340},"source":"function setInactive() {\n        this.active = false;\n        this.normalFill = this.normalFillInactive;\n    }","funcProperties":{"__isSmartRef__":true,"id":3341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3340":{"this":{"__isSmartRef__":true,"id":3292}},"3341":{"timestamp":{"__isSmartRef__":true,"id":3342},"user":"athomschke","tags":[]},"3342":{"isSerializedDate":true,"string":"Fri May 18 2012 11:34:12 GMT+0200 (CEST)"},"3343":{"varMapping":{"__isSmartRef__":true,"id":3344},"source":"function onFire() {\n        this.whiteboard.chat.toggle()\n    }","funcProperties":{"__isSmartRef__":true,"id":3345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3344":{"this":{"__isSmartRef__":true,"id":3292}},"3345":{"timestamp":{"__isSmartRef__":true,"id":3346},"user":"athomschke","tags":[]},"3346":{"isSerializedDate":true,"string":"Fri May 18 2012 11:34:12 GMT+0200 (CEST)"},"3347":{"varMapping":{"__isSmartRef__":true,"id":3348},"source":"function setActive() {\n        this.active = true;\n        this.normalFillInactive = this.owner.menuButton.normalFill\n        this.normalFill = Color.green;\n    }","funcProperties":{"__isSmartRef__":true,"id":3349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3348":{"this":{"__isSmartRef__":true,"id":3292}},"3349":{"timestamp":{"__isSmartRef__":true,"id":3350},"user":"athomschke","tags":[]},"3350":{"isSerializedDate":true,"string":"Fri May 18 2012 12:04:12 GMT+0200 (CEST)"},"3351":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3352}},"3352":{"test01IsMorph":{"__isSmartRef__":true,"id":3353}},"3353":{"varMapping":{"__isSmartRef__":true,"id":3354},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3355},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3354":{"this":{"__isSmartRef__":true,"id":3351}},"3355":{},"3356":{"x":332.6,"y":582.1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3357":{"adjustForNewBounds":true,"moveHorizontal":true,"resizeWidth":false,"resizeHeight":true},"3358":{"x":209,"y":-16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3359":{},"3360":{"onrestore":{"__isSmartRef__":true,"id":3361},"hide":{"__isSmartRef__":true,"id":3369},"initializeCommands":{"__isSmartRef__":true,"id":3373},"setupConnections":{"__isSmartRef__":true,"id":3377},"getChatButton":{"__isSmartRef__":true,"id":3381},"setUserName":{"__isSmartRef__":true,"id":3385},"syncUserName":{"__isSmartRef__":true,"id":3389},"toggle":{"__isSmartRef__":true,"id":3393},"isVisible":{"__isSmartRef__":true,"id":3397},"show":{"__isSmartRef__":true,"id":3405},"showMessage":{"__isSmartRef__":true,"id":3409},"sendMessage":{"__isSmartRef__":true,"id":3413},"getUserName":{"__isSmartRef__":true,"id":3417},"processCommand":{"__isSmartRef__":true,"id":3421},"reset":{"__isSmartRef__":true,"id":3425},"callCommand":{"__isSmartRef__":true,"id":3429}},"3361":{"varMapping":{"__isSmartRef__":true,"id":3362},"source":"function onrestore() {\n    this.setExtent(pt(332.6,582.1));\n    this.visible = false;\n    this.hide();\n    this.initializeCommands();\n}","funcProperties":{"__isSmartRef__":true,"id":3367},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3362":{"this":{"__isSmartRef__":true,"id":3172},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3363}},"3363":{"$super":{"__isSmartRef__":true,"id":3364}},"3364":{"varMapping":{"__isSmartRef__":true,"id":3365},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3366},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3365":{"obj":{"__isSmartRef__":true,"id":3172},"name":"onrestore"},"3366":{},"3367":{"timestamp":{"__isSmartRef__":true,"id":3368},"user":"conradcalmez","tags":[]},"3368":{"isSerializedDate":true,"string":"Mon May 07 2012 20:14:36 GMT+0200 (CEST)"},"3369":{"varMapping":{"__isSmartRef__":true,"id":3370},"source":"function hide() {\n    this.setPosition(pt(0, 0));\n    this.setVisible(false);\n}","funcProperties":{"__isSmartRef__":true,"id":3371},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3370":{"this":{"__isSmartRef__":true,"id":3172}},"3371":{"timestamp":{"__isSmartRef__":true,"id":3372},"user":"conradcalmez","tags":[]},"3372":{"isSerializedDate":true,"string":"Wed May 02 2012 15:40:19 GMT+0200 (CEST)"},"3373":{"varMapping":{"__isSmartRef__":true,"id":3374},"source":"function initializeCommands() {\n    this.commands = {\n        'nick': function (name) {\n            this.setUserName(name);\n            this.showMessage(\"changed nick to \" + name);\n        },\n        'names': function () {\n            this.whiteboard.getConnectedUserNames();\n        },\n        'channel': function (channel) {\n            this.whiteboard.setChannel(channel);\n        },\n        'chan': this.commands['channel'],\n        'clear': function () {\n            this.whiteboard.clear();\n        },\n        'activate': function () {\n            this.whiteboard.activate();\n        },\n        'a': this.commands['activate'],\n        'deactivate': function () {\n            this.whiteboard.deactivate();\n        },\n        'd': this.commands['deactivate'],\n        'color': function (r, g, b, a) {\n            this.whiteboard.setColor(Color.rgba(r, g, b, a));\n        },\n        'c': this.commands['color'],\n        'pencil': function (size) {\n            this.whiteboard.setPencilSize(size);\n        },\n        'p': this.commands['pencil'],\n        'pencilstyler': function () {\n            this.pencilStyler.toggle();\n        },\n        'ps': this.commands['pencilstyler'],\n        'chat': function () {\n            this.toggle();\n        },\n        'help': function () {\n            var helpText = \"HELP :: (available commands)\\n\";\n            helpText += \"----------------------------\\n\\n\"\n            helpText += \"/help\\n :: prints this help text\\n\"\n            helpText += \"/nick \\n :: sets your nick name\\n\"\n            helpText += \"/names\\n :: shows the users in your channel\\n\"\n            helpText += \"/chan \\n :: sets the channel you are in\\n\"\n            helpText += \"/clear\\n :: clears your whiteboard\\n\"\n            helpText += \"/activate\\n :: takes your whiteboard online\\n\"\n            helpText += \"/deactivate\\n :: takes your whiteboard offline\\n\"\n            helpText += \"/color    \\n :: sets the color of your pencil\\n\"\n            helpText += \"/pencil \\n :: sets the size of your pencil in pixels\\n\"\n            helpText += \"/pencilstyler\\n :: toggles the pencil styler\\n\"\n            helpText += \"/chat\\n :: toggles the chat pane\\n\"\n            this.showMessage(helpText);\n        },\n        'h': this.commands['help'],\n    };\n}","funcProperties":{"__isSmartRef__":true,"id":3375},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3374":{"this":{"__isSmartRef__":true,"id":3172}},"3375":{"timestamp":{"__isSmartRef__":true,"id":3376},"user":"conradcalmez","tags":[]},"3376":{"isSerializedDate":true,"string":"Mon May 07 2012 21:55:41 GMT+0200 (CEST)"},"3377":{"varMapping":{"__isSmartRef__":true,"id":3378},"source":"function setupConnections() {\n    this.attributeConnections.invoke('disconnect');\n    connect(this, \"userName\", this, \"syncUserName\", {});\n    connect(this, 'visible', this.getChatButton(), 'toggleState');\n}","funcProperties":{"__isSmartRef__":true,"id":3379},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3378":{"this":{"__isSmartRef__":true,"id":3172}},"3379":{"timestamp":{"__isSmartRef__":true,"id":3380},"user":"athomschke","tags":[]},"3380":{"isSerializedDate":true,"string":"Fri May 18 2012 10:50:38 GMT+0200 (CEST)"},"3381":{"varMapping":{"__isSmartRef__":true,"id":3382},"source":"function getChatButton() {\n    return this.owner.titleBar.get('ChatButton')\n}","funcProperties":{"__isSmartRef__":true,"id":3383},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3382":{"this":{"__isSmartRef__":true,"id":3172}},"3383":{"timestamp":{"__isSmartRef__":true,"id":3384},"user":"athomschke","tags":[]},"3384":{"isSerializedDate":true,"string":"Fri May 18 2012 10:49:59 GMT+0200 (CEST)"},"3385":{"varMapping":{"__isSmartRef__":true,"id":3386},"source":"function setUserName(name) {\n    this.userName = name;\n}","funcProperties":{"__isSmartRef__":true,"id":3387},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3386":{"this":{"__isSmartRef__":true,"id":3172}},"3387":{"timestamp":{"__isSmartRef__":true,"id":3388},"user":"conradcalmez","tags":[]},"3388":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:02:29 GMT+0200 (CEST)"},"3389":{"varMapping":{"__isSmartRef__":true,"id":3390},"source":"function syncUserName(name) {\n    if (this.whiteboard.active) {\n        this.whiteboard.socket.emit('nick', {message: name, broadcast: true});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3391},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3390":{"this":{"__isSmartRef__":true,"id":3172}},"3391":{"timestamp":{"__isSmartRef__":true,"id":3392},"user":"conradcalmez","tags":[]},"3392":{"isSerializedDate":true,"string":"Wed May 02 2012 19:15:33 GMT+0200 (CEST)"},"3393":{"varMapping":{"__isSmartRef__":true,"id":3394},"source":"function toggle() {\n    if (this.visible) {\n        this.hide();\n        this.visible = false;\n    } else {\n        this.show();\n        this.visible = true;\n        this.get(\"InputField\").focus();\n    }\n    if (this.pencilStyler.isVisible()) {\n        this.pencilStyler.show();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3395},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3394":{"this":{"__isSmartRef__":true,"id":3172}},"3395":{"timestamp":{"__isSmartRef__":true,"id":3396},"user":"conradcalmez","tags":[]},"3396":{"isSerializedDate":true,"string":"Wed May 02 2012 19:31:38 GMT+0200 (CEST)"},"3397":{"varMapping":{"__isSmartRef__":true,"id":3398},"source":"function isVisible() {\n    return this.visible || false;\n}","funcProperties":{"__isSmartRef__":true,"id":3403},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3398":{"this":{"__isSmartRef__":true,"id":3172},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3399}},"3399":{"$super":{"__isSmartRef__":true,"id":3400}},"3400":{"varMapping":{"__isSmartRef__":true,"id":3401},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3402},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3401":{"obj":{"__isSmartRef__":true,"id":3172},"name":"isVisible"},"3402":{},"3403":{"timestamp":{"__isSmartRef__":true,"id":3404},"user":"conradcalmez","tags":[]},"3404":{"isSerializedDate":true,"string":"Thu Apr 26 2012 17:52:17 GMT+0200 (CEST)"},"3405":{"varMapping":{"__isSmartRef__":true,"id":3406},"source":"function show() {\n    var titlebarOffset = this.owner.get(\"TitleBar\").getExtent().y;\n    var windowOffset = this.owner.getExtent().x + 1;\n    this.setPosition(pt(windowOffset, titlebarOffset));\n    this.setVisible(true);\n}","funcProperties":{"__isSmartRef__":true,"id":3407},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3406":{"this":{"__isSmartRef__":true,"id":3172}},"3407":{"timestamp":{"__isSmartRef__":true,"id":3408},"user":"conradcalmez","tags":[]},"3408":{"isSerializedDate":true,"string":"Wed May 02 2012 15:40:25 GMT+0200 (CEST)"},"3409":{"varMapping":{"__isSmartRef__":true,"id":3410},"source":"function showMessage(message, optNick) {\n    var pane = this.get(\"ConsolePane\").get(\"TextPane\");\n    var currentText = pane.getRichText();\n    var text = new lively.morphic.RichText();\n    text.initialize();\n    var messageText = new lively.morphic.RichText();\n    if (message.isRichText) {\n        messageText.initialize();\n        messageText.setTextChunks(message.getTextChunks());    \n    } else {\n        messageText.initialize(message);\n    };\n    if (optNick) {\n        text.setTextChunks(\n            new lively.morphic.RichText(\"<\" + optNick.name + \"> \").getTextChunks().concat(\n                messageText.getTextChunks()\n            )\n        );\n        text.emphasize({color: optNick.color}, 1, optNick.name.length+1);\n        text.emphasize({fontWeight: 'bold'}, 0, optNick.name.length+2);\n    } else {\n        text.setTextChunks(\n            messageText.getTextChunks()\n        );\n        //text.emphasize({fontWeight: 'normal'}, 0, text.textString.length);\n    }\n    var richText = new lively.morphic.RichText();\n    richText.initialize();\n    if (currentText.textString.length == 0) {\n        richText.setTextChunks(text.getTextChunks());\n    } else {\n        richText.setTextChunks(\n            currentText.getTextChunks().concat(\n                new lively.morphic.RichText(\"\\n\").getTextChunks().concat(\n                    text.getTextChunks()\n                )\n        ));\n    }\n    pane.setRichText(richText);\n}","funcProperties":{"__isSmartRef__":true,"id":3411},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3410":{"this":{"__isSmartRef__":true,"id":3172}},"3411":{"timestamp":{"__isSmartRef__":true,"id":3412},"user":"conradcalmez","tags":[]},"3412":{"isSerializedDate":true,"string":"Mon May 14 2012 18:02:20 GMT+0200 (CEST)"},"3413":{"varMapping":{"__isSmartRef__":true,"id":3414},"source":"function sendMessage(messageText) {\n    if (this.whiteboard.active) {\n        this.whiteboard.socket.emit('chat', {\n            message: messageText,\n            me: true,\n            broadcast: true,\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3415},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3414":{"this":{"__isSmartRef__":true,"id":3172}},"3415":{"timestamp":{"__isSmartRef__":true,"id":3416},"user":"conradcalmez","tags":[]},"3416":{"isSerializedDate":true,"string":"Wed May 02 2012 19:15:59 GMT+0200 (CEST)"},"3417":{"varMapping":{"__isSmartRef__":true,"id":3418},"source":"function getUserName() {\n    return this.userName || lively.morphic.World.current().getUserName();\n}","funcProperties":{"__isSmartRef__":true,"id":3419},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3418":{"this":{"__isSmartRef__":true,"id":3172}},"3419":{"timestamp":{"__isSmartRef__":true,"id":3420},"user":"conradcalmez","tags":[]},"3420":{"isSerializedDate":true,"string":"Fri May 04 2012 15:06:17 GMT+0200 (CEST)"},"3421":{"varMapping":{"__isSmartRef__":true,"id":3422},"source":"function processCommand(commandString) {\n    this.callCommand(commandString.slice(1).split(\" \"));\n}","funcProperties":{"__isSmartRef__":true,"id":3423},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3422":{"this":{"__isSmartRef__":true,"id":3172}},"3423":{"timestamp":{"__isSmartRef__":true,"id":3424},"user":"conradcalmez","tags":[]},"3424":{"isSerializedDate":true,"string":"Mon May 07 2012 20:36:33 GMT+0200 (CEST)"},"3425":{"varMapping":{"__isSmartRef__":true,"id":3426},"source":"function reset() {\n    this.whiteboard = this.owner.get(\"WhiteBoard\");\n    this.pencilStyler = this.owner.get(\"PencilStyler\");\n    this.initializeCommands();\n    this.hide();\n    this.visible = false;\n    this.setUserName(\"\");\n    this.get(\"TextPane\").setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":3427},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3426":{"this":{"__isSmartRef__":true,"id":3172}},"3427":{"timestamp":{"__isSmartRef__":true,"id":3428},"user":"athomschke","tags":[]},"3428":{"isSerializedDate":true,"string":"Wed May 09 2012 19:09:12 GMT+0200 (CEST)"},"3429":{"varMapping":{"__isSmartRef__":true,"id":3430},"source":"function callCommand(command) {\n    var func = this.commands[command[0]]\n    if (func) {\n        func.apply(this, command.slice(1));\n    } else {\n        this.showMessage(\"!ERROR :: command \\\"\" + command[0] + \"\\\" is not available\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3431},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3430":{"this":{"__isSmartRef__":true,"id":3172}},"3431":{"timestamp":{"__isSmartRef__":true,"id":3432},"user":"conradcalmez","tags":[]},"3432":{"isSerializedDate":true,"string":"Tue May 08 2012 17:49:27 GMT+0200 (CEST)"},"3433":{"onrestore":{"__isSmartRef__":true,"id":3434},"setupConnections":{"__isSmartRef__":true,"id":3442},"getPencilButton":{"__isSmartRef__":true,"id":3446},"updateTarget":{"__isSmartRef__":true,"id":3450},"updateSliderColor":{"__isSmartRef__":true,"id":3454},"updateColorSlider":{"__isSmartRef__":true,"id":3458},"updateAlphaSlider":{"__isSmartRef__":true,"id":3462},"setBorderFillOfTarget":{"__isSmartRef__":true,"id":3466},"setBorderWidthOfTarget":{"__isSmartRef__":true,"id":3470},"nextSlide":{"__isSmartRef__":true,"id":3474},"previousSlide":{"__isSmartRef__":true,"id":3478},"setBorderStyleOfTarget":{"__isSmartRef__":true,"id":3482},"hide":{"__isSmartRef__":true,"id":3486},"isVisible":{"__isSmartRef__":true,"id":3490},"show":{"__isSmartRef__":true,"id":3498},"toggle":{"__isSmartRef__":true,"id":3502},"reset":{"__isSmartRef__":true,"id":3506}},"3434":{"varMapping":{"__isSmartRef__":true,"id":3435},"source":"function onrestore() {\n    $super();\n    module('projects.BP2012.InteractionWithIPad.CSSTransitions').load();\n    this.whiteboard = this.owner.get('WhiteBoard');\n    // module ('projects.BP2012.ToolWorld').load(true)\n    // this.beTool()\n}","funcProperties":{"__isSmartRef__":true,"id":3440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3435":{"this":{"__isSmartRef__":true,"id":1513},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3436}},"3436":{"$super":{"__isSmartRef__":true,"id":3437}},"3437":{"varMapping":{"__isSmartRef__":true,"id":3438},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3439},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3438":{"obj":{"__isSmartRef__":true,"id":1513},"name":"onrestore"},"3439":{},"3440":{"timestamp":{"__isSmartRef__":true,"id":3441},"user":"conradcalmez","tags":[]},"3441":{"isSerializedDate":true,"string":"Fri May 04 2012 15:07:51 GMT+0200 (CEST)"},"3442":{"varMapping":{"__isSmartRef__":true,"id":3443},"source":"function setupConnections() {\n    connect(this, 'visible', this.getPencilButton(), 'toggleState')\n}","funcProperties":{"__isSmartRef__":true,"id":3444},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3443":{"this":{"__isSmartRef__":true,"id":1513}},"3444":{"timestamp":{"__isSmartRef__":true,"id":3445},"user":"athomschke","tags":[]},"3445":{"isSerializedDate":true,"string":"Fri May 18 2012 10:52:03 GMT+0200 (CEST)"},"3446":{"varMapping":{"__isSmartRef__":true,"id":3447},"source":"function getPencilButton() {\n    return this.owner.titleBar.get('PencilButton')\n}","funcProperties":{"__isSmartRef__":true,"id":3448},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3447":{"this":{"__isSmartRef__":true,"id":1513}},"3448":{"timestamp":{"__isSmartRef__":true,"id":3449},"user":"athomschke","tags":[]},"3449":{"isSerializedDate":true,"string":"Fri May 18 2012 10:51:26 GMT+0200 (CEST)"},"3450":{"varMapping":{"__isSmartRef__":true,"id":3451},"source":"function updateTarget(target) {\n    if(target) {\n        this.updateSliderColor(target.getColor());\n        this.widthSlider.setValue(target.getPencilSize()-1);\n        this.borderStyleList.setSelection(target.getPencilStyle());\n    }\n    else {\n        this.updateSliderColor(Color.white);\n        this.widthSlider.setValue(0);\n        this.borderStyleList.setSelection(\"solid\");\n    }    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":3452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3451":{"this":{"__isSmartRef__":true,"id":1513}},"3452":{"timestamp":{"__isSmartRef__":true,"id":3453},"user":"conradcalmez","tags":[]},"3453":{"isSerializedDate":true,"string":"Wed May 02 2012 15:28:28 GMT+0200 (CEST)"},"3454":{"varMapping":{"__isSmartRef__":true,"id":3455},"source":"function updateSliderColor(color) {\n    this.updateColorSlider(color);\n    this.updateAlphaSlider(color);\n}","funcProperties":{"__isSmartRef__":true,"id":3456},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3455":{"this":{"__isSmartRef__":true,"id":1513}},"3456":{"timestamp":{"__isSmartRef__":true,"id":3457},"user":"conradcalmez","tags":[]},"3457":{"isSerializedDate":true,"string":"Wed May 02 2012 13:51:06 GMT+0200 (CEST)"},"3458":{"varMapping":{"__isSmartRef__":true,"id":3459},"source":"function updateColorSlider(color) {\n    this.slider.updateColor(color);\n    this.slider.setValue(0.5);\n}","funcProperties":{"__isSmartRef__":true,"id":3460},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3459":{"this":{"__isSmartRef__":true,"id":1513}},"3460":{"timestamp":{"__isSmartRef__":true,"id":3461},"user":"conradcalmez","tags":[]},"3461":{"isSerializedDate":true,"string":"Wed May 02 2012 13:51:25 GMT+0200 (CEST)"},"3462":{"varMapping":{"__isSmartRef__":true,"id":3463},"source":"function updateAlphaSlider(color) {\n    this.alphaSlider.updateColor(color);\n    this.alphaSlider.setValue(color.a);\n}","funcProperties":{"__isSmartRef__":true,"id":3464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3463":{"this":{"__isSmartRef__":true,"id":1513}},"3464":{"timestamp":{"__isSmartRef__":true,"id":3465},"user":"conradcalmez","tags":[]},"3465":{"isSerializedDate":true,"string":"Wed May 02 2012 13:51:51 GMT+0200 (CEST)"},"3466":{"varMapping":{"__isSmartRef__":true,"id":3467},"source":"function setBorderFillOfTarget(color) {\n    this.whiteboard.setColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":3468},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3467":{"this":{"__isSmartRef__":true,"id":1513}},"3468":{"timestamp":{"__isSmartRef__":true,"id":3469},"user":"conradcalmez","tags":[]},"3469":{"isSerializedDate":true,"string":"Wed May 02 2012 19:17:14 GMT+0200 (CEST)"},"3470":{"varMapping":{"__isSmartRef__":true,"id":3471},"source":"function setBorderWidthOfTarget(value) {\n    // this.target && this.target.setBorderWidth(value);\n    this.whiteboard.setPencilSize(value*5+1);\n}","funcProperties":{"__isSmartRef__":true,"id":3472},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3471":{"this":{"__isSmartRef__":true,"id":1513}},"3472":{"timestamp":{"__isSmartRef__":true,"id":3473},"user":"conradcalmez","tags":[]},"3473":{"isSerializedDate":true,"string":"Wed May 02 2012 19:17:29 GMT+0200 (CEST)"},"3474":{"varMapping":{"__isSmartRef__":true,"id":3475},"source":"function nextSlide() {\n    this.colorChooser.nextSlide();\n}","funcProperties":{"__isSmartRef__":true,"id":3476},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3475":{"this":{"__isSmartRef__":true,"id":1513}},"3476":{"timestamp":{"__isSmartRef__":true,"id":3477},"user":"conradcalmez","tags":[]},"3477":{"isSerializedDate":true,"string":"Wed May 02 2012 14:15:52 GMT+0200 (CEST)"},"3478":{"varMapping":{"__isSmartRef__":true,"id":3479},"source":"function previousSlide() {\n    this.colorChooser.previousSlide();\n}","funcProperties":{"__isSmartRef__":true,"id":3480},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3479":{"this":{"__isSmartRef__":true,"id":1513}},"3480":{"timestamp":{"__isSmartRef__":true,"id":3481},"user":"conradcalmez","tags":[]},"3481":{"isSerializedDate":true,"string":"Wed May 02 2012 14:15:57 GMT+0200 (CEST)"},"3482":{"varMapping":{"__isSmartRef__":true,"id":3483},"source":"function setBorderStyleOfTarget(value) {\n    // this.target && this.target.applyStyle({\n        // borderStyle: value,\n    // });\n    this.whiteboard.setPencilStyle(value);\n}","funcProperties":{"__isSmartRef__":true,"id":3484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3483":{"this":{"__isSmartRef__":true,"id":1513}},"3484":{"timestamp":{"__isSmartRef__":true,"id":3485},"user":"conradcalmez","tags":[]},"3485":{"isSerializedDate":true,"string":"Wed May 02 2012 19:17:23 GMT+0200 (CEST)"},"3486":{"varMapping":{"__isSmartRef__":true,"id":3487},"source":"function hide() {\n    this.setPosition(pt(0, 0));\n    this.setVisible(false);\n}","funcProperties":{"__isSmartRef__":true,"id":3488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3487":{"this":{"__isSmartRef__":true,"id":1513}},"3488":{"timestamp":{"__isSmartRef__":true,"id":3489},"user":"conradcalmez","tags":[]},"3489":{"isSerializedDate":true,"string":"Wed May 02 2012 13:41:45 GMT+0200 (CEST)"},"3490":{"varMapping":{"__isSmartRef__":true,"id":3491},"source":"function isVisible() {\n    return this.visible || false;\n}","funcProperties":{"__isSmartRef__":true,"id":3496},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3491":{"this":{"__isSmartRef__":true,"id":1513},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3492}},"3492":{"$super":{"__isSmartRef__":true,"id":3493}},"3493":{"varMapping":{"__isSmartRef__":true,"id":3494},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3495},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3494":{"obj":{"__isSmartRef__":true,"id":1513},"name":"isVisible"},"3495":{},"3496":{"timestamp":{"__isSmartRef__":true,"id":3497},"user":"conradcalmez","tags":[]},"3497":{"isSerializedDate":true,"string":"Wed May 02 2012 13:41:45 GMT+0200 (CEST)"},"3498":{"varMapping":{"__isSmartRef__":true,"id":3499},"source":"function show() {\n    var titlebarOffset = this.owner.get(\"TitleBar\").getExtent().y;\n    var windowOffset = this.owner.getExtent().x + 1;\n    if (this.chat.isVisible()) {\n        windowOffset += this.chat.getExtent().x;\n    }\n    this.setPosition(pt(windowOffset, titlebarOffset));\n    this.setVisible(true);\n    this.updateTarget(this.whiteboard);\n}","funcProperties":{"__isSmartRef__":true,"id":3500},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3499":{"this":{"__isSmartRef__":true,"id":1513}},"3500":{"timestamp":{"__isSmartRef__":true,"id":3501},"user":"conradcalmez","tags":[]},"3501":{"isSerializedDate":true,"string":"Wed May 02 2012 19:26:50 GMT+0200 (CEST)"},"3502":{"varMapping":{"__isSmartRef__":true,"id":3503},"source":"function toggle() {\n    if (this.visible) {\n        this.hide();\n        this.visible = false;\n    } else {\n        this.show();\n        this.visible = true;\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3504},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3503":{"this":{"__isSmartRef__":true,"id":1513}},"3504":{"timestamp":{"__isSmartRef__":true,"id":3505},"user":"conradcalmez","tags":[]},"3505":{"isSerializedDate":true,"string":"Wed May 02 2012 13:41:45 GMT+0200 (CEST)"},"3506":{"varMapping":{"__isSmartRef__":true,"id":3507},"source":"function reset() {\n    this.chat = this.owner.get(\"ChatPane\");\n    this.updateTarget(this.whiteboard);\n    this.hide();\n    this.visible = false;\n}","funcProperties":{"__isSmartRef__":true,"id":3508},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3507":{"this":{"__isSmartRef__":true,"id":1513}},"3508":{"timestamp":{"__isSmartRef__":true,"id":3509},"user":"athomschke","tags":[]},"3509":{"isSerializedDate":true,"string":"Wed May 09 2012 19:08:37 GMT+0200 (CEST)"},"3510":{"renderContextTable":{"__isSmartRef__":true,"id":3511},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3512},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":3513},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3514},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3511":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3512":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3513":{"x":952.8027036045055,"y":605.901351802253,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3514":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3515":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3516":{"morph":{"__isSmartRef__":true,"id":1512},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3517":{"adjustForNewBounds":true},"3518":{"x":146,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3519":{"x":952.8027036045055,"y":605.901351802253,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3520":{"a":1,"b":0,"c":0,"d":1,"e":603,"f":145,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"3521":{"x":954.8027036045055,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3522":{"a":1,"b":0,"c":0,"d":1,"e":678,"f":276,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"3523":{"partsSpaceName":"PartsBin/BP2012/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A whiteboard designed for syncing with other worlds, based on svg paintings. It is ably to sync whole morphs, too.","migrationLevel":4,"partName":"AlmostRealSync","changes":[{"__isSmartRef__":true,"id":3524},{"__isSmartRef__":true,"id":3526},{"__isSmartRef__":true,"id":3528},{"__isSmartRef__":true,"id":3530},{"__isSmartRef__":true,"id":3532},{"__isSmartRef__":true,"id":3534},{"__isSmartRef__":true,"id":3536},{"__isSmartRef__":true,"id":3538},{"__isSmartRef__":true,"id":3540},{"__isSmartRef__":true,"id":3542},{"__isSmartRef__":true,"id":3544},{"__isSmartRef__":true,"id":3546},{"__isSmartRef__":true,"id":3548},{"__isSmartRef__":true,"id":3550},{"__isSmartRef__":true,"id":3552},{"__isSmartRef__":true,"id":3554},{"__isSmartRef__":true,"id":3556},{"__isSmartRef__":true,"id":3558},{"__isSmartRef__":true,"id":3560},{"__isSmartRef__":true,"id":3562},{"__isSmartRef__":true,"id":3564},{"__isSmartRef__":true,"id":3566},{"__isSmartRef__":true,"id":3568},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3572},{"__isSmartRef__":true,"id":3574},{"__isSmartRef__":true,"id":3576},{"__isSmartRef__":true,"id":3578},{"__isSmartRef__":true,"id":3580},{"__isSmartRef__":true,"id":3582},{"__isSmartRef__":true,"id":3584},{"__isSmartRef__":true,"id":3586},{"__isSmartRef__":true,"id":3588}],"revisionOnLoad":164004,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3524":{"date":{"__isSmartRef__":true,"id":3525},"author":"conradcalmez","message":"disconnect old connection to buttons on reset","id":"73D533C7-48BA-40A6-9811-3F5268441F63"},"3525":{"isSerializedDate":true,"string":"Tue May 15 2012 15:55:48 GMT+0200 (CEST)"},"3526":{"date":{"__isSmartRef__":true,"id":3527},"author":"undefined","message":"merged with applying added and removed morphs","id":"FBA3FB23-A196-4B3B-B9A4-BFBCD22C9B7B"},"3527":{"isSerializedDate":true,"string":"Tue May 15 2012 10:53:04 GMT+0200 (CEST)"},"3528":{"date":{"__isSmartRef__":true,"id":3529},"author":"athomschke","message":"I hopefully merged the new iPad morph dragging functionality correctly with conrads new transformations.","id":"7831E0B3-DA31-4BEF-A3BF-A7D05A6E7B27"},"3529":{"isSerializedDate":true,"string":"Tue May 08 2012 15:29:27 GMT+0200 (CEST)"},"3530":{"date":{"__isSmartRef__":true,"id":3531},"author":"conradcalmez","message":"last fixes before we go (hopefully)","id":"5A31AF3D-47CA-48C1-8005-8886A6C3E7F8"},"3531":{"isSerializedDate":true,"string":"Wed May 02 2012 08:07:05 GMT+0200 (CEST)"},"3532":{"date":{"__isSmartRef__":true,"id":3533},"author":"conradcalmez","message":"last fixes before we go.","id":"7353B8BF-FFBD-45FD-90AC-01ED94F01771"},"3533":{"isSerializedDate":true,"string":"Wed May 02 2012 08:05:22 GMT+0200 (CEST)"},"3534":{"date":{"__isSmartRef__":true,"id":3535},"author":"conradcalmez","message":"added /names and pencil size features","id":"BF425A3B-1FDE-4407-88E7-8E82C7F7C177"},"3535":{"isSerializedDate":true,"string":"Mon Apr 30 2012 09:12:21 GMT+0200 (CEST)"},"3536":{"date":{"__isSmartRef__":true,"id":3537},"author":"conradcalmez","message":"chat menu item was out of sync","id":"DB0AF77E-3879-4EDE-B492-0FB18E3B4CF7"},"3537":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:43:54 GMT+0200 (CEST)"},"3538":{"date":{"__isSmartRef__":true,"id":3539},"author":"conradcalmez","message":"update","id":"7EFE9327-DFF1-4A83-9CD2-D3CD845E0AE9"},"3539":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:42:09 GMT+0200 (CEST)"},"3540":{"date":{"__isSmartRef__":true,"id":3541},"author":"conradcalmez","message":"irc like commands","id":"54F1ED3B-C2C3-4449-B8D8-FE3ABCDA1626"},"3541":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:00:53 GMT+0200 (CEST)"},"3542":{"date":{"__isSmartRef__":true,"id":3543},"author":"conradcalmez","message":"empty input does not send message","id":"11316392-62F2-43F0-BFA8-46992E692BE8"},"3543":{"isSerializedDate":true,"string":"Fri Apr 27 2012 12:20:07 GMT+0200 (CEST)"},"3544":{"date":{"__isSmartRef__":true,"id":3545},"author":"conradcalmez","message":"added support for showing user names on client side","id":"F2A08A9F-07AB-474A-BAA0-C572AEAC1794"},"3545":{"isSerializedDate":true,"string":"Fri Apr 27 2012 11:57:57 GMT+0200 (CEST)"},"3546":{"date":{"__isSmartRef__":true,"id":3547},"author":"conradcalmez","message":"small chat fix","id":"ED314F3A-3FDF-4FE8-B84D-C8AA930292B1"},"3547":{"isSerializedDate":true,"string":"Fri Apr 27 2012 11:01:33 GMT+0200 (CEST)"},"3548":{"date":{"__isSmartRef__":true,"id":3549},"author":"conradcalmez","message":"refined chat functionality","id":"256DC98B-38BA-4A85-9EF1-830A9D4C702B"},"3549":{"isSerializedDate":true,"string":"Fri Apr 27 2012 10:26:51 GMT+0200 (CEST)"},"3550":{"date":{"__isSmartRef__":true,"id":3551},"author":"conradcalmez","message":"added chat GUI","id":"4254F06C-37FB-46DC-851F-350EA895BDA3"},"3551":{"isSerializedDate":true,"string":"Thu Apr 26 2012 18:08:43 GMT+0200 (CEST)"},"3552":{"date":{"__isSmartRef__":true,"id":3553},"author":"undefined","message":"integrated sync morph functionality","id":"ACDC1527-238D-4D72-AAA1-407F1EEA02CF"},"3553":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:18:37 GMT+0200 (CEST)"},"3554":{"date":{"__isSmartRef__":true,"id":3555},"author":"undefined","message":"copied and adapted from WhiteBoard part","id":"9BB5FF37-8D16-40E8-AD37-E352A5BC7BC2"},"3555":{"isSerializedDate":true,"string":"Wed Apr 18 2012 14:01:32 GMT+0200 (CEST)"},"3556":{"date":{"__isSmartRef__":true,"id":3557},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3557":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3558":{"date":{"__isSmartRef__":true,"id":3559},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3559":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3560":{"date":{"__isSmartRef__":true,"id":3561},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3561":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3562":{"date":{"__isSmartRef__":true,"id":3563},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3563":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3564":{"date":{"__isSmartRef__":true,"id":3565},"author":"undefined","message":"first adjustments to socket io","id":"E438495A-1570-47C0-8E70-40BE904677BE"},"3565":{"isSerializedDate":true,"string":"Tue Apr 24 2012 15:30:50 GMT+0200 (CEST)"},"3566":{"date":{"__isSmartRef__":true,"id":3567},"author":"undefined","message":"restoring older version","id":"DF0E5C88-D6B0-491C-A9BB-A37C9146CD21"},"3567":{"isSerializedDate":true,"string":"Wed Apr 25 2012 18:07:45 GMT+0200 (CEST)"},"3568":{"date":{"__isSmartRef__":true,"id":3569},"author":"athomschke","message":"init - eveloped from WhiteBoard","id":"D9907B54-9746-4C92-8DD8-960F4EFD4B68"},"3569":{"isSerializedDate":true,"string":"Thu May 03 2012 11:46:55 GMT+0200 (CEST)"},"3570":{"date":{"__isSmartRef__":true,"id":3571},"author":"conradcalmez","message":"rebuild offset fix","id":"693EFA04-32AB-4FAF-A12E-E841FA33F2B9"},"3571":{"isSerializedDate":true,"string":"Tue May 08 2012 16:33:01 GMT+0200 (CEST)"},"3572":{"date":{"__isSmartRef__":true,"id":3573},"author":"conradcalmez","message":"fixed bug with alpha values","id":"4178C581-2FCB-47D2-9E0D-268644BD843D"},"3573":{"isSerializedDate":true,"string":"Tue May 08 2012 19:16:07 GMT+0200 (CEST)"},"3574":{"date":{"__isSmartRef__":true,"id":3575},"author":"conradcalmez","message":"fixed bug with alpha values","id":"45ED3AE9-C89C-43C7-A943-B9430B281B61"},"3575":{"isSerializedDate":true,"string":"Tue May 08 2012 19:17:44 GMT+0200 (CEST)"},"3576":{"date":{"__isSmartRef__":true,"id":3577},"author":"conradcalmez","message":"put button creation in onLoad","id":"8CF30CBF-6D1D-4723-A0BE-78C72E7A80DA"},"3577":{"isSerializedDate":true,"string":"Tue May 15 2012 15:33:02 GMT+0200 (CEST)"},"3578":{"date":{"__isSmartRef__":true,"id":3579},"author":"conradcalmez","message":"put button creation in onLoad","id":"13E0D54C-177F-4576-AAB9-701B9104B5AE"},"3579":{"isSerializedDate":true,"string":"Tue May 15 2012 15:33:26 GMT+0200 (CEST)"},"3580":{"date":{"__isSmartRef__":true,"id":3581},"author":"conradcalmez","message":"put button creation in onLoad","id":"96E1B143-91D3-45FD-A90E-CECC069001BC"},"3581":{"isSerializedDate":true,"string":"Tue May 15 2012 15:40:10 GMT+0200 (CEST)"},"3582":{"date":{"__isSmartRef__":true,"id":3583},"author":"athomschke","message":"moar bugs solved","id":"B9271DAE-D2A6-40D4-9131-931623EF403D"},"3583":{"isSerializedDate":true,"string":"Wed May 16 2012 13:43:02 GMT+0200 (CEST)"},"3584":{"date":{"__isSmartRef__":true,"id":3585},"author":"athomschke","message":"adding and removing morphs works *yay*","id":"5B9F1290-A0CA-4278-804B-346DB23DB376"},"3585":{"isSerializedDate":true,"string":"Wed May 16 2012 15:42:00 GMT+0200 (CEST)"},"3586":{"date":{"__isSmartRef__":true,"id":3587},"author":"athomschke","message":"ready for presentation","id":"E82C7184-87F2-4F45-82DC-45B6AF98B02F"},"3587":{"isSerializedDate":true,"string":"Wed May 16 2012 16:19:20 GMT+0200 (CEST)"},"3588":{"date":{"__isSmartRef__":true,"id":3589},"author":"athomschke","message":"connected buttons in another way","id":"D4834675-0BFE-468D-B2CF-DC14D26B1EAA"},"3589":{"isSerializedDate":true,"string":"Fri May 18 2012 11:09:39 GMT+0200 (CEST)"},"3590":{"x":880,"y":28,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3591":{"x":678,"y":276,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3592":{"x":603,"y":145,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3593":{"source":{"__isSmartRef__":true,"id":1469},"target":{"__isSmartRef__":true,"id":1512}},"3594":{"sourceObj":{"__isSmartRef__":true,"id":1469},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1512},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3595},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3595":{"source":{"__isSmartRef__":true,"id":1469},"target":{"__isSmartRef__":true,"id":1512}},"3596":{"submorphs":[{"__isSmartRef__":true,"id":3597}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3607},"derivationIds":[null,"312EC1E6-DFC7-408B-B9FE-60F56A7911F9","61DBD493-C549-4361-83C7-2AC4828CB74A","52CC1391-0477-48D4-8CC8-C3B770CDF70B","346E0D9C-7474-4597-B024-B8DC3B8C9CE8","4689BDCF-1076-491F-AE04-54348898E3BD","A45F0CFA-BDE1-45D1-B240-B6EEF40443E2","6F60961F-F6F3-4B27-AFE7-A672FF3C3B11","5A0B065D-0966-4BA0-91C5-88FD97DCED56","AEA54688-8013-4A87-99A5-312CC2E7C7AA","3A4EFB23-CF57-42BD-BA6A-87DE480B7927","E86AC316-DF8B-4B9D-A79C-4303026D4184","681C2D74-6B1C-465E-8D7F-25EBAF6B290E","DB9D83B3-5C5A-42B6-8784-9B8A6A0135E6","A33ABC8B-7483-4EB7-8FE7-F4F837FC9AA8","71E02750-4EB6-413C-9739-8D1A04B3BD7A","595F6996-393B-4A51-AF32-143813A84725","D0C329CA-EB78-4057-9E94-3FD1DDDD2A2A","D5ACC5B0-76CD-4A47-B983-46E2D959C6BC","5A0D3E80-C10E-4C75-B764-B05EF2D434E3","8D6E26DD-F064-452B-A08F-5B0ED1DD5B3B","4A1E02D5-7C9E-46E9-8A46-6C31B4CC77DE","BAFB02D2-32C4-49B9-8976-8143CC4FBED0","46408623-DC93-478B-B290-4FA542C17CBC","90D0363C-A352-4D9D-80D7-DF4578B56642","14770FF5-C733-487A-9EF3-808E5220D6EE","936000D4-F759-4244-8AED-45773CFE8A61","20FB70D0-E586-49FE-8BB4-4CDD169536D0","FB881494-737D-4F48-A7E4-8A20EA162C58","0270E17C-0AE9-414B-99CC-91DB249B4046","1DA4974C-F192-4DD0-869F-4EAD576076B0","EACC4238-F5FA-465C-BCE9-09AB5E5ABB5D","AB0710CB-487D-444D-A99C-286CD8876014","8A645753-BFA7-4422-93C5-232FA984C890","E78E11DB-637D-4009-A67F-2ABB348DCB8B","45F70BF1-9C95-4F45-B319-C3CEF31CE975","F031B2F7-0285-4B9E-AD86-8484F8502C68","7C633ABE-8F7D-4DE3-A42B-FE28F5F7C8D3","6AE76E52-52D3-4A20-9E17-F3F64892ED74","DE529410-4000-4397-972F-905B01A88AEB","785DAEF1-5C05-41F5-A155-DCDBAA29B96A","885540AF-A31A-48FE-8FED-4C74479ECB04","D7D61D3F-3952-4150-A7F1-7E81E3BA724B","A0C4BB92-D033-4DCC-9AB0-75A1AF85A3D3","4D449DE9-8FE6-49EA-9B10-7D538AE0C43C","3E6065F8-65F2-4A68-9F43-7600B1D0493E","2DB61F92-CF85-4E65-AA33-79FA8243E869","FF0683EB-D2F5-4617-86C7-B1E97A309B49","78A77109-384D-407A-9D39-A7648D3B58E6","503CE15E-41D9-4728-BC8B-12BA29C5162D","64BD9E25-ADAF-4FCD-8176-7CAC631B9C88"],"id":"7B0188D8-A260-4498-A0A0-F35D6400A01F","renderContextTable":{"__isSmartRef__":true,"id":3612},"eventHandler":{"__isSmartRef__":true,"id":3613},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":3614},"priorExtent":{"__isSmartRef__":true,"id":3615},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1487},"lighterFill":{"__isSmartRef__":true,"id":3616},"label":{"__isSmartRef__":true,"id":3597},"owner":{"__isSmartRef__":true,"id":1454},"attributeConnections":[{"__isSmartRef__":true,"id":3625},{"__isSmartRef__":true,"id":3627}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_ClipMode":"visible","__LivelyClassName__":"lively.morphic.WindowControl"},"3597":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3598},"derivationIds":[null,"DBEBA010-E133-4716-AAD3-EEA615964152","09A2D9A1-A183-4279-A0CA-EADB07A217C0","FF8CF4AB-1D84-4041-8B6F-3753565DC156","C635C466-7830-4107-994D-87A8D39930F5","18DDF6A2-8F11-4B4C-B6B7-5E8A9D8061DE","44BABFFE-DCDE-465C-A83F-42F1563B89D2","1F230AFE-AAAD-41AD-B8CC-1D08CEDD6BF3","3CB40F02-2BF6-4E2F-B2A0-2BD1E5DA42A1","26E58E0A-DC76-4C04-A343-3D7A40FD4E87","A7D3DE1E-D062-460B-8896-02A8F9A625F5","8C6C5730-0003-44CF-BCD2-2BDF38081DC5","92A170DC-1109-4981-89A2-393EA1B3A967","752AEE7E-5115-4027-8AE9-09A6EED6F7E2","EF98944F-53E8-478F-ACFC-0299B200AE2A","8DBAD8F3-5C77-4BE3-AC39-946970837F79","84FA3468-7E91-49FF-B67C-CA8F92F28F58","694AE31B-CF63-4E79-8920-5B6120813026","925AAD2B-CC3A-4E0E-8597-45DE27E1862D","B6426D67-8E36-4C40-BD7D-ED962C14EEE8","11539773-43F8-4852-AE6A-1AA4E537BA69","934EDB92-F0E5-48B7-BD04-B2702412DEE2","21F33E1E-513D-4BCB-A673-CDA509804A3E","6210C940-D5F7-489D-A25D-A92F7DF62856","858D3815-73F5-4131-AD3C-613C2B5F1F56","3BCB619F-A2DE-4CD3-AFB2-391E62116174","FC5ADEBB-E0DC-41E0-8189-BFF3DF95FF3E","E40B23F7-5DE0-41F3-99DD-5B83C9CAC955","E5D3C232-422F-4134-9F5A-8491F10142C7","DA0071B3-FA64-4DE2-9001-3924670506A7","1D4AC31C-5FBA-4D88-9B45-793FD7E6610A","CE20EE47-6B37-4F45-AAE5-9968D6F80AD9","8D0C585C-3EB4-4F7D-98FE-B1D517854C81","3DB3F837-C7C4-4CB9-8528-DF61DCD04C37","3B139B57-E7CF-40D7-A85A-A04895761D2F","9859E2D4-1C53-4AB3-B37A-BC7EFFA4B10F","C1ED9500-42D6-48C4-8F82-9B6B676B1327","EE43676A-D2AF-4F7C-BBD4-FDC953B4536B","E77EA0A7-4D28-4D5D-9F90-3BA1A4FD1A5F","A39DE447-8C45-42FC-8D22-DFF4489CDB04","B3A026CD-82A6-4CFA-8529-5CABA94D6977","EFAE5EEB-B492-4E18-BF13-E62C66ECD001","0EC8629E-E583-485A-9FAA-529B61107C3A","281BBE0A-318A-454D-B841-4FFA0090FAD1","B99B2238-E4D0-4EC1-B2CF-2C31EB27F613","55998C2E-A795-4B96-A3A8-F01D91A41784","05741B32-CD1D-49E4-ABD1-6F9A9E7503CC","926EE880-D59E-4EEE-8772-6EB0C260C099","0CCCA8C7-F782-40AA-B40C-D910E0B183E3","9D7661AF-6140-43CE-9237-3C9236EA7399","273D6C95-DD38-4237-8242-6F8EF44AC6FE"],"id":"36873FED-6B44-4F80-938F-B4B874E83750","renderContextTable":{"__isSmartRef__":true,"id":3602},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3603}],"eventHandler":{"__isSmartRef__":true,"id":3605},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3596},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":1461},"_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":3606},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"savedTextString":"M","__LivelyClassName__":"lively.morphic.Text"},"3598":{"_Position":{"__isSmartRef__":true,"id":3599},"renderContextTable":{"__isSmartRef__":true,"id":3600},"_Extent":{"__isSmartRef__":true,"id":3601},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3599":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3600":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3601":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3602":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"3603":{"style":{"__isSmartRef__":true,"id":3604},"chunkOwner":{"__isSmartRef__":true,"id":3597},"storedString":"M","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3604":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3605":{"morph":{"__isSmartRef__":true,"id":3597},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3606":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3607":{"_Position":{"__isSmartRef__":true,"id":3608},"renderContextTable":{"__isSmartRef__":true,"id":3609},"_Extent":{"__isSmartRef__":true,"id":3610},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3611},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1486},"_Fill":{"__isSmartRef__":true,"id":1487},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3608":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3610":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3611":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3612":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3613":{"morph":{"__isSmartRef__":true,"id":3596},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3614":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3615":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3616":{"stops":[{"__isSmartRef__":true,"id":3617},{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":3621},{"__isSmartRef__":true,"id":3623}],"vector":{"__isSmartRef__":true,"id":1496},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3617":{"offset":0,"color":{"__isSmartRef__":true,"id":3618}},"3618":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3619":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3620}},"3620":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3621":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3622}},"3622":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3623":{"offset":1,"color":{"__isSmartRef__":true,"id":3624}},"3624":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3625":{"sourceObj":{"__isSmartRef__":true,"id":3596},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1512},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3626},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3626":{"source":{"__isSmartRef__":true,"id":3596},"target":{"__isSmartRef__":true,"id":1512}},"3627":{"sourceObj":{"__isSmartRef__":true,"id":3596},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1512},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3628},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3628":{"source":{"__isSmartRef__":true,"id":3596},"target":{"__isSmartRef__":true,"id":1512}},"3629":{"submorphs":[{"__isSmartRef__":true,"id":3630}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3640},"derivationIds":[null,"CAE2F122-D25A-408D-A5D3-0AFDD1B43C2F","33D9E547-BCFD-4130-A8AB-E082A6DD1C58","67C4A9E2-0624-444F-B95F-3F82206DC52F","E5A15D49-9539-49F4-B353-1A8CFF672EE9","E30363BC-8A66-4520-836E-C7957D840D17","24210677-F0D3-4DFF-8F29-AC2D1D40D103","910F8A81-028A-4259-BD6B-E75E3A1C6207","AD31D91D-2E7A-4F1A-9312-D7C78016F043","96D36EB8-6FD5-4753-8DDE-4CB2D5A9644C","D2066B5C-B513-4479-91FD-D2673F3E7F85","EC402851-91FC-404F-A50A-C4188267F3FC","84CB4576-F59C-47D0-88E3-451734FA2F79","C52A29CF-B6AA-4ECF-B864-318B38B1E551","F9B8483F-15F6-4D07-B23E-A2EB0E24F778","0F9BCA7B-6965-4002-93F4-9EE8FA959DB1","685A11E4-E4FF-4EF3-AF55-76447C639168","F760A63A-D0EE-4E8B-B0E4-19938AD14ECA","BF52EEB6-22EE-464F-9BD2-123E1C9E4604","B6786614-98A7-4A71-8253-D29B2BD44F37","4BD8B043-7BBE-445F-A46C-C8F848A02CC8","971F7726-7505-40E2-A539-B3E4FD05B9B6","D5FFA36B-E841-4BF0-B91F-B06E51BB343E","BD3739BE-07A6-4DEE-83A9-4698D0560E89","9DB63195-1243-4C70-9D18-63459276089A","87FBA7BD-1B75-44A5-8B1A-5A2894193677","BFD88CFE-8DDA-4E5C-85D4-8F4A66932C28","B66795DF-F400-4BED-9F26-227CED3A6BF1","7545A5A9-8B1D-4A30-8262-0F5734C83023","AB24CA26-C292-4E2D-B756-115055DDE36B","E874A2D8-4F6F-4C22-94D0-32A9BDC22F74","95CA2CDA-565F-430F-A50C-919B816104FB","4F09AF3B-8ED8-4465-AA84-D14648CCCC59","73EC58E7-BEF2-4C60-9A64-1F4568378286","B8D14B72-E596-4FCC-B960-AE24AACD0670","8093310F-5960-4655-86D1-5D5F2E66B9F6","4EF90DDA-749F-4BAD-8EF6-44DFA5E803A8","9ECFD7F3-56EB-44B4-B5F1-94FC29D853C8","454DD7DD-C4CB-4331-8B62-347D5C272439","0AF125C5-2350-4211-9830-C1480B38385D","B26F9387-CA57-4728-BD28-076597FF4ED0","D430E133-944F-43AB-844E-6AB72D386D5D","0B5E43F0-E07A-4B4F-81D2-33AA662BB914","2753D769-F35E-4791-93FB-A3D1B2B6681F","9642C94E-B507-4A83-A334-CD17880C65BB","CCFEBCB8-D8A2-44E6-885C-45FC434D3A32","4379C0E4-C4A2-4B91-BBB8-DD19BE2D2FEB","D57C27FB-597E-4447-ACCF-4AD92B5E408E","5CE2567B-588B-4483-93DA-BA520A2CF620","4D6A0C59-7FAB-44E8-B7EB-F242D19B114C","D372B41B-03C9-4FA6-A305-E0C5CF544968"],"id":"81C6C6BB-71C8-4BB5-9287-683F2B4B1554","renderContextTable":{"__isSmartRef__":true,"id":3645},"eventHandler":{"__isSmartRef__":true,"id":3646},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":3647},"priorExtent":{"__isSmartRef__":true,"id":3648},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1487},"lighterFill":{"__isSmartRef__":true,"id":3649},"label":{"__isSmartRef__":true,"id":3630},"owner":{"__isSmartRef__":true,"id":1454},"layout":{"__isSmartRef__":true,"id":3658},"attributeConnections":[{"__isSmartRef__":true,"id":3659},{"__isSmartRef__":true,"id":3661}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_ClipMode":"visible","prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.WindowControl"},"3630":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3631},"derivationIds":[null,"B602C161-211E-4EFC-A7FA-0798284C1A7C","1D4ECD94-C60B-4EEC-B2FC-9118585629CA","82C24D9B-1BAE-4AC4-8579-1E908F15D053","95475BE1-FBE8-4FC6-B8B3-661400219686","F7D2AEA4-94FE-46F7-82B4-438A2AC6D78A","0768D3DE-BDE9-4951-8770-5ECBB0219A04","20416DD9-6A14-4205-8138-2812EC5F8123","76723FDA-C063-4AB4-958C-2A0154432AA8","B93EA06D-12E0-4A20-8A68-4AF6795C7232","EDDA2588-9043-44A6-BBD1-C3947BF31A32","E00F47FF-9B8E-4A29-9A83-80CB030B22C7","C6432967-7AE7-498D-8158-D00EE33FAC3C","3740D749-4A7A-4070-883B-50D01632A4F0","87D87DDE-8C79-483F-9B0A-F08F614F967B","1AB9FB7C-C57E-43C4-99FD-9988B7C19467","5D0836D9-F5C0-4446-A107-6ADDC70FFDB4","B1C08FF5-11FA-4C5F-8B3C-9EAA994A0FBC","651AAF5B-47B1-4749-840E-29E75642761E","B4B0CF52-9754-42B8-8138-28C7FD0F0D29","D013B774-C6B7-4936-8506-421B0FA2A2EE","A15ACAB0-6A76-41BC-A748-D5384F014E11","29969DF8-EFEB-4F31-985B-83EA581053B6","45D6E664-78B8-49E2-80AE-6072EA36135D","BCCA5F24-6DA2-47FA-A9C1-B7F39029CBE7","12726B2A-F070-4055-97E3-AE5E6D340306","5A5E9D74-BBC8-4D63-91AE-CA1C6B23A67B","F24F543A-7FF6-447B-AB73-9444060151DF","08A73206-AD90-4587-BB3B-06BAE4B12A3C","97A3F9EE-67B1-4BE8-B8D4-D163A795E166","6D232820-7C4B-4EC5-8BFF-91C3E6A86322","D0F10785-7E2D-43A7-8348-0F0EE36061D3","A642D015-5435-4CBF-974E-05613ADE8E23","80353337-5B04-4F01-AA0C-D824E7991A21","819B975B-5AFB-4CC3-9A4D-8F03F5E54173","85A31AD6-DB30-475A-B878-35AE7632E246","31F1DD3E-6705-4C92-99A0-7BA098E65025","6ED26961-06F5-4B63-A7BE-E7D4272CDF3C","254CB691-607F-4965-ABBE-582CDF6A3C5A","19CC184E-2B8E-47CF-9F0F-5F55601BDB8C","0A75CCA5-E688-4AA7-9147-0506B8C1CCD4","3DEE596A-2D38-48A0-BA3E-93A1C6C6F957","3E75DC6C-81DF-432D-B74E-74A5C6D35CBF","0EBDB325-9626-4DED-A8E7-3C4FBE9D0027","95D37DE1-B14F-4E46-921B-2CFA9E4FA6B6","AA56719A-078B-40DC-805D-CFE1BC570E9F","AE8BC725-5F92-47F9-9FA6-D383D4861D68","8B88275D-DD5E-45E4-A69B-74B81E232B35","4763E0B1-5229-43D7-927D-6FAF802EB750","91142E64-DB1B-4144-9E4F-296E933C8290","5241C216-6FAA-41F7-B6E8-548F72324618"],"id":"2B293E08-D877-4A60-98DC-2EA42C975424","renderContextTable":{"__isSmartRef__":true,"id":3635},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3636}],"eventHandler":{"__isSmartRef__":true,"id":3638},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3629},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":1461},"_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":3639},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"3631":{"_Position":{"__isSmartRef__":true,"id":3632},"renderContextTable":{"__isSmartRef__":true,"id":3633},"_Extent":{"__isSmartRef__":true,"id":3634},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3632":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3633":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3634":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3635":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"3636":{"style":{"__isSmartRef__":true,"id":3637},"chunkOwner":{"__isSmartRef__":true,"id":3630},"storedString":"–","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3637":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3638":{"morph":{"__isSmartRef__":true,"id":3630},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3639":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3640":{"_Position":{"__isSmartRef__":true,"id":3641},"renderContextTable":{"__isSmartRef__":true,"id":3642},"_Extent":{"__isSmartRef__":true,"id":3643},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3644},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1486},"_Fill":{"__isSmartRef__":true,"id":1487},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3641":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3642":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3643":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3644":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3645":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3646":{"morph":{"__isSmartRef__":true,"id":3629},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3647":{"x":913.8027036045055,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3648":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3649":{"stops":[{"__isSmartRef__":true,"id":3650},{"__isSmartRef__":true,"id":3652},{"__isSmartRef__":true,"id":3654},{"__isSmartRef__":true,"id":3656}],"vector":{"__isSmartRef__":true,"id":1496},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3650":{"offset":0,"color":{"__isSmartRef__":true,"id":3651}},"3651":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3652":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3653}},"3653":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3654":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3655}},"3655":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3656":{"offset":1,"color":{"__isSmartRef__":true,"id":3657}},"3657":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3658":{"moveHorizontal":true},"3659":{"sourceObj":{"__isSmartRef__":true,"id":3629},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1512},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3660},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3660":{"source":{"__isSmartRef__":true,"id":3629},"target":{"__isSmartRef__":true,"id":1512}},"3661":{"sourceObj":{"__isSmartRef__":true,"id":3629},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1512},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3662},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3662":{"source":{"__isSmartRef__":true,"id":3629},"target":{"__isSmartRef__":true,"id":1512}},"3663":{"submorphs":[{"__isSmartRef__":true,"id":3664}],"scripts":[],"id":"338CF675-9704-496C-B11B-1B5B9AF31F49","shape":{"__isSmartRef__":true,"id":3678},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3684},"value":false,"toggle":false,"isActive":true,"lighterFill":{"__isSmartRef__":true,"id":3685},"label":{"__isSmartRef__":true,"id":3664},"name":"ActiveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3695},"attributeConnections":[{"__isSmartRef__":true,"id":3698}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":3699},"renderContextTable":{"__isSmartRef__":true,"id":3700},"eventHandler":{"__isSmartRef__":true,"id":3701},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":1454},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":3702},"whiteboard":{"__isSmartRef__":true,"id":1426},"active":false,"normalFill":{"__isSmartRef__":true,"id":1487},"orderInTaskBar":1,"normalFillInactive":{"__isSmartRef__":true,"id":1487},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3703},"__LivelyClassName__":"lively.morphic.Button"},"3664":{"submorphs":[],"scripts":[],"id":"908BF700-02F2-485E-AECE-4EE7C5B9AFAC","shape":{"__isSmartRef__":true,"id":3665},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3670},"_MaxTextWidth":20,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":3671},"_Padding":{"__isSmartRef__":true,"id":3672},"owner":{"__isSmartRef__":true,"id":3663},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3673},"textChunks":[{"__isSmartRef__":true,"id":3674}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3676},"eventHandler":{"__isSmartRef__":true,"id":3677},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"_FontSize":10,"_TextColor":{"__isSmartRef__":true,"id":3308},"__LivelyClassName__":"lively.morphic.Text"},"3665":{"position":{"__isSmartRef__":true,"id":3666},"_Extent":{"__isSmartRef__":true,"id":3667},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3668},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3669},"_Padding":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3666":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3667":{"x":20,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3668":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3669":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3670":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3671":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3672":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3673":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3674":{"style":{"__isSmartRef__":true,"id":3675},"chunkOwner":{"__isSmartRef__":true,"id":3664},"storedString":"O","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3675":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3676":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"3677":{"morph":{"__isSmartRef__":true,"id":3664},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3678":{"position":{"__isSmartRef__":true,"id":3679},"_Extent":{"__isSmartRef__":true,"id":3680},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":3681},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3682},"_Padding":{"__isSmartRef__":true,"id":3683},"_Fill":{"__isSmartRef__":true,"id":1487},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3679":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3680":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3681":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3682":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3683":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3684":{"x":40,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3685":{"stops":[{"__isSmartRef__":true,"id":3686},{"__isSmartRef__":true,"id":3688},{"__isSmartRef__":true,"id":3690},{"__isSmartRef__":true,"id":3692}],"vector":{"__isSmartRef__":true,"id":3694},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3686":{"offset":0,"color":{"__isSmartRef__":true,"id":3687}},"3687":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3688":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3689}},"3689":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3690":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3691}},"3691":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3692":{"offset":1,"color":{"__isSmartRef__":true,"id":3693}},"3693":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3694":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3695":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":3696}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3696":{"date":{"__isSmartRef__":true,"id":3697},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"3697":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"3698":{"sourceObj":{"__isSmartRef__":true,"id":3663},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3663},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3699":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3701":{"morph":{"__isSmartRef__":true,"id":3663},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3702":{"x":35,"y":-8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3703":{"onFire":{"__isSmartRef__":true,"id":3704},"setActive":{"__isSmartRef__":true,"id":3708},"setInactive":{"__isSmartRef__":true,"id":3712},"setupConnections":{"__isSmartRef__":true,"id":3716},"toggleState":{"__isSmartRef__":true,"id":3720}},"3704":{"varMapping":{"__isSmartRef__":true,"id":3705},"source":"function onFire() {\n        this.whiteboard.toggleActivation();\n    }","funcProperties":{"__isSmartRef__":true,"id":3706},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3705":{"this":{"__isSmartRef__":true,"id":3663}},"3706":{"timestamp":{"__isSmartRef__":true,"id":3707},"user":"athomschke","tags":[]},"3707":{"isSerializedDate":true,"string":"Fri May 18 2012 11:30:07 GMT+0200 (CEST)"},"3708":{"varMapping":{"__isSmartRef__":true,"id":3709},"source":"function setActive() {\n        this.active = true;\n        this.normalFillInactive = this.owner.menuButton.normalFill\n        this.normalFill = Color.green;\n    }","funcProperties":{"__isSmartRef__":true,"id":3710},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3709":{"this":{"__isSmartRef__":true,"id":3663}},"3710":{"timestamp":{"__isSmartRef__":true,"id":3711},"user":"athomschke","tags":[]},"3711":{"isSerializedDate":true,"string":"Fri May 18 2012 12:03:40 GMT+0200 (CEST)"},"3712":{"varMapping":{"__isSmartRef__":true,"id":3713},"source":"function setInactive() {\n        this.active = false;\n        this.normalFill = this.normalFillInactive;\n    }","funcProperties":{"__isSmartRef__":true,"id":3714},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3713":{"this":{"__isSmartRef__":true,"id":3663}},"3714":{"timestamp":{"__isSmartRef__":true,"id":3715},"user":"athomschke","tags":[]},"3715":{"isSerializedDate":true,"string":"Fri May 18 2012 11:30:07 GMT+0200 (CEST)"},"3716":{"varMapping":{"__isSmartRef__":true,"id":3717},"source":"function setupConnections() {\n    connect(this.shape._Extent, 'y', this, 'setExtent', {\n        converter: function (y) {\n            return pt(y,y);\n        }   \n    })\n}","funcProperties":{"__isSmartRef__":true,"id":3718},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3717":{"this":{"__isSmartRef__":true,"id":3663}},"3718":{"timestamp":{"__isSmartRef__":true,"id":3719},"user":"athomschke","tags":[]},"3719":{"isSerializedDate":true,"string":"Fri May 18 2012 11:30:07 GMT+0200 (CEST)"},"3720":{"varMapping":{"__isSmartRef__":true,"id":3721},"source":"function toggleState(bool) {\n    if (bool)\n        this.setActive();\n    else\n        this.setInactive();\n    this.setFill(this.normalFill)\n}","funcProperties":{"__isSmartRef__":true,"id":3722},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3721":{"this":{"__isSmartRef__":true,"id":3663}},"3722":{"timestamp":{"__isSmartRef__":true,"id":3723},"user":"athomschke","tags":[]},"3723":{"isSerializedDate":true,"string":"Fri May 18 2012 11:30:07 GMT+0200 (CEST)"},"3724":{"_Position":{"__isSmartRef__":true,"id":3725},"renderContextTable":{"__isSmartRef__":true,"id":3726},"_Extent":{"__isSmartRef__":true,"id":3727},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3728},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3729},"_Fill":{"__isSmartRef__":true,"id":136},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3725":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3726":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3727":{"x":952.8027036045055,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3728":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3729":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3730":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3731":{"morph":{"__isSmartRef__":true,"id":1454},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3732":{"resizeWidth":true,"adjustForNewBounds":true},"3733":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3734":{"x":952.8027036045055,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3735":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1454}},"3736":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"active","targetObj":{"__isSmartRef__":true,"id":3663},"targetMethodName":"toggleState","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"3737":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3738}},"3738":{"test01IsMorph":{"__isSmartRef__":true,"id":3739}},"3739":{"varMapping":{"__isSmartRef__":true,"id":3740},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3741},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3740":{"this":{"__isSmartRef__":true,"id":3737}},"3741":{},"3742":{"x":950.8067016045055,"y":583.901351802253,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3743":{"resizeWidth":true,"resizeHeight":true},"3744":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3745":{"onrestore":{"__isSmartRef__":true,"id":3746},"deactivate":{"__isSmartRef__":true,"id":3754},"setupConnections":{"__isSmartRef__":true,"id":3758},"createTitleBarButton":{"__isSmartRef__":true,"id":3762},"getColor":{"__isSmartRef__":true,"id":3766},"setColor":{"__isSmartRef__":true,"id":3770},"getPencilSize":{"__isSmartRef__":true,"id":3774},"setPencilSize":{"__isSmartRef__":true,"id":3778},"getPencilStyle":{"__isSmartRef__":true,"id":3782},"disconnectSocket":{"__isSmartRef__":true,"id":3786},"activate":{"__isSmartRef__":true,"id":3790},"clear":{"__isSmartRef__":true,"id":3794},"clearDatabase":{"__isSmartRef__":true,"id":3798},"drawLineFrom":{"__isSmartRef__":true,"id":3802},"getDrawerID":{"__isSmartRef__":true,"id":3806},"initialSync":{"__isSmartRef__":true,"id":3810},"lineTo":{"__isSmartRef__":true,"id":3814},"morphMenuItems":{"__isSmartRef__":true,"id":3818},"onMouseDown":{"__isSmartRef__":true,"id":3826},"onMouseMove":{"__isSmartRef__":true,"id":3834},"onMouseOut":{"__isSmartRef__":true,"id":3842},"onMouseUp":{"__isSmartRef__":true,"id":3850},"onTouchEnd":{"__isSmartRef__":true,"id":3858},"onTouchMove":{"__isSmartRef__":true,"id":3866},"onTouchStart":{"__isSmartRef__":true,"id":3870},"remove":{"__isSmartRef__":true,"id":3878},"reset":{"__isSmartRef__":true,"id":3886},"startDrawing":{"__isSmartRef__":true,"id":3890},"stopDrawing":{"__isSmartRef__":true,"id":3894},"toggleActivation":{"__isSmartRef__":true,"id":3898},"transformPoint":{"__isSmartRef__":true,"id":3902},"finishLine":{"__isSmartRef__":true,"id":3906},"getCurrentShape":{"__isSmartRef__":true,"id":3910},"getChannel":{"__isSmartRef__":true,"id":3914},"setChannel":{"__isSmartRef__":true,"id":3918},"createStrokeShape":{"__isSmartRef__":true,"id":3922},"connectSocket":{"__isSmartRef__":true,"id":3926},"sync":{"__isSmartRef__":true,"id":3930},"deleteMorphWith":{"__isSmartRef__":true,"id":3934},"removeDocumentWith":{"__isSmartRef__":true,"id":3938},"createSocketListeners":{"__isSmartRef__":true,"id":3942},"addMorphFrom":{"__isSmartRef__":true,"id":3946},"saveMorph":{"__isSmartRef__":true,"id":3950},"deserializeMorph":{"__isSmartRef__":true,"id":3954},"defaultColor":{"__isSmartRef__":true,"id":3958},"getConnectedUserNames":{"__isSmartRef__":true,"id":3962},"defaultPencilSize":{"__isSmartRef__":true,"id":3966},"setPencilStyle":{"__isSmartRef__":true,"id":3970},"defaultPencilStyle":{"__isSmartRef__":true,"id":3974},"applyChanges":{"__isSmartRef__":true,"id":3978},"fakeCopy":{"__isSmartRef__":true,"id":3982},"observeChanges":{"__isSmartRef__":true,"id":3986},"sendChange":{"__isSmartRef__":true,"id":3990},"createMouseIndicator":{"__isSmartRef__":true,"id":3994},"updateMouseIndicators":{"__isSmartRef__":true,"id":3998},"handleMovingHand":{"__isSmartRef__":true,"id":4002},"onTouchOut":{"__isSmartRef__":true,"id":4006},"onLoad":{"__isSmartRef__":true,"id":4010},"loggedIn":{"__isSmartRef__":true,"id":4014}},"3746":{"varMapping":{"__isSmartRef__":true,"id":3747},"source":"function onrestore() {\n    this.deactivate();\n    module('projects.BP2012.Whiteboard').load(true);\n    module('projects.BP2012.DiffMerge').load(true);\n    this.setupConnections();\n}","funcProperties":{"__isSmartRef__":true,"id":3752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3747":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3748}},"3748":{"$super":{"__isSmartRef__":true,"id":3749}},"3749":{"varMapping":{"__isSmartRef__":true,"id":3750},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3750":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onrestore"},"3751":{},"3752":{"timestamp":{"__isSmartRef__":true,"id":3753},"user":"athomschke","tags":["initialization"]},"3753":{"isSerializedDate":true,"string":"Fri May 18 2012 10:29:13 GMT+0200 (CEST)"},"3754":{"varMapping":{"__isSmartRef__":true,"id":3755},"source":"function deactivate() {\n    if (this.active) {\n        if (this.socket && this.socket.emit) {\n            this.socket.emit('mouse', {\n                message: {x: 0, y: 0, remove: []},\n                me: false,\n                broadcast: true,\n            });\n            this.disconnectSocket();\n        }\n        else {\n            this.socket = undefined\n        }\n        this.stopStepping();\n        this.oldSubmorphs = [];\n        this.setBorderColor(Color.black);\n        this.active = false;\n        this.owner && this.owner.submorphs.each(function (ea) {\n            ea.isMouseIndicator && ea.remove();\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3755":{"this":{"__isSmartRef__":true,"id":1426}},"3756":{"timestamp":{"__isSmartRef__":true,"id":3757},"user":"athomschke","tags":["synchronization"]},"3757":{"isSerializedDate":true,"string":"Wed May 16 2012 14:13:08 GMT+0200 (CEST)"},"3758":{"varMapping":{"__isSmartRef__":true,"id":3759},"source":"function setupConnections() {\n    this.attributeConnections.invoke('disconnect');\n    connect(this, 'channelName', this.owner.titleBar, 'setTitle', {\n        converter: function (channelName) {\n            return 'Channel: ' + channelName\n        }\n    })\n    connect(this, 'active', this.owner.titleBar.get('ActiveButton'), 'toggleState');\n    this.chat.setupConnections();\n    this.pencilStyler.setupConnections();\n}","funcProperties":{"__isSmartRef__":true,"id":3760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3759":{"this":{"__isSmartRef__":true,"id":1426}},"3760":{"timestamp":{"__isSmartRef__":true,"id":3761},"user":"athomschke","tags":["initialization"]},"3761":{"isSerializedDate":true,"string":"Fri May 18 2012 11:04:10 GMT+0200 (CEST)"},"3762":{"varMapping":{"__isSmartRef__":true,"id":3763},"source":"function createTitleBarButton(name, tooltip, activateFunction, deactivateFunction) {\n    if (!this.owner)\n        return\n    var titleBar = this.owner.get(\"TitleBar\");\n    var b = new lively.morphic.Button();\n    b.whiteboard = this;\n    b.setToolTip(tooltip);\n    b.extraButton = true;\n    b.activateFunction = activateFunction;\n    b.deactivateFunction = deactivateFunction;\n    var size = titleBar.getExtent().y-2;\n    b.setExtent(pt(size, size));\n    if (b.beToolbarButton)\n        b.beToolbarButton(name);\n    else\n        b.setLabel(name);\n    b.normalFillInactive = b.normalFill;\n    b.active = false;\n    connect(b, \"fire\", b, \"onFire\", {});\n    b.addScript(function setActive() {\n        this.active = true;\n        this.normalFill = Color.green;\n    });\n    b.addScript(function setInactive() {\n        this.active = false;\n        this.normalFill = this.normalFillInactive;\n    });\n    b.addScript(function toggleState () {\n        if (!this.active)\n            this.setActive();\n        else\n            this.setInactive();\n    });\n    b.addScript(function activate() {\n        this.setActive();\n        this.activateFunction.apply(this.whiteboard);\n    });\n    b.addScript(function deactivate() {\n        this.setInactive();\n        this.deactivateFunction.apply(this.whiteboard);\n    });\n    b.addScript(function onFire() {\n        if (!this.active)\n            this.activate();\n        else\n            this.deactivate();\n    });\n    b.openInWorld();\n    titleBar.addMorphFront(b);\n    var buttonCount = titleBar.submorphs.select(function (ea) {return ea.extraButton}).length;\n    b.setPosition(pt((buttonCount+1) * b.getExtent().x, 1));\n    b.adjustForNewBounds();\n    return b;\n}","funcProperties":{"__isSmartRef__":true,"id":3764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3763":{"this":{"__isSmartRef__":true,"id":1426}},"3764":{"timestamp":{"__isSmartRef__":true,"id":3765},"user":"undefined","tags":[]},"3765":{"isSerializedDate":true,"string":"Tue May 15 2012 17:26:34 GMT+0200 (CEST)"},"3766":{"varMapping":{"__isSmartRef__":true,"id":3767},"source":"function getColor() {\n    return this.color || this.defaultColor();\n}","funcProperties":{"__isSmartRef__":true,"id":3768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3767":{"this":{"__isSmartRef__":true,"id":1426}},"3768":{"timestamp":{"__isSmartRef__":true,"id":3769},"user":"conradcalmez","tags":["drawing","accessing"]},"3769":{"isSerializedDate":true,"string":"Fri Apr 27 2012 20:44:47 GMT+0200 (CEST)"},"3770":{"varMapping":{"__isSmartRef__":true,"id":3771},"source":"function setColor(color) {\n    this.color = color;\n}","funcProperties":{"__isSmartRef__":true,"id":3772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3771":{"this":{"__isSmartRef__":true,"id":1426}},"3772":{"timestamp":{"__isSmartRef__":true,"id":3773},"user":"conradcalmez","tags":["drawing","accessing"]},"3773":{"isSerializedDate":true,"string":"Fri Apr 27 2012 20:45:41 GMT+0200 (CEST)"},"3774":{"varMapping":{"__isSmartRef__":true,"id":3775},"source":"function getPencilSize() {\n    return this.pencilSize || this.defaultPencilSize();\n}","funcProperties":{"__isSmartRef__":true,"id":3776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3775":{"this":{"__isSmartRef__":true,"id":1426}},"3776":{"timestamp":{"__isSmartRef__":true,"id":3777},"user":"conradcalmez","tags":["drawing","accessing"]},"3777":{"isSerializedDate":true,"string":"Mon Apr 30 2012 08:58:24 GMT+0200 (CEST)"},"3778":{"varMapping":{"__isSmartRef__":true,"id":3779},"source":"function setPencilSize(size) {\n    this.pencilSize = size;\n}","funcProperties":{"__isSmartRef__":true,"id":3780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3779":{"this":{"__isSmartRef__":true,"id":1426}},"3780":{"timestamp":{"__isSmartRef__":true,"id":3781},"user":"conradcalmez","tags":["drawing","accessing"]},"3781":{"isSerializedDate":true,"string":"Mon Apr 30 2012 08:57:47 GMT+0200 (CEST)"},"3782":{"varMapping":{"__isSmartRef__":true,"id":3783},"source":"function getPencilStyle() {\n    return this.pencilStyle || this.defaultPencilStyle();\n}","funcProperties":{"__isSmartRef__":true,"id":3784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3783":{"this":{"__isSmartRef__":true,"id":1426}},"3784":{"timestamp":{"__isSmartRef__":true,"id":3785},"user":"conradcalmez","tags":["drawing","accessing"]},"3785":{"isSerializedDate":true,"string":"Wed May 02 2012 15:03:14 GMT+0200 (CEST)"},"3786":{"varMapping":{"__isSmartRef__":true,"id":3787},"source":"function disconnectSocket() {\n    this.socket && this.socket.disconnect();\n    this.socket = undefined;\n}","funcProperties":{"__isSmartRef__":true,"id":3788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3787":{"this":{"__isSmartRef__":true,"id":1426}},"3788":{"timestamp":{"__isSmartRef__":true,"id":3789},"user":"conradcalmez","tags":["synchronization"]},"3789":{"isSerializedDate":true,"string":"Mon Apr 30 2012 17:31:05 GMT+0200 (CEST)"},"3790":{"varMapping":{"__isSmartRef__":true,"id":3791},"source":"function activate() {\n    if (!this.active) {\n        this.oldSubmorphs = []; \n        this.prevState = undefined\n        this.connectSocket();\n        this.startStepping(1000, 'observeChanges')\n        this.setBorderColor(Color.green);\n        this.active = true;\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3791":{"this":{"__isSmartRef__":true,"id":1426}},"3792":{"timestamp":{"__isSmartRef__":true,"id":3793},"user":"athomschke","tags":["synchronization"]},"3793":{"isSerializedDate":true,"string":"Wed May 16 2012 14:13:17 GMT+0200 (CEST)"},"3794":{"varMapping":{"__isSmartRef__":true,"id":3795},"source":"function clear() {\n    if (this.active && this.socket)\n        this.clearDatabase();\n    else \n        this.submorphs.invoke('remove')\n}","funcProperties":{"__isSmartRef__":true,"id":3796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3795":{"this":{"__isSmartRef__":true,"id":1426}},"3796":{"timestamp":{"__isSmartRef__":true,"id":3797},"user":"undefined","tags":["drawing","synchronization"]},"3797":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:40:19 GMT+0200 (CEST)"},"3798":{"varMapping":{"__isSmartRef__":true,"id":3799},"source":"function clearDatabase() {\n    this.socket.emit('clear', {\n        me: true,\n        broadcast: true,\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":3800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3799":{"this":{"__isSmartRef__":true,"id":1426}},"3800":{"timestamp":{"__isSmartRef__":true,"id":3801},"user":"undefined","tags":["synchronization"]},"3801":{"isSerializedDate":true,"string":"Tue Apr 24 2012 16:48:04 GMT+0200 (CEST)"},"3802":{"varMapping":{"__isSmartRef__":true,"id":3803},"source":"function drawLineFrom(stroke) {\n    var line = this.submorphs.find(function (ea) {\n        return stroke.identifier == ea.identifier\n    })\n    if (!line) {\n        line = this.createStrokeShape();\n        line.identifier = stroke.identifier;\n        this.addMorph(line);\n        line.setVertices([]);\n        line.setBorderColor(Color.rgba(stroke.color.r, stroke.color.g, stroke.color.b, stroke.color.a));\n        line.setBorderWidth(stroke.width);\n        line.setBorderStyle(stroke.style);\n    }\n    var vector = stroke.vector;\n    if (vector instanceof Array) {\n        vector.each(function (ea) {\n            line.setVertices(line.vertices().concat([pt(ea.x, ea.y)]));\n        });\n    } else {\n        line.setVertices(line.vertices().concat([pt(vector.x, vector.y)]));\n    }\n    line.timestamp = stroke.time\n}","funcProperties":{"__isSmartRef__":true,"id":3804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3803":{"this":{"__isSmartRef__":true,"id":1426}},"3804":{"timestamp":{"__isSmartRef__":true,"id":3805},"user":"conradcalmez","tags":["drawing"]},"3805":{"isSerializedDate":true,"string":"Wed May 09 2012 08:43:46 GMT+0200 (CEST)"},"3806":{"varMapping":{"__isSmartRef__":true,"id":3807},"source":"function getDrawerID() {\n    // exception case: if two whiteboards are restored at exactly the same time, they will not be synced correctly\n    return $world.getUserName() + \"_ON_\" + this.id + \"_AT_\" + this.timestamp.toString();\n}","funcProperties":{"__isSmartRef__":true,"id":3808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3807":{"this":{"__isSmartRef__":true,"id":1426}},"3808":{"timestamp":{"__isSmartRef__":true,"id":3809},"user":"undefined","tags":["drawing","accessing"]},"3809":{"isSerializedDate":true,"string":"Thu Apr 19 2012 10:26:58 GMT+0200 (CEST)"},"3810":{"varMapping":{"__isSmartRef__":true,"id":3811},"source":"function initialSync(initialData) {\n    var that = this;\n    // sync new strokes and morphs\n    this.submorphs.each(function (ea) {\n        if (typeof(ea.identifier) === 'undefined') {\n            ea.identifier = ea.id;\n            if (ea.isStroke) {\n                var color = {\n                    r: ea.getBorderColor().r*255,\n                    g: ea.getBorderColor().g*255,\n                    b: ea.getBorderColor().b*255,\n                    a: ea.getBorderColor().a\n                };\n                that.sync(\n                    ea.shape.vertices(),\n                    ea.timestamp,\n                    ea.identifier,\n                    color,\n                    ea.getBorderWidth(),\n                    ea.getBorderStyle()\n                );\n            } else {\n                that.saveMorph(ea);\n            }\n        }\n    });\n    this.oldSubmorphs = this.submorphs.pluck('identifier');\n    // pull strokes and morphs that are not already there\n    var existingIds = this.submorphs.pluck('identifier');   \n    initialData.each(function (ea) {\n        if (existingIds.indexOf(ea.identifier) < 0) {\n            if (ea.vector) {\n                that.drawLineFrom(ea);\n            }\n            else if (ea.morph) {\n                var m = that.deserializeMorph(ea.morph);\n                that.addMorph(m);\n                m.setPosition(pt(ea.position.x, ea.position.y))\n            }\n            else if (ea.isChange) {\n                that.applyChanges(ea.change);\n            }\n        }\n    });\n    this.active = true\n}","funcProperties":{"__isSmartRef__":true,"id":3812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3811":{"this":{"__isSmartRef__":true,"id":1426}},"3812":{"timestamp":{"__isSmartRef__":true,"id":3813},"user":"undefined","tags":["synchronization"]},"3813":{"isSerializedDate":true,"string":"Tue May 15 2012 10:48:56 GMT+0200 (CEST)"},"3814":{"varMapping":{"__isSmartRef__":true,"id":3815},"source":"function lineTo(point, optTransform, optColor) {\n    if (optTransform)\n        point = this.transformPoint(point);\n\n    var line = this.getCurrentShape();\n    var color = optColor || Color.black;\n    color && line.setBorderColor(color)\n\n    line.setVertices(line.vertices().concat([point]))\n    if (this.active) {\n        line.identifier = line.identifier || line.id\n        this.sync(point, undefined, line.id, {r: color.r*255, g: color.g*255, b: color.b*255, a: color.a}, line.getBorderWidth(), line.getBorderStyle());\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3815":{"this":{"__isSmartRef__":true,"id":1426}},"3816":{"timestamp":{"__isSmartRef__":true,"id":3817},"user":"conradcalmez","tags":["drawing"]},"3817":{"isSerializedDate":true,"string":"Tue May 08 2012 19:10:17 GMT+0200 (CEST)"},"3818":{"varMapping":{"__isSmartRef__":true,"id":3819},"source":"function morphMenuItems() {\n    items = $super();\n    var itemString = \"activate sync\";\n\n    if (this.active) itemString = \"de\" + itemString;\n    items.push([itemString, (function () {this.toggleActivation()}).bind(this)]);\n    items.push([\"clear whiteboard\", (function () {this.clear()}).bind(this)])\n    items.push([\n            \"change channel\", \n            function () { $world.prompt(\n                    'Enter a channel name', \n                    function (input) {\n                        this.setChannel(input);\n                    }.bind(this),\n                    this.getChannel())\n            }.bind(this)]);\n    var penString = \" pencil styler\";\n    if (this.pencilStyler.isVisible()) {\n        penString = \"hide\" + penString;\n    } else {\n        penString = \"show\" + penString;\n    }\n    items.push([penString, (function () {this.pencilStyler.toggle()}).bind(this)]);\n    var chatString = \" chat\";\n    if (this.chat.isVisible()) {\n        chatString = \"hide\" + chatString;\n    } else {\n        chatString = \"show\" + chatString;\n    }\n    items.push([chatString, (function () {this.chat.toggle()}).bind(this)]);\n    return items;\n}","funcProperties":{"__isSmartRef__":true,"id":3824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3819":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3820}},"3820":{"$super":{"__isSmartRef__":true,"id":3821}},"3821":{"varMapping":{"__isSmartRef__":true,"id":3822},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3822":{"obj":{"__isSmartRef__":true,"id":1426},"name":"morphMenuItems"},"3823":{},"3824":{"timestamp":{"__isSmartRef__":true,"id":3825},"user":"conradcalmez","tags":["initialization"]},"3825":{"isSerializedDate":true,"string":"Wed May 02 2012 19:30:11 GMT+0200 (CEST)"},"3826":{"varMapping":{"__isSmartRef__":true,"id":3827},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        var mup = $world.morphsContainingPoint(evt.mousePoint);\n        if ((mup.first() == this || mup.first().isStroke)\n                && lively.morphic.World.current().firstHand().submorphs.length <= 0) {\n            this.startDrawing(evt);\n            evt.stop();\n        }\n        else \n            $super(evt);\n    }\n    else\n        $super(evt)\n}","funcProperties":{"__isSmartRef__":true,"id":3832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3827":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3828}},"3828":{"$super":{"__isSmartRef__":true,"id":3829}},"3829":{"varMapping":{"__isSmartRef__":true,"id":3830},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3830":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onMouseDown"},"3831":{},"3832":{"timestamp":{"__isSmartRef__":true,"id":3833},"user":"undefined","tags":["mouse actions"]},"3833":{"isSerializedDate":true,"string":"Wed May 16 2012 10:54:40 GMT+0200 (CEST)"},"3834":{"varMapping":{"__isSmartRef__":true,"id":3835},"source":"function onMouseMove(evt) {\n    this.handleMovingHand(pt(evt.pageX, evt.pageY));\n}","funcProperties":{"__isSmartRef__":true,"id":3840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3835":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3836}},"3836":{"$super":{"__isSmartRef__":true,"id":3837}},"3837":{"varMapping":{"__isSmartRef__":true,"id":3838},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3838":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onMouseMove"},"3839":{},"3840":{"timestamp":{"__isSmartRef__":true,"id":3841},"user":"undefined","tags":["mouse actions"]},"3841":{"isSerializedDate":true,"string":"Tue May 15 2012 10:48:56 GMT+0200 (CEST)"},"3842":{"varMapping":{"__isSmartRef__":true,"id":3843},"source":"function onMouseOut(evt) {\n    // XXX cancelation better than strange drawing behavior?\n    if ($world.morphsContainingPoint(evt.mousePoint).indexOf(this) < 0) {\n        if (this.isDrawing) {\n            this.stopDrawing(evt);\n            evt.stop();\n        }\n        if (this.active) {\n            this.enteredBefore = false;\n            this.socket.emit('mouse', {\n                message: {\n                    x: evt.pageX, \n                    y: evt.pageY, \n                    remove: lively.morphic.World.current().firstHand().submorphs.slice(1)\n                                .collect(function (ea) {\n                                    return ea.identifier;\n                                })\n                },\n                me: false,\n                broadcast: true,\n            });\n            lively.morphic.World.current().firstHand().submorphs.each(function (ea) {\n                ea.identifier = undefined;\n            });\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3843":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3844}},"3844":{"$super":{"__isSmartRef__":true,"id":3845}},"3845":{"varMapping":{"__isSmartRef__":true,"id":3846},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3846":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onMouseOut"},"3847":{},"3848":{"timestamp":{"__isSmartRef__":true,"id":3849},"user":"athomschke","tags":["mouse actions"]},"3849":{"isSerializedDate":true,"string":"Wed May 16 2012 11:47:43 GMT+0200 (CEST)"},"3850":{"varMapping":{"__isSmartRef__":true,"id":3851},"source":"function onMouseUp(evt) {\n    if (this.isDrawing) {\n        this.stopDrawing(evt);\n        evt.stop();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3851":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3852}},"3852":{"$super":{"__isSmartRef__":true,"id":3853}},"3853":{"varMapping":{"__isSmartRef__":true,"id":3854},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3854":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onMouseUp"},"3855":{},"3856":{"timestamp":{"__isSmartRef__":true,"id":3857},"user":"athomschke","tags":["mouse actions"]},"3857":{"isSerializedDate":true,"string":"Wed May 16 2012 12:13:20 GMT+0200 (CEST)"},"3858":{"varMapping":{"__isSmartRef__":true,"id":3859},"source":"function onTouchEnd(evt) {\n    this.stopDrawing(evt, true);\n    evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":3864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3859":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3860}},"3860":{"$super":{"__isSmartRef__":true,"id":3861}},"3861":{"varMapping":{"__isSmartRef__":true,"id":3862},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3862":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onTouchEnd"},"3863":{},"3864":{"timestamp":{"__isSmartRef__":true,"id":3865},"user":"undefined","tags":["touch actions"]},"3865":{"isSerializedDate":true,"string":"Wed Apr 18 2012 10:20:18 GMT+0200 (CEST)"},"3866":{"varMapping":{"__isSmartRef__":true,"id":3867},"source":"function onTouchMove(evt) {\n    this.handleMovingHand(evt.getPosition())\n}","funcProperties":{"__isSmartRef__":true,"id":3868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3867":{"this":{"__isSmartRef__":true,"id":1426}},"3868":{"timestamp":{"__isSmartRef__":true,"id":3869},"user":"conradcalmez","tags":["touch actions"]},"3869":{"isSerializedDate":true,"string":"Tue May 08 2012 16:25:16 GMT+0200 (CEST)"},"3870":{"varMapping":{"__isSmartRef__":true,"id":3871},"source":"function onTouchStart(evt) {\n    if (evt.touches.length == 1) {\n        var mup = $world.morphsContainingPoint(evt.mousePoint);\n        if ((mup.first() == this || mup.first().isStroke)\n                && lively.morphic.World.current().firstHand().submorphs.length <= 0) {\n            this.startDrawing(evt);\n            evt.stop();\n        }\n        else \n            $super(evt);\n    }\n    else {\n        this.isDrawing = false\n        this.currentShape && this.currentShape.remove();\n        delete this.currentShape;\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3871":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3872}},"3872":{"$super":{"__isSmartRef__":true,"id":3873}},"3873":{"varMapping":{"__isSmartRef__":true,"id":3874},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3874":{"obj":{"__isSmartRef__":true,"id":1426},"name":"onTouchStart"},"3875":{},"3876":{"timestamp":{"__isSmartRef__":true,"id":3877},"user":"athomschke","tags":["touch actions"]},"3877":{"isSerializedDate":true,"string":"Wed May 16 2012 16:03:16 GMT+0200 (CEST)"},"3878":{"varMapping":{"__isSmartRef__":true,"id":3879},"source":"function remove() {\n    // XXX stop longpolling\n    this.deactivate();\n    this.suspendSteppingAll();\n    if (this.showsHalos) this.removeHalos();\n    this.renderContextDispatch('remove');\n}","funcProperties":{"__isSmartRef__":true,"id":3884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3879":{"this":{"__isSmartRef__":true,"id":1426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3880}},"3880":{"$super":{"__isSmartRef__":true,"id":3881}},"3881":{"varMapping":{"__isSmartRef__":true,"id":3882},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":3883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3882":{"obj":{"__isSmartRef__":true,"id":1426},"name":"remove"},"3883":{},"3884":{"timestamp":{"__isSmartRef__":true,"id":3885},"user":"conradcalmez","tags":["initialization"]},"3885":{"isSerializedDate":true,"string":"Tue Apr 24 2012 17:12:56 GMT+0200 (CEST)"},"3886":{"varMapping":{"__isSmartRef__":true,"id":3887},"source":"function reset() {\n    this.deactivate();\n    this.active = false;\n    this.disableGrabbing();\n    this.setChannel('default');\n    this.enteredBefore = false;\n    this.isDrawing = false;\n    this.clear();\n    this.color = this.defaultColor();\n    this.pencilSize = this.defaultPencilSize();\n    this.pencilStyle = this.defaultPencilStyle();\n    this.prevState = undefined\n    this.pencilStyler = this.owner.get(\"PencilStyler\");\n    this.pencilStyler.reset()\n    this.chat = this.owner.get(\"ChatPane\");\n    this.chat.reset();\n    // this.connectionsToRemove.invoke(\"disconnect\")\n    // this.owner.get(\"TitleBar\").submorphs.select(function (ea) {return ea.extraButton}).invoke(\"remove\");\n}","funcProperties":{"__isSmartRef__":true,"id":3888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3887":{"this":{"__isSmartRef__":true,"id":1426}},"3888":{"timestamp":{"__isSmartRef__":true,"id":3889},"user":"athomschke","tags":["initialization"]},"3889":{"isSerializedDate":true,"string":"Fri May 18 2012 10:33:37 GMT+0200 (CEST)"},"3890":{"varMapping":{"__isSmartRef__":true,"id":3891},"source":"function startDrawing(evt) {\n    this.isDrawing = true;\n}","funcProperties":{"__isSmartRef__":true,"id":3892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3891":{"this":{"__isSmartRef__":true,"id":1426}},"3892":{"timestamp":{"__isSmartRef__":true,"id":3893},"user":"undefined","tags":["drawing"]},"3893":{"isSerializedDate":true,"string":"Wed Apr 18 2012 13:51:09 GMT+0200 (CEST)"},"3894":{"varMapping":{"__isSmartRef__":true,"id":3895},"source":"function stopDrawing(evt, touch) {\n    if (this.isDrawing) {\n        this.isDrawing = false;\n        this.finishLine();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3895":{"this":{"__isSmartRef__":true,"id":1426}},"3896":{"timestamp":{"__isSmartRef__":true,"id":3897},"user":"undefined","tags":["drawing"]},"3897":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:10:16 GMT+0200 (CEST)"},"3898":{"varMapping":{"__isSmartRef__":true,"id":3899},"source":"function toggleActivation() {\n    if (!this.active) {\n        this.loggedIn(function (status) {\n            if (!status.isDone()) return;\n            this.activate();\n        });\n    } else {\n        this.deactivate();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3899":{"this":{"__isSmartRef__":true,"id":1426}},"3900":{"timestamp":{"__isSmartRef__":true,"id":3901},"user":"conradcalmez","tags":["synchronization"]},"3901":{"isSerializedDate":true,"string":"Mon May 21 2012 18:01:38 GMT+0200 (CEST)"},"3902":{"varMapping":{"__isSmartRef__":true,"id":3903},"source":"function transformPoint(pagePoint) {\n    return pagePoint\n        .addPt(this.getScrollBounds().topLeft())\n        .subPt(this.getPositionInWorld());\n}","funcProperties":{"__isSmartRef__":true,"id":3904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3903":{"this":{"__isSmartRef__":true,"id":1426}},"3904":{"timestamp":{"__isSmartRef__":true,"id":3905},"user":"athomschke","tags":["drawing"]},"3905":{"isSerializedDate":true,"string":"Tue May 08 2012 15:26:54 GMT+0200 (CEST)"},"3906":{"varMapping":{"__isSmartRef__":true,"id":3907},"source":"function finishLine() {\n    if (typeof this.currentShape == 'undefined')\n        return; \n\n    var curShape = this.currentShape;\n    this.currentShape = undefined;\n\n    curShape.timestamp = Date.now();\n    var color = {\n        r: curShape.getBorderColor().r*255,\n        g: curShape.getBorderColor().g*255,\n        b: curShape.getBorderColor().b*255,\n        a: curShape.getBorderColor().a*255,\n    }\n    // var result = this.sync(curShape.shape.vertices(), curShape.timestamp, curShape.id, color, curShape.getBorderWidth(), curShape.getBorderStyle());\n}","funcProperties":{"__isSmartRef__":true,"id":3908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3907":{"this":{"__isSmartRef__":true,"id":1426}},"3908":{"timestamp":{"__isSmartRef__":true,"id":3909},"user":"conradcalmez","tags":["drawing"]},"3909":{"isSerializedDate":true,"string":"Mon May 07 2012 19:21:34 GMT+0200 (CEST)"},"3910":{"varMapping":{"__isSmartRef__":true,"id":3911},"source":"function getCurrentShape() {\n    this.oldSubmorphs = this.submorphs.pluck('identifier');\n    if (typeof(this.currentShape) === 'undefined') {\n        this.currentShape = this.createStrokeShape();  \n        this.oldSubmorphs.push(this.currentShape.id)       \n        this.addMorph(this.currentShape);\n    }\n    return this.currentShape\n}","funcProperties":{"__isSmartRef__":true,"id":3912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3911":{"this":{"__isSmartRef__":true,"id":1426}},"3912":{"timestamp":{"__isSmartRef__":true,"id":3913},"user":"undefined","tags":["drawing","accessing"]},"3913":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:31:38 GMT+0200 (CEST)"},"3914":{"varMapping":{"__isSmartRef__":true,"id":3915},"source":"function getChannel() {\n    return (this.channelName || 'example')\n}","funcProperties":{"__isSmartRef__":true,"id":3916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3915":{"this":{"__isSmartRef__":true,"id":1426}},"3916":{"timestamp":{"__isSmartRef__":true,"id":3917},"user":"athomschke","tags":[]},"3917":{"isSerializedDate":true,"string":"Tue May 08 2012 08:21:55 GMT+0200 (CEST)"},"3918":{"varMapping":{"__isSmartRef__":true,"id":3919},"source":"function setChannel(channelName) {\n    this.channelName = channelName,\n        that = this;\n\n    // TODO: maybe we don't want this for proper offline/online switching reasons.\n    this.submorphs.each(function (ea) {\n        ea.identifier = undefined\n    })\n\n    if (this.active && this.socket) {\n        this.submorphs.each(function (ea) {\n            ea.remove();\n        })\n\n        this.socket.emit('channel', this.channelName, function(join, joinChannel, leave, leaveChannel, initialData) {\n            if (join) {\n                alertOK('Successfully joined channel ' + joinChannel + '.');\n                that.initialSync(initialData);\n            } \n            if (leave) {\n                alertOK('Successfully left channel ' + leaveChannel + '.');\n            }\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3919":{"this":{"__isSmartRef__":true,"id":1426}},"3920":{"timestamp":{"__isSmartRef__":true,"id":3921},"user":"undefined","tags":["synchronization","accessing"]},"3921":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:34 GMT+0200 (CEST)"},"3922":{"varMapping":{"__isSmartRef__":true,"id":3923},"source":"function createStrokeShape() {\n    var m = Morph.makePolygon([], 1, Color.black, null);\n    m.setBorderWidth(this.getPencilSize());\n    m.setBorderStyle(this.getPencilStyle());\n    m.disableEvents();\n    m.disableDropping();\n    m.isStroke = true;\n    return m;\n}","funcProperties":{"__isSmartRef__":true,"id":3924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3923":{"this":{"__isSmartRef__":true,"id":1426}},"3924":{"timestamp":{"__isSmartRef__":true,"id":3925},"user":"conradcalmez","tags":["drawing"]},"3925":{"isSerializedDate":true,"string":"Tue May 08 2012 19:07:26 GMT+0200 (CEST)"},"3926":{"varMapping":{"__isSmartRef__":true,"id":3927},"source":"function connectSocket() {\n    var resource = 'socket.io',\n        socketIOpath = '/socket.io.js',\n        socketioURL = 'http://lively-kernel.org:4000/' + resource + socketIOpath,\n        that = this,\n        channel = this.getChannel();\n\n    // load Socket.io library if required\n    if (typeof(io) == \"undefined\") {\n        var source = JSLoader.getSync(socketioURL);\n        window.eval(source);\n    }\n    \n    // connect to server \n    this.socket = io.connect('lively-kernel.org:4000', {\n        'force new connection': true,\n        'reconnection delay': 1000,\n    });\n    \n    // auth/(dis)connect + channel join\n    that.createSocketListeners();\n    this.socket.on('connect', function() {\n        that.socket.emit('nick', {message: that.chat.getUserName()});\n        that.socket.emit('channel', that.getChannel(), function(join, joinChannel, leave, leaveChannel, initialData) {\n            if (join) {\n                alertOK('Successfully joined channel ' + joinChannel + '.');\n                that.initialSync(initialData);\n            } \n            if (leave) {\n                alertOK('Successfully left channel ' + leaveChannel + '.');\n            }\n        });\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":3928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3927":{"this":{"__isSmartRef__":true,"id":1426}},"3928":{"timestamp":{"__isSmartRef__":true,"id":3929},"user":"athomschke","tags":["synchronization"]},"3929":{"isSerializedDate":true,"string":"Wed May 09 2012 20:15:02 GMT+0200 (CEST)"},"3930":{"varMapping":{"__isSmartRef__":true,"id":3931},"source":"function sync(vertices, time, id, color, width, style) {\n    if (this.active) {\n        var stroke = {\n            board: this.getChannel(),\n            time: time,\n            drawer: this.getDrawerID(),\n            identifier: id,\n            vector: vertices,\n            color: color,\n            width: width,\n            style: style,\n        };\n        this.socket.emit('draw', {\n            message: stroke,\n            me: false,\n            broadcast: true,\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3931":{"this":{"__isSmartRef__":true,"id":1426}},"3932":{"timestamp":{"__isSmartRef__":true,"id":3933},"user":"conradcalmez","tags":["synchronization"]},"3933":{"isSerializedDate":true,"string":"Wed May 09 2012 08:27:35 GMT+0200 (CEST)"},"3934":{"varMapping":{"__isSmartRef__":true,"id":3935},"source":"function deleteMorphWith(identifier) {\n    var toDelete = this.submorphs.find(function (ea) {\n        return (ea.identifier === identifier)\n    })\n    // remove toDelete from oldSubmorphs ary\n    if (!toDelete) \n        return\n    this.oldSubmorphs = this.oldSubmorphs.select(function (ea) {\n        return toDelete.identifier !== ea;\n    })\n    toDelete.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":3936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3935":{"this":{"__isSmartRef__":true,"id":1426}},"3936":{"timestamp":{"__isSmartRef__":true,"id":3937},"user":"athomschke","tags":["synchronization"]},"3937":{"isSerializedDate":true,"string":"Thu May 03 2012 17:58:59 GMT+0200 (CEST)"},"3938":{"varMapping":{"__isSmartRef__":true,"id":3939},"source":"function removeDocumentWith(identifier) {\n    this.socket.emit('delete', {\n        identifier: identifier,\n        me: true,\n        broadcast: true\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":3940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3939":{"this":{"__isSmartRef__":true,"id":1426}},"3940":{"timestamp":{"__isSmartRef__":true,"id":3941},"user":"conradcalmez","tags":["synchronization"]},"3941":{"isSerializedDate":true,"string":"Tue Apr 24 2012 18:00:19 GMT+0200 (CEST)"},"3942":{"varMapping":{"__isSmartRef__":true,"id":3943},"source":"function createSocketListeners() {\n    var that = this;\n\n    that.socket.on('error', function(reason) {\n        alert('Unable to connect socket.io on namespace ' + channel + ': ' + reason);\n        that.deactivate();\n    });\n\n    // client (dis)connects\n    this.socket.on('clientConnect', function (data) {\n        var richText = new lively.morphic.RichText();\n        richText.initialize();\n        var nick = new lively.morphic.RichText(data.message.nick);\n        var color = Color.hsb(\n                data.message.color.h, \n                data.message.color.s, \n                data.message.color.b);\n        nick.emphasize({color: color}, 0, data.message.nick.length);\n        richText.setTextChunks(\n            nick.getTextChunks().concat(\n                new lively.morphic.RichText(' connected').getTextChunks()\n            )\n        );\n        that.chat.showMessage(richText);\n    });\n    this.socket.on('clientDisconnect', function (data) {\n        var richText = new lively.morphic.RichText();\n        richText.initialize();\n        var nick = new lively.morphic.RichText(data.message.nick);\n        var color = Color.hsb(data.message.color.h, data.message.color.s, data.message.color.b);\n        nick.emphasize({color: color}, 0, data.message.nick.length);\n        richText.setTextChunks(\n            nick.getTextChunks().concat(\n                new lively.morphic.RichText(' disconnected').getTextChunks()\n            )\n        );\n        that.chat.showMessage(richText);\n        that.owner.submorphs.each(function (ea) {\n            if (ea.isMouseIndicator && ea.identifier === data.message.id) {\n                ea.remove();\n            }\n        });\n    });\n    \n    // ping pong example\n    this.socket.on('pong', function (data) {\n        alertOK(data.message);\n    });\n\n    this.socket.on('draw', function (data) {\n        that.drawLineFrom(data.message);\n    });\n\n    this.socket.on('clear', function () {\n        that.submorphs.invoke('remove');\n    });\n\n    this.socket.on('delete', function (data) {\n        that.deleteMorphWith(data.message);\n    });\n\n    this.socket.on('morph', function (data) {\n        that.addMorphFrom(data.message);\n    });\n\n    this.socket.on('chat', function (data) {\n        var color = Color.hsb(\n                data.message.color.h, \n                data.message.color.s, \n                data.message.color.b);\n        that.chat.showMessage(data.message.text, {name: data.message.nick, color: color});\n    });\n\n    this.socket.on('names', function (data) {\n        var richText = new lively.morphic.RichText();\n        richText.initialize();\n        for (var i=0; i 0) {\n                name.setTextChunks(\n                    new lively.morphic.RichText(\", \").getTextChunks().concat(\n                        name.getTextChunks()\n                    )\n                );\n            }\n            richText.setTextChunks(\n                richText.getTextChunks().concat(\n                    name.getTextChunks()\n                )\n            );\n        }\n        richText.setTextChunks(\n            new lively.morphic.RichText(\"Currently connected users:\\n\").getTextChunks().concat(\n                new lively.morphic.RichText(\"[\").getTextChunks().concat(\n                    richText.getTextChunks().concat(\n                        new lively.morphic.RichText(\"]\").getTextChunks()\n                    )\n                )\n            )\n        );\n        that.chat.showMessage(richText);\n    });\n\n    this.socket.on('nick', function (data) {\n        var richText = new lively.morphic.RichText();\n        richText.initialize();\n        var color = Color.hsb(data.message.color.h, data.message.color.s, data.message.color.b);\n        var oldName = new lively.morphic.RichText(data.message.old);\n        oldName.emphasize({color: color}, 0, data.message.old.length);\n        var newName = new lively.morphic.RichText(data.message.new);\n        newName.emphasize({color: color}, 0, data.message.new.length);\n        richText.setTextChunks(\n            oldName.getTextChunks().concat(\n                new lively.morphic.RichText(\" changed its name to \").getTextChunks().concat(\n                    newName.getTextChunks()\n                )\n            )\n        );\n        that.chat.showMessage(richText);\n    });\n\n    this.socket.on('mouse', function (data) {\n        that.updateMouseIndicators(data);\n    });\n\n    this.socket.on('change', function(data)  {\n        that.applyChanges(data.message)\n    })\n}","funcProperties":{"__isSmartRef__":true,"id":3944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3943":{"this":{"__isSmartRef__":true,"id":1426}},"3944":{"timestamp":{"__isSmartRef__":true,"id":3945},"user":"athomschke","tags":["synchronization"]},"3945":{"isSerializedDate":true,"string":"Wed May 16 2012 15:10:50 GMT+0200 (CEST)"},"3946":{"varMapping":{"__isSmartRef__":true,"id":3947},"source":"function addMorphFrom(message) {\n    var indicatorId = message.id,\n        doNotAddToWhiteboard = message.doNotAddToWhiteboard;\n        \n    var indicator = this.owner.submorphs.find(function (ea) {\n        return ea.identifier === indicatorId;\n    });\n    if (!indicator) return\n    var that = this;\n    if (doNotAddToWhiteboard) {\n        indicator.submorphs.invoke('remove')\n    }\n    else { \n        indicator.submorphs.each(function (ea) {\n            that.addMorph(ea);\n            ea.setPosition(ea.getPosition().addPt(pt(5,5)));\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3947":{"this":{"__isSmartRef__":true,"id":1426}},"3948":{"timestamp":{"__isSmartRef__":true,"id":3949},"user":"athomschke","tags":["synchronization"]},"3949":{"isSerializedDate":true,"string":"Wed May 16 2012 14:25:55 GMT+0200 (CEST)"},"3950":{"varMapping":{"__isSmartRef__":true,"id":3951},"source":"function saveMorph(aMorph, doNotAddToWhiteboard) {    \n    if (this.active) {\n        this.socket.emit('morph', {\n            message: {\n                morphId: aMorph.identifier,\n                doNotAddToWhiteboard: doNotAddToWhiteboard},\n            me: false,\n            broadcast: true,\n        });\n        this.enteredBefore = false;\n    }\n    if (typeof(this.prevState) !== 'undefined') {\n        if (this.submorphs.length != this.prevState.length) {\n            this.fakeCopy();\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3951":{"this":{"__isSmartRef__":true,"id":1426}},"3952":{"timestamp":{"__isSmartRef__":true,"id":3953},"user":"athomschke","tags":["synchronization"]},"3953":{"isSerializedDate":true,"string":"Wed May 16 2012 14:16:48 GMT+0200 (CEST)"},"3954":{"varMapping":{"__isSmartRef__":true,"id":3955},"source":"function deserializeMorph(JSONmorph) {\n    var serializer = ObjectGraphLinearizer.forNewLivelyCopy();\n    var jso = JSON.parse(JSONmorph.morph);\n    var morph = serializer.deserializeJso(jso);\n    morph.withAllSubmorphsDo(function() { \n        if (typeof this.setNewId == 'function') \n            this.setNewId(); \n    });\n    return morph;\n}","funcProperties":{"__isSmartRef__":true,"id":3956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3955":{"this":{"__isSmartRef__":true,"id":1426}},"3956":{"timestamp":{"__isSmartRef__":true,"id":3957},"user":"conradcalmez","tags":["synchronization"]},"3957":{"isSerializedDate":true,"string":"Fri May 04 2012 14:55:48 GMT+0200 (CEST)"},"3958":{"varMapping":{"__isSmartRef__":true,"id":3959},"source":"function defaultColor() {\n    return Color.black;\n}","funcProperties":{"__isSmartRef__":true,"id":3960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3959":{"this":{"__isSmartRef__":true,"id":1426}},"3960":{"timestamp":{"__isSmartRef__":true,"id":3961},"user":"conradcalmez","tags":["drawing","accessing"]},"3961":{"isSerializedDate":true,"string":"Fri Apr 27 2012 20:45:03 GMT+0200 (CEST)"},"3962":{"varMapping":{"__isSmartRef__":true,"id":3963},"source":"function getConnectedUserNames() {\n    if (this.active) {\n        this.socket.emit('names');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3963":{"this":{"__isSmartRef__":true,"id":1426}},"3964":{"timestamp":{"__isSmartRef__":true,"id":3965},"user":"conradcalmez","tags":["synchronization","accessing"]},"3965":{"isSerializedDate":true,"string":"Mon Apr 30 2012 10:47:14 GMT+0200 (CEST)"},"3966":{"varMapping":{"__isSmartRef__":true,"id":3967},"source":"function defaultPencilSize() {\n    return 1;\n}","funcProperties":{"__isSmartRef__":true,"id":3968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3967":{"this":{"__isSmartRef__":true,"id":1426}},"3968":{"timestamp":{"__isSmartRef__":true,"id":3969},"user":"conradcalmez","tags":["drawing","accessing"]},"3969":{"isSerializedDate":true,"string":"Mon Apr 30 2012 08:59:02 GMT+0200 (CEST)"},"3970":{"varMapping":{"__isSmartRef__":true,"id":3971},"source":"function setPencilStyle(style) {\n    this.pencilStyle = style;\n}","funcProperties":{"__isSmartRef__":true,"id":3972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3971":{"this":{"__isSmartRef__":true,"id":1426}},"3972":{"timestamp":{"__isSmartRef__":true,"id":3973},"user":"conradcalmez","tags":["drawing","accessing"]},"3973":{"isSerializedDate":true,"string":"Wed May 02 2012 14:59:47 GMT+0200 (CEST)"},"3974":{"varMapping":{"__isSmartRef__":true,"id":3975},"source":"function defaultPencilStyle() {\n    return \"solid\";\n}","funcProperties":{"__isSmartRef__":true,"id":3976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3975":{"this":{"__isSmartRef__":true,"id":1426}},"3976":{"timestamp":{"__isSmartRef__":true,"id":3977},"user":"conradcalmez","tags":["accessing"]},"3977":{"isSerializedDate":true,"string":"Wed May 02 2012 15:03:39 GMT+0200 (CEST)"},"3978":{"varMapping":{"__isSmartRef__":true,"id":3979},"source":"function applyChanges(diffL) {\n    var that = this;\n    Properties.own(diffL).each(function (ea) {\n        var morphChange = lively.persistence.Serializer.deserialize(diffL[ea]);\n        console.log(morphChange)\n        var morph;\n        that.withAllSubmorphsDo(function (m) {\n            if (m.identifier === ea || m.id === ea)\n                morph = m;\n        })\n        if (!morph) {\n            // console.log('no morph found to apply properties of '+identifier)\n            return false\n        }\n        Properties.own(morphChange.modified).each(function (prop) {\n            morph.applyNestedProperty(\n                    morph, \n                    prop.split('::'), \n                    morphChange.modified[prop].oldValue)\n        })\n        // funny thing that, ask Astrid for explanation ;)\n        Properties.own(morphChange.removed).each(function (submorphId) {\n            if (morph.submorphs.pluck('identifier').indexOf(morphChange.removed[submorphId].identifier) < 0)\n                morph.addMorph(morphChange.removed[submorphId]);\n        })\n        Properties.own(morphChange.added).each(function (toRemoveId) {\n            var toRemoveIdentifier = morphChange.added[toRemoveId]\n            morph.submorphs.find(function (toRemove) {\n                if (toRemove.identifier == toRemoveIdentifier || toRemove.id == toRemoveId)\n                    toRemove.remove();\n            })\n        })\n        if (morph.owner) \n            morph.refreshRenderContext();\n    })\n}","funcProperties":{"__isSmartRef__":true,"id":3980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3979":{"this":{"__isSmartRef__":true,"id":1426}},"3980":{"timestamp":{"__isSmartRef__":true,"id":3981},"user":"athomschke","tags":["diffing"]},"3981":{"isSerializedDate":true,"string":"Wed May 16 2012 15:19:03 GMT+0200 (CEST)"},"3982":{"varMapping":{"__isSmartRef__":true,"id":3983},"source":"function fakeCopy() {\n    this.prevState = this.submorphs.collect(function (ea) {\n        var m = ea.copy();\n        m.setName(ea.name)\n        return m\n    })\n}","funcProperties":{"__isSmartRef__":true,"id":3984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3983":{"this":{"__isSmartRef__":true,"id":1426}},"3984":{"timestamp":{"__isSmartRef__":true,"id":3985},"user":"athomschke","tags":[]},"3985":{"isSerializedDate":true,"string":"Wed May 16 2012 16:06:13 GMT+0200 (CEST)"},"3986":{"varMapping":{"__isSmartRef__":true,"id":3987},"source":"function observeChanges() {\n    var that = this;\n    var diffL = {};\n    var copyFunc = function () {\n        that.fakeCopy();\n    }\n    if (typeof(this.prevState) !== 'undefined') {\n        this.prevState.each(function (sub) {\n            if (sub.isStroke || sub.isBlockedApplying) return\n            var match = that.submorphs.find(function (ea) {\n                return (sub.identifier === ea.identifier)\n            })\n            if (!match) return\n            var tmpDiffList = sub.diffTo(match, ['showsHalos', 'isBlockedApplying']);\n            //console.log(tmpDiffList)\n            if (tmpDiffList && !tmpDiffList.isEmpty()) {\n                Properties.own(tmpDiffList).each(function (ea) {\n                    if (!tmpDiffList[ea].isEmpty()) {\n                        diffL[tmpDiffList[ea].matchingId] = tmpDiffList[ea];\n                        diffL[tmpDiffList[ea].matchingId].flattenPropertyTree();\n                    }\n                })\n            };\n        })\n        if (Properties.own(diffL).length > 0) {\n            that.sendChange(diffL);\n            copyFunc.bind(this).delay(0);\n        }\n    }\n    else\n        copyFunc.bind(this).delay(0);\n}","funcProperties":{"__isSmartRef__":true,"id":3988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3987":{"this":{"__isSmartRef__":true,"id":1426}},"3988":{"timestamp":{"__isSmartRef__":true,"id":3989},"user":"athomschke","tags":["diffing"]},"3989":{"isSerializedDate":true,"string":"Wed May 16 2012 15:45:49 GMT+0200 (CEST)"},"3990":{"varMapping":{"__isSmartRef__":true,"id":3991},"source":"function sendChange(change) {\n    console.log(change)\n    var that = this;\n    Properties.own(change).each(function (ea) {\n        if (Properties.own(change[ea].removed).length > 0) {\n            that.saveMorph({identifier: that.socket.socket.sessionid}, true)\n        }\n    })\n    var serializedChange = {};\n    Properties.own(change).each(function (ea) {\n        serializedChange[ea] = lively.persistence.Serializer.serialize(change[ea])\n    })\n    if (this.active) {\n        this.socket.emit('change', {\n            message: serializedChange,\n            me: false,\n            broadcast: true,\n        })\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":3992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3991":{"this":{"__isSmartRef__":true,"id":1426}},"3992":{"timestamp":{"__isSmartRef__":true,"id":3993},"user":"athomschke","tags":["diffing"]},"3993":{"isSerializedDate":true,"string":"Wed May 16 2012 15:17:09 GMT+0200 (CEST)"},"3994":{"varMapping":{"__isSmartRef__":true,"id":3995},"source":"function createMouseIndicator(id, colorCode, nick) {\n    var morph = Morph.makeRectangle(\n                rect($world.getExtent().subXY(10,10),\n                $world.getExtent()));\n    morph.identifier = id;\n    morph.isMouseIndicator = true;\n    if (colorCode) {\n        morph.setFill(Color.hsb(colorCode.h, colorCode.s, colorCode.b));\n    }\n    morph.setToolTip(nick);\n    morph.openInWorld();\n    return morph\n}","funcProperties":{"__isSmartRef__":true,"id":3996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3995":{"this":{"__isSmartRef__":true,"id":1426}},"3996":{"timestamp":{"__isSmartRef__":true,"id":3997},"user":"conradcalmez","tags":[]},"3997":{"isSerializedDate":true,"string":"Mon May 14 2012 18:37:23 GMT+0200 (CEST)"},"3998":{"varMapping":{"__isSmartRef__":true,"id":3999},"source":"function updateMouseIndicators(data) {\n    debugger\n    // if exists then move it\n    var position = pt(data.message.x, data.message.y)\n                        .subPt(this.getScrollBounds().topLeft())\n                        .addPt(this.getPosition());\n    var morph = this.owner.submorphs.find(function (ea) {\n        return ea.identifier === data.message.id\n    })\n\n    if (!morph) {\n        morph = this.createMouseIndicator(\n                data.message.id, \n                data.message.color, \n                data.message.nick);\n        this.owner.addMorph(morph);\n    } else {\n        if (data.message.remove) {\n            morph.remove();\n            return;\n        }\n    }\n    var extent = this.getExtent();\n    if (position.x > extent.x)\n        position.x = extent.x;\n    else if (position.x < 0)\n        position.x = 0;\n    if (position.y > extent.y)\n        position.y = extent.y;\n    else if (position.y < 21)\n        position.y = 21;\n    morph.setPosition(position);\n    var that = this;\n    if (data.message.morphs) {\n        data.message.morphs.each(function (ea) {\n            if (ea.morph) \n                var subMorph = that.deserializeMorph(ea.morph);\n            else {\n                var subMorph;\n                that.withAllSubmorphsDo(function (each) {\n                    if (ea.id === each.identifier)\n                        subMorph = each\n                });\n            }\n            morph.addMorphBack(subMorph);\n            subMorph.setPosition(pt(ea.position.x,ea.position.y));\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3999":{"this":{"__isSmartRef__":true,"id":1426}},"4000":{"timestamp":{"__isSmartRef__":true,"id":4001},"user":"athomschke","tags":[]},"4001":{"isSerializedDate":true,"string":"Wed May 16 2012 15:40:20 GMT+0200 (CEST)"},"4002":{"varMapping":{"__isSmartRef__":true,"id":4003},"source":"function handleMovingHand(point) {\n    var point = this.transformPoint(point);\n    var that = this;\n    if (this.isDrawing) {\n        this.lineTo(point, false, this.getColor());\n    }\n    if (this.active) {\n        var data = {x: point.x, y: point.y};\n        var submorphsOfHand = lively.morphic.World.current().firstHand().submorphs.slice(1);\n        if (!this.enteredBefore && submorphsOfHand.length > 0) {\n            this.enteredBefore = true;\n            data.morphs = submorphsOfHand.map(function (ea) {\n                var position = ea.getPosition();\n                if (ea.identifier) {\n                    return {id: ea.identifier, position: position};\n                } else {\n                    ea.withAllSubmorphsDo(function (each) {\n                        each.identifier = each.id\n                    })\n                    if (ea.selectionMorph) {\n                        disconnect(ea, \"extent\", ea.selectionMorph, \"setExtent\");\n                        disconnect(ea, \"_Position\", ea.selectionMorph, \"setPosition\");\n                        disconnect(ea, \"_Rotation\", ea.selectionMorph, \"setRotation\");\n                        disconnect(ea, \"_Scale\", ea.selectionMorph, \"setScale\");\n                    }\n                    var serialized = ea.serialize();\n                    if (ea.selectionMorph) {\n                        connect(ea, \"extent\", ea.selectionMorph, \"setExtent\");\n                        connect(ea, \"_Position\", ea.selectionMorph, \"setPosition\");\n                        connect(ea, \"_Rotation\", ea.selectionMorph, \"setRotation\");\n                        connect(ea, \"_Scale\", ea.selectionMorph, \"setScale\");                    \n                    }\n                    return {morph: serialized, identifier: ea.identifier, position: position};\n                }\n            });\n        }\n        else if(submorphsOfHand.length > 0) {\n            data.isNewMorphPosition = true;\n            data.ids = submorphsOfHand.map(function (ea) {return ea.identifier})\n        }\n        this.socket.emit('mouse', {\n            message: data,\n            me: false,\n            broadcast: true,\n        });\n    }  \n}","funcProperties":{"__isSmartRef__":true,"id":4004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4003":{"this":{"__isSmartRef__":true,"id":1426}},"4004":{"timestamp":{"__isSmartRef__":true,"id":4005},"user":"undefined","tags":[]},"4005":{"isSerializedDate":true,"string":"Tue May 15 2012 10:48:56 GMT+0200 (CEST)"},"4006":{"varMapping":{"__isSmartRef__":true,"id":4007},"source":"function onTouchOut(evt) {\n    var touch = evt.touches[0]\n    var globalPosition = evt.getPosition();\n    this.stopDrawing(evt, true);\n    if (this.active) {\n        this.enteredBefore = false;\n        this.socket.emit('mouse', {\n            message: {x: touch.pageX, y: touch.pageY, remove: []},\n            me: false,\n            broadcast: true,\n        });\n        lively.morphic.World.current().firstHand().submorphs.each(function (ea) {\n            ea.identifier = undefined;\n        });\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4007":{"this":{"__isSmartRef__":true,"id":1426}},"4008":{"timestamp":{"__isSmartRef__":true,"id":4009},"user":"undefined","tags":[]},"4009":{"isSerializedDate":true,"string":"Tue May 15 2012 10:48:56 GMT+0200 (CEST)"},"4010":{"varMapping":{"__isSmartRef__":true,"id":4011},"source":"function onLoad() {\n    this.connectionsToRemove = [];\n    /* this.connectionsToRemove.push(\n        connect(\n            this, \"active\",\n            this.createTitleBarButton(\n                \"O\",\n                \"toggles online status of SyncMorph\",\n                function () {this.toggleActivation()},\n                function () {this.toggleActivation()}\n            ), \"toggleState\", {}\n        )\n    );\n    this.connectionsToRemove.push(\n        connect(\n            this.chat, \"visible\",\n            this.createTitleBarButton(\n                \"C\",\n                \"toggles visibility of chat\",\n                function () {this.chat.show()},\n                function () {this.chat.hide()}\n            ), \"toggleState\", {}\n        )\n    );\n    this.connectionsToRemove.push(\n        connect(\n            this.pencilStyler, \"visible\",\n            this.createTitleBarButton(\n                \"P\",\n                \"toggles visibility of pencil styler\",\n                function () {this.pencilStyler.show()},\n                function () {this.pencilStyler.hide()}\n            ), \"toggleState\", {}\n        )\n    ); */\n}","funcProperties":{"__isSmartRef__":true,"id":4012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4011":{"this":{"__isSmartRef__":true,"id":1426}},"4012":{"timestamp":{"__isSmartRef__":true,"id":4013},"user":"athomschke","tags":[]},"4013":{"isSerializedDate":true,"string":"Fri May 18 2012 10:34:00 GMT+0200 (CEST)"},"4014":{"varMapping":{"__isSmartRef__":true,"id":4015},"source":"function loggedIn(callback) {    \n    if(!$world.requestUserName()){        \n        var wr = new WebResource(\"http://lively-kernel.org/cgi/user.sh\");    \n        var that = this;\n        var dummy = {\n            doItWith: function (input) {\n                callback.apply(that, input);\n            }\n        };\n        connect(wr, \"status\", dummy, \"doItWith\", {\n            converter: function (status) {\n                return [status];\n            }\n        });\n        wr.beAsync();\n        wr.post();\n        return false;\n    }\n    callback.apply(this, [{isDone: function () {return true}}]);\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":4016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4015":{"this":{"__isSmartRef__":true,"id":1426}},"4016":{"timestamp":{"__isSmartRef__":true,"id":4017},"user":"conradcalmez","tags":[]},"4017":{"isSerializedDate":true,"string":"Mon May 21 2012 18:30:56 GMT+0200 (CEST)"},"4018":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4019":{"morph":{"__isSmartRef__":true,"id":1259},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4020":{"sourceObj":{"__isSmartRef__":true,"id":1259},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":4021},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4021":{"submorphs":[],"scripts":[],"id":"35292DA9-4F4E-4392-8BCC-AEF77B815C1E","shape":{"__isSmartRef__":true,"id":4022},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4028},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":4029},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4030},"eventHandler":{"__isSmartRef__":true,"id":4031},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":763},"priorExtent":{"__isSmartRef__":true,"id":4032},"layout":{"__isSmartRef__":true,"id":4033},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":4025},"alarmColor":{"__isSmartRef__":true,"id":4034},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":4035},"isCopyMorphRef":true,"morphRefId":26,"derivationIds":[220,"EE491D24-F056-4AFE-A669-7B7048C6C3D1","3FA4A8C3-0FC0-43A0-8C00-00A96F9022E2","62DAD3C6-A81D-450F-B32F-601EA7E619D8","EEDB0C58-5990-481A-A7FF-ACB1A2DF08DD","16F708CB-1259-4A75-BAEF-1A5216C6CB19","97CA61D3-E09B-43CD-9880-D8B36FA303F3","0AF6BEEC-8A57-44FF-9D8D-40BA6CC6A0CD","AF2BEE76-C34F-457E-8699-9896327A4C07","5EC39FF0-602F-44A2-BE3A-04FCA127E5D1","44CEBF61-9A92-4E36-9576-425D5054B471"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4036},"__LivelyClassName__":"lively.morphic.Box"},"4022":{"position":{"__isSmartRef__":true,"id":4023},"_Extent":{"__isSmartRef__":true,"id":4024},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4025},"_Fill":{"__isSmartRef__":true,"id":4025},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4026},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4027},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4023":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4024":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4025":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4026":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4027":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4028":{"x":883.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4029":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4030":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4031":{"morph":{"__isSmartRef__":true,"id":4021},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4032":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4033":{"moveHorizontal":true,"adjustForNewBounds":true},"4034":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4035":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4036":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":4037},"setColors":{"__isSmartRef__":true,"id":4041}},"4037":{"varMapping":{"__isSmartRef__":true,"id":4038},"source":"function indicateUnsavedChanges() {\n    if (this.owner.scriptPane.hasChanged()) {\n        this.setColors(this.alarmColor);\n    } else {\n        this.setColors(this.savedColor);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4039},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4038":{"this":{"__isSmartRef__":true,"id":4021}},"4039":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":4040}},"4040":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (CEST)"},"4041":{"varMapping":{"__isSmartRef__":true,"id":4042},"source":"function setColors(color) {\n    this.setFill(color);\n    this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":4043},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4042":{"this":{"__isSmartRef__":true,"id":4021}},"4043":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":4044}},"4044":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (CEST)"},"4045":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4046":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4047},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":4054},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4055}],"eventHandler":{"__isSmartRef__":true,"id":4057},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":4058},"priorExtent":{"__isSmartRef__":true,"id":4059},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":4060},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4047":{"_Position":{"__isSmartRef__":true,"id":4048},"renderContextTable":{"__isSmartRef__":true,"id":4049},"_Extent":{"__isSmartRef__":true,"id":4050},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4051},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4052},"_Fill":{"__isSmartRef__":true,"id":4053},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4048":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4049":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4050":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4051":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4052":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4053":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4054":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4055":{"style":{"__isSmartRef__":true,"id":4056},"chunkOwner":{"__isSmartRef__":true,"id":4046},"storedString":"saved source","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4056":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4057":{"morph":{"__isSmartRef__":true,"id":4046},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4058":{"x":295.51426826444225,"y":225.30626630721798,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4059":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4060":{"r":0,"g":0.8,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4061":{"x":200,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4062":{"doSave":{"__isSmartRef__":true,"id":4063},"boundEval":{"__isSmartRef__":true,"id":4071},"reset":{"__isSmartRef__":true,"id":4079},"display":{"__isSmartRef__":true,"id":4083},"hasChanged":{"__isSmartRef__":true,"id":4087},"setTarget":{"__isSmartRef__":true,"id":4091},"displayStatus":{"__isSmartRef__":true,"id":4095}},"4063":{"varMapping":{"__isSmartRef__":true,"id":4064},"source":"function doSave() {\n    $super();\n    var saved = this.boundEval(this.getTextString());\n    if (saved) {\n        this.lastSaveSource = this.textString;\n        this.owner.changeIndicator.indicateUnsavedChanges();\n        this.owner.updateLists();\n        this.owner.selectChangedContent(this.getTextString());\n        this.displayStatus(\"saved source\", Color.green);\n    } else {\n        this.displayStatus(\"not saved\", Color.red);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4069},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4064":{"this":{"__isSmartRef__":true,"id":1259},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4065}},"4065":{"$super":{"__isSmartRef__":true,"id":4066}},"4066":{"varMapping":{"__isSmartRef__":true,"id":4067},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4068},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4067":{"obj":{"__isSmartRef__":true,"id":1259},"name":"doSave"},"4068":{},"4069":{"timestamp":{"__isSmartRef__":true,"id":4070},"user":"lauritz"},"4070":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (CET)"},"4071":{"varMapping":{"__isSmartRef__":true,"id":4072},"source":"function boundEval(str) {\n    var result;\n\n    this.objectEditorPane.ensureAnnotationLayer();\n    withLayers([ScriptAnnotationLayer], function() {\n        result = $super(str);\n    })\n    \n    return result\n}","funcProperties":{"__isSmartRef__":true,"id":4077},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4072":{"this":{"__isSmartRef__":true,"id":1259},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4073}},"4073":{"$super":{"__isSmartRef__":true,"id":4074}},"4074":{"varMapping":{"__isSmartRef__":true,"id":4075},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4076},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4075":{"obj":{"__isSmartRef__":true,"id":1259},"name":"boundEval"},"4076":{},"4077":{"timestamp":{"__isSmartRef__":true,"id":4078},"user":"lauritz","categories":[]},"4078":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (CET)"},"4079":{"varMapping":{"__isSmartRef__":true,"id":4080},"source":"function reset() {\n    this.doitContext = null;\n    this.lastSaveSource = \"\";\n    this.textString = \"\";\n    this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":4081},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4080":{"this":{"__isSmartRef__":true,"id":1259}},"4081":{"timestamp":{"__isSmartRef__":true,"id":4082},"user":"lauritz","categories":[]},"4082":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:14:35 GMT+0200 (CEST)"},"4083":{"varMapping":{"__isSmartRef__":true,"id":4084},"source":"function display(jsCode) {\n    this.lastSaveSource = jsCode;\n    this.setTextString(jsCode);\n    this.highlightJavaScriptSyntax();\n    this.applyStyle({align: 'left'});\n}","funcProperties":{"__isSmartRef__":true,"id":4085},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4084":{"this":{"__isSmartRef__":true,"id":1259}},"4085":{"timestamp":{"__isSmartRef__":true,"id":4086},"user":"lauritz","categories":[]},"4086":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (CEST)"},"4087":{"varMapping":{"__isSmartRef__":true,"id":4088},"source":"function hasChanged() {\n    var cleanText = function (string) {\n        var source = string.trim();\n        if (source.substring(0,2) === \"//\") {\n            // removes annotation line\n            source = source.substring(source.indexOf(\"\\n\"), source.length);\n            source = source.trim();\n        }\n        if (source === 'undefined' || source === 'null') source = '';\n        return source;\n    }\n    var cleanedTextString = cleanText(this.textString);\n    var cleanedLastSource = cleanText(this.lastSaveSource);\n    return cleanedTextString !== cleanedLastSource;\n}","funcProperties":{"__isSmartRef__":true,"id":4089},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4088":{"this":{"__isSmartRef__":true,"id":1259}},"4089":{"timestamp":{"__isSmartRef__":true,"id":4090},"user":"lauritz","categories":[]},"4090":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (CEST)"},"4091":{"varMapping":{"__isSmartRef__":true,"id":4092},"source":"function setTarget(target) {\n    module('lively.ide.SyntaxHighlighting').load(true);\n    this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":4093},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4092":{"this":{"__isSmartRef__":true,"id":1259}},"4093":{"timestamp":{"__isSmartRef__":true,"id":4094},"user":"lauritz","categories":[]},"4094":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (CET)"},"4095":{"varMapping":{"__isSmartRef__":true,"id":4096},"source":"function displayStatus(msg, color, delay) {\n    if (!this.statusMorph) {\n        this.statusMorph = new TextMorph(pt(100,25).extentAsRectangle());\n        this.statusMorph.applyStyle({borderWidth: 1, strokeOpacity: 0, borderColor: Color.gray});\n        this.statusMorph.setFill(this.owner.getFill());\n        this.statusMorph.setFontSize(11);\n        this.statusMorph.setAlign('center');\n        this.statusMorph.setVerticalAlign('center');\n    }\n    this.statusMorph.setTextString(msg);\n    this.statusMorph.centerAt(this.innerBounds().center());\n    this.statusMorph.setTextColor(color || Color.black);\n    this.addMorph(this.statusMorph);\n    (function() { this.statusMorph.remove() }).bind(this).delay(delay || 2);    \n}","funcProperties":{"__isSmartRef__":true,"id":4097},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4096":{"this":{"__isSmartRef__":true,"id":1259}},"4097":{"timestamp":{"__isSmartRef__":true,"id":4098},"user":"lauritz","categories":[]},"4098":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (CET)"},"4099":{"submorphs":[{"__isSmartRef__":true,"id":4100}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":4114},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4129},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4117},"lighterFill":{"__isSmartRef__":true,"id":4130},"label":{"__isSmartRef__":true,"id":4100},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":4139},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":4140},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":4141},"renderContextTable":{"__isSmartRef__":true,"id":4142},"eventHandler":{"__isSmartRef__":true,"id":4143},"__LivelyClassName__":"lively.morphic.Button"},"4100":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":4101},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4106},"textColor":{"__isSmartRef__":true,"id":4104},"owner":{"__isSmartRef__":true,"id":4099},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4107}],"padding":{"__isSmartRef__":true,"id":4109},"_Padding":{"__isSmartRef__":true,"id":4110},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4111},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4112},"eventHandler":{"__isSmartRef__":true,"id":4113},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"4101":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4102},"_Extent":{"__isSmartRef__":true,"id":4103},"_BorderColor":{"__isSmartRef__":true,"id":4104},"renderContextTable":{"__isSmartRef__":true,"id":4105},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4102":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4103":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4104":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4105":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4106":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4107":{"style":{"__isSmartRef__":true,"id":4108},"chunkOwner":{"__isSmartRef__":true,"id":4100},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4108":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4109":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4110":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4111":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4112":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4113":{"morph":{"__isSmartRef__":true,"id":4100},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4114":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4115},"_Extent":{"__isSmartRef__":true,"id":4116},"_Fill":{"__isSmartRef__":true,"id":4117},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4127},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4128},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4115":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4116":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4117":{"stops":[{"__isSmartRef__":true,"id":4118},{"__isSmartRef__":true,"id":4120},{"__isSmartRef__":true,"id":4122},{"__isSmartRef__":true,"id":4124}],"vector":{"__isSmartRef__":true,"id":4126},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4118":{"offset":0,"color":{"__isSmartRef__":true,"id":4119}},"4119":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4120":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4121}},"4121":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4122":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4123}},"4123":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4124":{"offset":1,"color":{"__isSmartRef__":true,"id":4125}},"4125":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4126":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4127":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4128":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4129":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4130":{"stops":[{"__isSmartRef__":true,"id":4131},{"__isSmartRef__":true,"id":4133},{"__isSmartRef__":true,"id":4135},{"__isSmartRef__":true,"id":4137}],"vector":{"__isSmartRef__":true,"id":4126},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4131":{"offset":0,"color":{"__isSmartRef__":true,"id":4132}},"4132":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4133":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4134}},"4134":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4135":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4136}},"4136":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4137":{"offset":1,"color":{"__isSmartRef__":true,"id":4138}},"4138":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4139":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4140":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4141":{"moveHorizontal":true},"4142":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"4143":{"morph":{"__isSmartRef__":true,"id":4099},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4144":{"submorphs":[],"scripts":[],"id":"984327E0-6BCF-4135-856D-281F426BD9D0","shape":{"__isSmartRef__":true,"id":4145},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4152},"itemList":["-- ALL --",["channelName",{"__isSmartRef__":true,"id":1453}],["active",{"__isSmartRef__":true,"id":3736}]],"selectedLineNo":2,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":4153},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":763},"priorExtent":{"__isSmartRef__":true,"id":4154},"attributeConnections":[{"__isSmartRef__":true,"id":4155}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":4160},"renderContextTable":{"__isSmartRef__":true,"id":4161},"eventHandler":{"__isSmartRef__":true,"id":4162},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":4163},"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"derivationIds":[209,"3900F5DF-0FF7-4C94-8BDB-44AAE12B4A3E","35301083-B60D-4A43-8566-23860EEB4C04","9CC401CC-5A35-4643-935B-FD049C284E16","C9879D40-5E79-4C56-AA79-562ED82BF052","9F6F9261-EB76-4B58-B77D-7D70813A1ED7","8B59E237-F372-4F70-9768-7E9C1A7A021D","FC85F1B9-1978-42D2-850C-BD249981E8B4","D2B607C6-A89B-4B3F-91BB-720451EAB98D","CC361093-FF73-479B-9431-C645CB48F518","307D3B7C-C0E1-484F-8D7E-39FBA9D8EDA5"],"selection":["active",{"__isSmartRef__":true,"id":4164}],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4165},"__LivelyClassName__":"lively.morphic.List"},"4145":{"position":{"__isSmartRef__":true,"id":4146},"_Extent":{"__isSmartRef__":true,"id":4147},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4148},"_Fill":{"__isSmartRef__":true,"id":4149},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":4150},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":4151},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4146":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4147":{"x":180,"y":74,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4148":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4149":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4150":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4151":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4152":{"x":10,"y":441.5965565984398,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4153":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4154":{"x":180,"y":75,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4155":{"sourceObj":{"__isSmartRef__":true,"id":4144},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":763},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n        if (!value) return;\n        return (value === '-- ALL --') ? null : value[1];\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4156},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4157},"__LivelyClassName__":"AttributeConnection"},"4156":{"source":{"__isSmartRef__":true,"id":4144},"target":{"__isSmartRef__":true,"id":763}},"4157":{"converter":{"__isSmartRef__":true,"id":4158}},"4158":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":4156},"source":"function (value) {\n        if (!value) return;\n        return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":4159},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4159":{},"4160":{"resizeHeight":false,"moveVertical":true},"4161":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"4162":{"morph":{"__isSmartRef__":true,"id":4144},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4163":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4164":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"active","targetObj":{"__isSmartRef__":true,"id":3663},"targetMethodName":"toggleState","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4165":{"preselectItem":{"__isSmartRef__":true,"id":4166}},"4166":{"varMapping":{"__isSmartRef__":true,"id":4167},"source":"function preselectItem() {\n    if (this.getList().size() === 2) {\n        this.selectAt(1);\n    } else {\n        this.selectAt(0);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4167":{"this":{"__isSmartRef__":true,"id":4144}},"4168":{"timestamp":{"__isSmartRef__":true,"id":4169},"user":"lauritz"},"4169":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (CET)"},"4170":{"submorphs":[{"__isSmartRef__":true,"id":4171}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":4184},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4199},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4187},"lighterFill":{"__isSmartRef__":true,"id":4200},"label":{"__isSmartRef__":true,"id":4171},"attributeConnections":[{"__isSmartRef__":true,"id":4209}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":4210},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":4211},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":4212},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"4171":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":4172},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4177},"textColor":{"__isSmartRef__":true,"id":4175},"owner":{"__isSmartRef__":true,"id":4170},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4178}],"padding":{"__isSmartRef__":true,"id":4180},"_Padding":{"__isSmartRef__":true,"id":4181},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4182},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4183},"__LivelyClassName__":"lively.morphic.Text"},"4172":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4173},"_Extent":{"__isSmartRef__":true,"id":4174},"_BorderColor":{"__isSmartRef__":true,"id":4175},"renderContextTable":{"__isSmartRef__":true,"id":4176},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4173":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4174":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4175":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4176":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"4177":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4178":{"style":{"__isSmartRef__":true,"id":4179},"chunkOwner":{"__isSmartRef__":true,"id":4171},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4179":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4180":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4181":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4182":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4184":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4185},"_Extent":{"__isSmartRef__":true,"id":4186},"_Fill":{"__isSmartRef__":true,"id":4187},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4197},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4198},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4185":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4186":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4187":{"stops":[{"__isSmartRef__":true,"id":4188},{"__isSmartRef__":true,"id":4190},{"__isSmartRef__":true,"id":4192},{"__isSmartRef__":true,"id":4194}],"vector":{"__isSmartRef__":true,"id":4196},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4188":{"offset":0,"color":{"__isSmartRef__":true,"id":4189}},"4189":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4190":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4191}},"4191":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4192":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4193}},"4193":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4194":{"offset":1,"color":{"__isSmartRef__":true,"id":4195}},"4195":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4196":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4197":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4198":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"4199":{"x":215,"y":35,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4200":{"stops":[{"__isSmartRef__":true,"id":4201},{"__isSmartRef__":true,"id":4203},{"__isSmartRef__":true,"id":4205},{"__isSmartRef__":true,"id":4207}],"vector":{"__isSmartRef__":true,"id":4196},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4201":{"offset":0,"color":{"__isSmartRef__":true,"id":4202}},"4202":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4203":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4204}},"4204":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4205":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4206}},"4206":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4207":{"offset":1,"color":{"__isSmartRef__":true,"id":4208}},"4208":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4209":{"sourceObj":{"__isSmartRef__":true,"id":4170},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":781},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"4210":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4211":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4212":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"4213":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"4214":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4215":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":4216},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4223},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4224},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":4225},"textChunks":[{"__isSmartRef__":true,"id":4226}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":4228}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"priorExtent":{"__isSmartRef__":true,"id":4230},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":4231},"eventHandler":{"__isSmartRef__":true,"id":4232},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":4233},"selection":{"__isSmartRef__":true,"id":762},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":4252},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":4253},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4254},"__LivelyClassName__":"lively.morphic.Text"},"4216":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4217},"_Extent":{"__isSmartRef__":true,"id":4218},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4219},"renderContextTable":{"__isSmartRef__":true,"id":4220},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4221},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":4222},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4217":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4218":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4219":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4220":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4221":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4222":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4223":{"x":200,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4224":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4225":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4226":{"style":{"__isSmartRef__":true,"id":4227},"chunkOwner":{"__isSmartRef__":true,"id":4215},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4227":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4228":{"sourceObj":{"__isSmartRef__":true,"id":4215},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":763},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4229},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4229":{"source":{"__isSmartRef__":true,"id":4215},"target":{"__isSmartRef__":true,"id":763}},"4230":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4231":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4232":{"morph":{"__isSmartRef__":true,"id":4215},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4233":{"createListMorph":{"__isSmartRef__":true,"id":4234},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":4236},"onMouseUp":{"__isSmartRef__":true,"id":4238},"resetConnections":{"__isSmartRef__":true,"id":4240},"setTargetToListSelection":{"__isSmartRef__":true,"id":4242},"setTargetOfPane":{"__isSmartRef__":true,"id":4244},"onBlur":{"__isSmartRef__":true,"id":4246},"reset":{"__isSmartRef__":true,"id":4248},"onMouseDown":{"__isSmartRef__":true,"id":4250}},"4234":{"time":{"__isSmartRef__":true,"id":4235},"user":"lauritz"},"4235":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (CEST)"},"4236":{"time":{"__isSmartRef__":true,"id":4237},"user":"lauritz"},"4237":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (CEST)"},"4238":{"time":{"__isSmartRef__":true,"id":4239},"user":"lauritz"},"4239":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (CEST)"},"4240":{"time":{"__isSmartRef__":true,"id":4241},"user":"lauritz"},"4241":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (CEST)"},"4242":{"time":{"__isSmartRef__":true,"id":4243},"user":"lauritz"},"4243":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (CEST)"},"4244":{"time":{"__isSmartRef__":true,"id":4245},"user":"lauritz"},"4245":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (CEST)"},"4246":{"time":{"__isSmartRef__":true,"id":4247},"user":"lauritz"},"4247":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (CEST)"},"4248":{"time":{"__isSmartRef__":true,"id":4249},"user":"lauritz"},"4249":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (CEST)"},"4250":{"time":{"__isSmartRef__":true,"id":4251},"user":"lauritz"},"4251":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (CEST)"},"4252":{},"4253":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4254":{"getList":{"__isSmartRef__":true,"id":4255},"setList":{"__isSmartRef__":true,"id":4258},"reset":{"__isSmartRef__":true,"id":4261},"example":{"__isSmartRef__":true,"id":4264},"removeList":{"__isSmartRef__":true,"id":4267},"onBlur":{"__isSmartRef__":true,"id":4270},"createListMorph":{"__isSmartRef__":true,"id":4277},"resetConnections":{"__isSmartRef__":true,"id":4280},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":4283},"setTargetToListSelection":{"__isSmartRef__":true,"id":4286},"setTargetOfPane":{"__isSmartRef__":true,"id":4289},"onMouseDown":{"__isSmartRef__":true,"id":4292}},"4255":{"varMapping":{"__isSmartRef__":true,"id":4256},"source":"function getList() {\n    return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":4257},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4256":{"this":{"__isSmartRef__":true,"id":4215}},"4257":{},"4258":{"varMapping":{"__isSmartRef__":true,"id":4259},"source":"function setList(list) {\n    return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":4260},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4259":{"this":{"__isSmartRef__":true,"id":4215}},"4260":{},"4261":{"varMapping":{"__isSmartRef__":true,"id":4262},"source":"function reset() {\n    this.list = [];\n    this.textString = 'empty';\n    this.removeList();\n    this.resetConnections();\n    this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":4263},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4262":{"this":{"__isSmartRef__":true,"id":4215}},"4263":{},"4264":{"varMapping":{"__isSmartRef__":true,"id":4265},"source":"function example() {\n/*\nthis.example()\nthis.getList()\n*/\n    this.setList(Array.range(0,100));\n    this.textString = 'empty';\n}","funcProperties":{"__isSmartRef__":true,"id":4266},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4265":{"this":{"__isSmartRef__":true,"id":4215}},"4266":{},"4267":{"varMapping":{"__isSmartRef__":true,"id":4268},"source":"function removeList() {\n    this.listMorph && this.listMorph.remove()\n    this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4269},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4268":{"this":{"__isSmartRef__":true,"id":4215}},"4269":{},"4270":{"varMapping":{"__isSmartRef__":true,"id":4271},"source":"function onBlur() {\n    $super();\n    this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":4276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4271":{"this":{"__isSmartRef__":true,"id":4215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4272}},"4272":{"$super":{"__isSmartRef__":true,"id":4273}},"4273":{"varMapping":{"__isSmartRef__":true,"id":4274},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4275},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4274":{"obj":{"__isSmartRef__":true,"id":4215},"name":"onBlur"},"4275":{},"4276":{},"4277":{"varMapping":{"__isSmartRef__":true,"id":4278},"source":"function createListMorph() {\n    var list = new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520));\n    list.setList(this.getList());\n    list.setFontSize(12);\n\n    list.disableGrabbing();\n    list.disableDragging();\n    \n    this.addMorph(list);\n    list.setPosition(pt(0,0));\n\n    connect(list, 'selection', this, 'setTargetToListSelection');\n    \n    return list;\n}","funcProperties":{"__isSmartRef__":true,"id":4279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4278":{"this":{"__isSmartRef__":true,"id":4215}},"4279":{},"4280":{"varMapping":{"__isSmartRef__":true,"id":4281},"source":"function resetConnections() {\n    disconnectAll(this);\n    connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":4282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4281":{"this":{"__isSmartRef__":true,"id":4215}},"4282":{},"4283":{"varMapping":{"__isSmartRef__":true,"id":4284},"source":"function displayTopLevelMorphs() {\n    if (this.listMorph) { this.removeList(); return true }\n    var list = this.createListMorph();   \n    this.addMorph(list);\n    this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":4285},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4284":{"this":{"__isSmartRef__":true,"id":4215}},"4285":{},"4286":{"varMapping":{"__isSmartRef__":true,"id":4287},"source":"function setTargetToListSelection(selection) {  \n    this.removeList();\n    if (!selection) return;\n    if (this.owner.scriptPane.hasChanged()) {\n        var that = this;\n        var callback = function (confirmed) {\n            if (confirmed) that.setTargetOfPane(selection);\n        }\n        this.owner.confirmUnsavedChanges(callback);\n    } else {\n        this.setTargetOfPane(selection);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4287":{"this":{"__isSmartRef__":true,"id":4215}},"4288":{},"4289":{"varMapping":{"__isSmartRef__":true,"id":4290},"source":"function setTargetOfPane(selection) {\n    this.owner.setTarget(selection);\n    this.setTextString(selection.getName());\n    this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":4291},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4290":{"this":{"__isSmartRef__":true,"id":4215}},"4291":{},"4292":{"varMapping":{"__isSmartRef__":true,"id":4293},"source":"function onMouseDown(evt) {\n    if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n    if (this.listMorph) {\n        return false;\n    } else {\n        this.displayTopLevelMorphs();\n        return true;\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4298},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4293":{"this":{"__isSmartRef__":true,"id":4215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4294}},"4294":{"$super":{"__isSmartRef__":true,"id":4295}},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4297},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4296":{"obj":{"__isSmartRef__":true,"id":4215},"name":"onMouseDown"},"4297":{},"4298":{},"4299":{"morph":{"__isSmartRef__":true,"id":781},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4300":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":4301},"setTarget":{"__isSmartRef__":true,"id":4304},"generateSourceForScript":{"__isSmartRef__":true,"id":4307},"generateSourceForConnection":{"__isSmartRef__":true,"id":4310},"generateTargetCode":{"__isSmartRef__":true,"id":4313},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":4316},"displayJavaScriptSource":{"__isSmartRef__":true,"id":4319},"displaySourceForScript":{"__isSmartRef__":true,"id":4322},"displaySourceForConnection":{"__isSmartRef__":true,"id":4325},"newScript":{"__isSmartRef__":true,"id":4328},"newConnection":{"__isSmartRef__":true,"id":4331},"deleteSelectedScript":{"__isSmartRef__":true,"id":4334},"disconnectConnection":{"__isSmartRef__":true,"id":4337},"updateLists":{"__isSmartRef__":true,"id":4340},"displayInitialScript":{"__isSmartRef__":true,"id":4343},"reset":{"__isSmartRef__":true,"id":4346},"selectChangedContent":{"__isSmartRef__":true,"id":4349}},"4301":{"varMapping":{"__isSmartRef__":true,"id":4302},"source":"function sortedScriptNamesOfObj(obj) {\n    if (!Functions.own(obj) ||  Functions.own(obj).size() == 0) return [];\n    return Functions.own(obj)\n\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":4303},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4302":{"this":{"__isSmartRef__":true,"id":781}},"4303":{},"4304":{"varMapping":{"__isSmartRef__":true,"id":4305},"source":"function setTarget(morph) {\n    this.reset();\n    module('lively.ide.SyntaxHighlighting').load(true);\n    this.target = morph;\n    this.morphSelector.textString = (this.target.getName() || this.target.toString());\n    this.scriptPane.doitContext = this.target;\n    this.updateLists();\n    this.displayInitialScript();\n}","funcProperties":{"__isSmartRef__":true,"id":4306},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4305":{"this":{"__isSmartRef__":true,"id":781}},"4306":{},"4307":{"varMapping":{"__isSmartRef__":true,"id":4308},"source":"function generateSourceForScript(scriptName) {\n    var script = this.target[scriptName].getOriginal();\n    return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":4309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4308":{"this":{"__isSmartRef__":true,"id":781}},"4309":{},"4310":{"varMapping":{"__isSmartRef__":true,"id":4311},"source":"function generateSourceForConnection(connection) {\n    var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":4312},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4311":{"this":{"__isSmartRef__":true,"id":781}},"4312":{},"4313":{"varMapping":{"__isSmartRef__":true,"id":4314},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] ===  targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject ===  targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":4315},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4314":{"this":{"__isSmartRef__":true,"id":781}},"4315":{},"4316":{"varMapping":{"__isSmartRef__":true,"id":4317},"source":"function sortedConnectionNamesOfObj(obj) {\n    if (\"attributeConnections\" in obj) {\n        return obj.attributeConnections\n            .sortBy(function(each) {return name.toLowerCase() })\n            .collect(function(each) {return [each.getSourceAttrName(), each]});\n    } else {\n        return [];\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4318},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4317":{"this":{"__isSmartRef__":true,"id":781}},"4318":{},"4319":{"varMapping":{"__isSmartRef__":true,"id":4320},"source":"function displayJavaScriptSource(jsCode) {\n    this.scriptPane.setTextString(jsCode);\n    this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":4321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4320":{"this":{"__isSmartRef__":true,"id":781}},"4321":{},"4322":{"varMapping":{"__isSmartRef__":true,"id":4323},"source":"function displaySourceForScript(scriptName) {\n    if (!scriptName) return;\n    var code = \"\", that = this;\n    if (scriptName === \"-- ALL --\") {\n         this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n            code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\");\n        });\n    } else {\n        code = this.generateSourceForScript(scriptName); \n    }\n    this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":4324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4323":{"this":{"__isSmartRef__":true,"id":781}},"4324":{},"4325":{"varMapping":{"__isSmartRef__":true,"id":4326},"source":"function displaySourceForConnection(connection) {\n    if (!connection) return;\n    var code = \"\", that = this;\n    if ((typeof connection === \"string\") && connection === \"-- ALL --\") {\n        this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n            code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n        })\n    } else {\n        code = this.generateSourceForConnection(connection);\n    }\n    this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":4327},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4326":{"this":{"__isSmartRef__":true,"id":781}},"4327":{},"4328":{"varMapping":{"__isSmartRef__":true,"id":4329},"source":"function newScript() {\n    if (this.target) {\n        var code = \"this.addScript(function SCRIPTNAME() {\\n\\t\\n});\";\n        this.displayJavaScriptSource(code);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4330},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4329":{"this":{"__isSmartRef__":true,"id":781}},"4330":{},"4331":{"varMapping":{"__isSmartRef__":true,"id":4332},"source":"function newConnection() {\n    if (this.target) {\n        var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n        this.displayJavaScriptSource(code);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4332":{"this":{"__isSmartRef__":true,"id":781}},"4333":{},"4334":{"varMapping":{"__isSmartRef__":true,"id":4335},"source":"function deleteSelectedScript() {\n    if (this.scriptList.selection && this.target) {\n        if (!this.target.hasOwnProperty(this.scriptList.selection)) return;\n        delete this.target[this.scriptList.selection];\n        this.updateLists();\n        this.displayInitialScript();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4335":{"this":{"__isSmartRef__":true,"id":781}},"4336":{},"4337":{"varMapping":{"__isSmartRef__":true,"id":4338},"source":"function disconnectConnection() {\n    var selection = this.connectionList.selection;\n    if (selection && \n    (typeof selection !== \"string\") &&\n    this.target.attributeConnections.indexOf(selection[1]) > -1) {\n        var c = this.connectionList.selection[1];\n        disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n        this.updateLists();\n        this.displayInitialScript();\n    } \n}","funcProperties":{"__isSmartRef__":true,"id":4339},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4338":{"this":{"__isSmartRef__":true,"id":781}},"4339":{},"4340":{"varMapping":{"__isSmartRef__":true,"id":4341},"source":"function updateLists() {\n    this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n    var scriptListItems = this.scriptList.getList();\n    scriptListItems.unshift(\"-- ALL --\");\n    this.scriptList.setList(scriptListItems);\n\n    this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n    var connectionListItems = this.connectionList.getList();\n    connectionListItems.unshift(\"-- ALL --\");\n    this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":4342},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4341":{"this":{"__isSmartRef__":true,"id":781}},"4342":{},"4343":{"varMapping":{"__isSmartRef__":true,"id":4344},"source":"function displayInitialScript() {\n    if (this.scriptList.getList().size() > 1) {\n        this.scriptList.selectAt(0);\n    } else if (this.connectionList.getList().size() > 1) {\n        this.connectionList.selectAt(0);\n    } else {\n        this.scriptList.selectAt(0);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4344":{"this":{"__isSmartRef__":true,"id":781}},"4345":{},"4346":{"varMapping":{"__isSmartRef__":true,"id":4347},"source":"function reset() {\n    this.target = null;\n    this.scriptPane.doitContext = null;\n    this.scriptList.setList();\n    this.connectionList.setList();\n    this.scriptPane.setTextString(\"\");\n    this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":4348},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4347":{"this":{"__isSmartRef__":true,"id":781}},"4348":{},"4349":{"varMapping":{"__isSmartRef__":true,"id":4350},"source":"function selectChangedContent(source) {\n\n    var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n    var addScriptMatches = [];\n    var addScriptMatch = addScriptRegex.exec(source);\n    while (addScriptMatch) {\n        addScriptMatches.push(addScriptMatch[1]);\n        addScriptMatch = addScriptRegex.exec(source);\n    }\n        \n    // if scripts were added, select either a specific one or all\n    if (addScriptMatches.length > 0) { \n        if (addScriptMatches.length === 1) {\n            var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n            if (index > -1) { \n                return this.scriptList.selectAt(index);\n            }\n        }\n        return this.scriptList.selectAt(0);\n    }\n\n    var connectionRegex = \n        /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n    var connectionMatches = [];\n    var connectionMatch = connectionRegex.exec(source);\n    while (connectionMatch) {\n        connectionMatches.push(connectionMatch);\n        connectionMatch = connectionRegex.exec(source);\n    }\n\n    // if connections were made, select either a specific one or all\n    if (connectionMatches.length > 0) {\n        if (connectionMatches.length === 1) {\n            var match = connectionMatches[0];\n            for (var i=0; i -1) {\n            var c = selection[1];\n            disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n            editor.updateLists();\n            editor.displayInitialScript();\n        } \n    }\n\n    var message = 'Disconnect \"' + selection[0] +'\" connection?';\n    var callback = disconnectConnection;\n\n    var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n    return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":4549},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4548":{"this":{"__isSmartRef__":true,"id":4495}},"4549":{"timestamp":{"__isSmartRef__":true,"id":4550},"user":"lauritz","categories":[]},"4550":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"4551":{"submorphs":[{"__isSmartRef__":true,"id":4552}],"scripts":[],"id":"1F7C6571-8B92-42C3-8759-5C2371E7C44C","shape":{"__isSmartRef__":true,"id":4567},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4583},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4570},"lighterFill":{"__isSmartRef__":true,"id":4584},"label":{"__isSmartRef__":true,"id":4552},"attributeConnections":[{"__isSmartRef__":true,"id":4593}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":4595},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":4596},"renderContextTable":{"__isSmartRef__":true,"id":4597},"priorExtent":{"__isSmartRef__":true,"id":4598},"owner":{"__isSmartRef__":true,"id":763},"eventHandler":{"__isSmartRef__":true,"id":4599},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":763},"distanceToDragEvent":{"__isSmartRef__":true,"id":4600},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D","7DDF7175-34FC-4521-A7C3-580A8BE63351","DEA39C05-FAD7-4882-AB3D-0EE12C3408F9","99186A50-1411-4B6F-B1CB-FF0742C20D7D"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4601},"__LivelyClassName__":"lively.morphic.Button"},"4552":{"submorphs":[],"scripts":[],"id":"9FA0FC59-7F7B-4D04-996F-6720C6F00D7E","shape":{"__isSmartRef__":true,"id":4553},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":21,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4559},"textColor":{"__isSmartRef__":true,"id":4556},"owner":{"__isSmartRef__":true,"id":4551},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4560}],"padding":{"__isSmartRef__":true,"id":4562},"_Padding":{"__isSmartRef__":true,"id":4563},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4564},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":4565},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":4566},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":21,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A","B4C4F09B-F663-47A1-B85F-461D5452F5F8","FD966AB1-4685-4151-9A38-B1B21B0237EF","CA91FC2C-D7CC-4123-AFD2-108F8F0C2E97"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4553":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4554},"_Extent":{"__isSmartRef__":true,"id":4555},"_BorderColor":{"__isSmartRef__":true,"id":4556},"renderContextTable":{"__isSmartRef__":true,"id":4557},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4558},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4554":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4555":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4556":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4557":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4558":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4559":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4560":{"style":{"__isSmartRef__":true,"id":4561},"chunkOwner":{"__isSmartRef__":true,"id":4552},"storedString":"-","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4561":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4562":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4563":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4564":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4565":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4566":{"morph":{"__isSmartRef__":true,"id":4552},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4567":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4568},"_Extent":{"__isSmartRef__":true,"id":4569},"_Fill":{"__isSmartRef__":true,"id":4570},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4580},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4581},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4582},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4568":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4569":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4570":{"stops":[{"__isSmartRef__":true,"id":4571},{"__isSmartRef__":true,"id":4573},{"__isSmartRef__":true,"id":4575},{"__isSmartRef__":true,"id":4577}],"vector":{"__isSmartRef__":true,"id":4579},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4571":{"offset":0,"color":{"__isSmartRef__":true,"id":4572}},"4572":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4573":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4574}},"4574":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4575":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4576}},"4576":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4577":{"offset":1,"color":{"__isSmartRef__":true,"id":4578}},"4578":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4579":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4580":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4582":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4583":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4584":{"stops":[{"__isSmartRef__":true,"id":4585},{"__isSmartRef__":true,"id":4587},{"__isSmartRef__":true,"id":4589},{"__isSmartRef__":true,"id":4591}],"vector":{"__isSmartRef__":true,"id":4579},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4585":{"offset":0,"color":{"__isSmartRef__":true,"id":4586}},"4586":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4587":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4588}},"4588":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4589":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4590}},"4590":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4591":{"offset":1,"color":{"__isSmartRef__":true,"id":4592}},"4592":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4593":{"sourceObj":{"__isSmartRef__":true,"id":4551},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4551},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4594},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4594":{"source":{"__isSmartRef__":true,"id":4551},"target":{"__isSmartRef__":true,"id":4551}},"4595":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4596":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4597":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4598":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4599":{"morph":{"__isSmartRef__":true,"id":4551},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4600":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4601":{"deleteSelectedScript":{"__isSmartRef__":true,"id":4602}},"4602":{"varMapping":{"__isSmartRef__":true,"id":4603},"source":"function deleteSelectedScript() {\n\n    var editor = this.objectEditorPane;\n    var selection = editor.scriptList.selection;\n\n    if (!editor.target || editor.scriptList.getList().size() < 2) \n        return;    \n\n    var deleteScript = function (confirmed) {\n        if (!confirmed) return;\n        \n        if (selection && editor.target) {\n            if (!editor.target.hasOwnProperty(selection)) \n                return;\n            delete editor.target[selection];\n            editor.updateLists();\n            editor.displayInitialScript();\n        }\n    }\n\n    var message = 'Delete \"' + selection + '\" script?';\n    var callback = deleteScript;\n\n    var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n    return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":4604},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4603":{"this":{"__isSmartRef__":true,"id":4551}},"4604":{"timestamp":{"__isSmartRef__":true,"id":4605},"user":"lauritz"},"4605":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"4606":{"submorphs":[{"__isSmartRef__":true,"id":4607}],"scripts":[],"id":"E3163ABA-9070-4C4D-9EBC-D2F57A0A6CA3","shape":{"__isSmartRef__":true,"id":4623},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4639},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4626},"lighterFill":{"__isSmartRef__":true,"id":4640},"label":{"__isSmartRef__":true,"id":4607},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":4649},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":4650},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":4651},"eventHandler":{"__isSmartRef__":true,"id":4652},"distanceToDragEvent":{"__isSmartRef__":true,"id":4653},"priorExtent":{"__isSmartRef__":true,"id":4654},"owner":{"__isSmartRef__":true,"id":763},"textString":"","selection":{"__isSmartRef__":true,"id":4655},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA","A50C1893-4138-4E29-865B-92F53F76D08A","1EC5D2B9-3539-419A-8DD6-CE82DEABB02C","95DC06D5-F4C7-49E2-8A01-110D1B0AFBD0"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4672},"__LivelyClassName__":"lively.morphic.Button"},"4607":{"submorphs":[],"scripts":[],"id":"8AD63B2F-06B6-48CF-BF85-23E441AA1E77","shape":{"__isSmartRef__":true,"id":4608},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4614},"textColor":{"__isSmartRef__":true,"id":4611},"owner":{"__isSmartRef__":true,"id":4606},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4615}],"padding":{"__isSmartRef__":true,"id":4617},"_Padding":{"__isSmartRef__":true,"id":4617},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4618},"attributeConnections":[{"__isSmartRef__":true,"id":4619}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":4620},"eventHandler":{"__isSmartRef__":true,"id":4621},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01","74158C3D-B79E-43E7-B111-48701B10ACE2","B19E117B-E40F-4B9F-86AC-BFB2AAFD5336","4E3B3D72-E52C-44ED-AE32-78939BA1ECFD"],"_TextColor":{"__isSmartRef__":true,"id":4622},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4608":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4609},"_Extent":{"__isSmartRef__":true,"id":4610},"_BorderColor":{"__isSmartRef__":true,"id":4611},"renderContextTable":{"__isSmartRef__":true,"id":4612},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4613},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4609":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4610":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4611":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4613":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4614":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4615":{"style":{"__isSmartRef__":true,"id":4616},"chunkOwner":{"__isSmartRef__":true,"id":4607},"storedString":"WhiteBoard","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4616":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4617":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4618":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4619":{"sourceObj":{"__isSmartRef__":true,"id":4607},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4606},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4620":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4621":{"morph":{"__isSmartRef__":true,"id":4607},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4622":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4623":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4624},"_Extent":{"__isSmartRef__":true,"id":4625},"_Fill":{"__isSmartRef__":true,"id":4626},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4636},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4637},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4638},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4624":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4625":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4626":{"stops":[{"__isSmartRef__":true,"id":4627},{"__isSmartRef__":true,"id":4629},{"__isSmartRef__":true,"id":4631},{"__isSmartRef__":true,"id":4633}],"vector":{"__isSmartRef__":true,"id":4635},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4627":{"offset":0,"color":{"__isSmartRef__":true,"id":4628}},"4628":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4629":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4630}},"4630":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4631":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4632}},"4632":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4633":{"offset":1,"color":{"__isSmartRef__":true,"id":4634}},"4634":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4635":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4636":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4637":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4638":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4639":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4640":{"stops":[{"__isSmartRef__":true,"id":4641},{"__isSmartRef__":true,"id":4643},{"__isSmartRef__":true,"id":4645},{"__isSmartRef__":true,"id":4647}],"vector":{"__isSmartRef__":true,"id":4635},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4641":{"offset":0,"color":{"__isSmartRef__":true,"id":4642}},"4642":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4643":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4644}},"4644":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4645":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4646}},"4646":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4647":{"offset":1,"color":{"__isSmartRef__":true,"id":4648}},"4648":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4649":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4650":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4651":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4652":{"morph":{"__isSmartRef__":true,"id":4606},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4653":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4654":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4655":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":4656},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4662},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4663},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":4664},"_TextColor":{"__isSmartRef__":true,"id":4665},"renderContextTable":{"__isSmartRef__":true,"id":4666},"textChunks":[{"__isSmartRef__":true,"id":4667}],"eventHandler":{"__isSmartRef__":true,"id":4669},"priorExtent":{"__isSmartRef__":true,"id":4670},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"distanceToDragEvent":{"__isSmartRef__":true,"id":4671},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"4656":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4657},"_Extent":{"__isSmartRef__":true,"id":4658},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4659},"renderContextTable":{"__isSmartRef__":true,"id":4660},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4661},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4657":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4658":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4659":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4660":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4661":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4662":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4663":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4664":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4665":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4666":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4667":{"style":{"__isSmartRef__":true,"id":4668},"chunkOwner":{"__isSmartRef__":true,"id":4655},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"4668":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4669":{"morph":{"__isSmartRef__":true,"id":4655},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4670":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4671":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4672":{"createListMorph":{"__isSmartRef__":true,"id":4673},"getList":{"__isSmartRef__":true,"id":4677},"removeList":{"__isSmartRef__":true,"id":4681},"reset":{"__isSmartRef__":true,"id":4685},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":4689},"onMouseDown":{"__isSmartRef__":true,"id":4693},"setTargetOfPane":{"__isSmartRef__":true,"id":4701},"setTargetToListSelection":{"__isSmartRef__":true,"id":4705},"onBlur":{"__isSmartRef__":true,"id":4709},"setTarget":{"__isSmartRef__":true,"id":4717},"setTargetOnSelection":{"__isSmartRef__":true,"id":4721}},"4673":{"varMapping":{"__isSmartRef__":true,"id":4674},"source":"function createListMorph() {\n    var items = this.getList();\n    \n    var height = Math.min(this.owner.getExtent().y, items.length * 17);\n    var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n    var listMorph = new lively.morphic.List(extent);\n    listMorph.setList(items);\n    listMorph.setFontSize(10);\n\n    listMorph.disableGrabbing();\n    listMorph.disableDragging();\n\n    connect(listMorph, 'selection', this, 'setTargetToListSelection');\n    \n    return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":4675},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4674":{"this":{"__isSmartRef__":true,"id":4606}},"4675":{"timestamp":{"__isSmartRef__":true,"id":4676},"user":"lauritz","tags":[]},"4676":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (CET)"},"4677":{"varMapping":{"__isSmartRef__":true,"id":4678},"source":"function getList() {\n    var worldEntry = {\n        isListItem: true,\n        selectionString: 'World',\n        string: 'World',\n        value: this.world()\n    };\n    var list = this.world().indentedListItemsOfMorphNames();\n    list.unshift(worldEntry);\n    return list;\n}","funcProperties":{"__isSmartRef__":true,"id":4679},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4678":{"this":{"__isSmartRef__":true,"id":4606}},"4679":{"timestamp":{"__isSmartRef__":true,"id":4680},"user":"lauritz","tags":[]},"4680":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (CET)"},"4681":{"varMapping":{"__isSmartRef__":true,"id":4682},"source":"function removeList() {\n    this.listMorph && this.listMorph.remove();\n    this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4683},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4682":{"this":{"__isSmartRef__":true,"id":4606}},"4683":{"timestamp":{"__isSmartRef__":true,"id":4684},"user":"lauritz","tags":[]},"4684":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (CET)"},"4685":{"varMapping":{"__isSmartRef__":true,"id":4686},"source":"function reset() {\n    this.list = [];\n    this.setLabel('empty');\n    this.label.setAlign('left');\n    this.removeList();\n    this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":4687},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4686":{"this":{"__isSmartRef__":true,"id":4606}},"4687":{"timestamp":{"__isSmartRef__":true,"id":4688},"user":"lauritz","tags":[]},"4688":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (CET)"},"4689":{"varMapping":{"__isSmartRef__":true,"id":4690},"source":"function displayTopLevelMorphs() {\n    var list = this.createListMorph();   \n    if (this.getList().length === 0) return;\n    this.addMorph(list);\n    this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":4691},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4690":{"this":{"__isSmartRef__":true,"id":4606}},"4691":{"timestamp":{"__isSmartRef__":true,"id":4692},"user":"lauritz","tags":[]},"4692":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (CET)"},"4693":{"varMapping":{"__isSmartRef__":true,"id":4694},"source":"function onMouseDown(evt) {\n    if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n    if (this.listMorph) {\n        // clicked on morph, not the list, not the list's scrollbar\n        if (evt.target === this.renderContext().shapeNode)\n            this.removeList();\n    } else {\n        this.displayTopLevelMorphs();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4699},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4694":{"this":{"__isSmartRef__":true,"id":4606},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4695}},"4695":{"$super":{"__isSmartRef__":true,"id":4696}},"4696":{"varMapping":{"__isSmartRef__":true,"id":4697},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4698},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4697":{"obj":{"__isSmartRef__":true,"id":4606},"name":"onMouseDown"},"4698":{},"4699":{"timestamp":{"__isSmartRef__":true,"id":4700},"user":"lauritz","tags":[]},"4700":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (CET)"},"4701":{"varMapping":{"__isSmartRef__":true,"id":4702},"source":"function setTargetOfPane(selection) {\n    this.owner.setTarget(selection);\n    this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":4703},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4702":{"this":{"__isSmartRef__":true,"id":4606}},"4703":{"timestamp":{"__isSmartRef__":true,"id":4704},"user":"lauritz","tags":[]},"4704":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (CET)"},"4705":{"varMapping":{"__isSmartRef__":true,"id":4706},"source":"function setTargetToListSelection() { \n    var selection = this.listMorph.selection;\n    this.removeList();\n    if (!selection) return;\n    if (this.owner.scriptPane.hasChanged()) {\n        var that = this;\n        var callback = function (confirmed) {\n            if (confirmed) that.setTargetOfPane(selection);\n        }\n        this.owner.confirmUnsavedChanges(callback);\n    } else {\n        this.setTargetOfPane(selection);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4707},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4706":{"this":{"__isSmartRef__":true,"id":4606}},"4707":{"timestamp":{"__isSmartRef__":true,"id":4708},"user":"lauritz","tags":[]},"4708":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (CET)"},"4709":{"varMapping":{"__isSmartRef__":true,"id":4710},"source":"function onBlur(evt) {\n    $super(evt);\n    \n    // workaround - otherwise other morphs get this event\n    var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n    if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n        this.removeList();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4715},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4710":{"this":{"__isSmartRef__":true,"id":4606},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4711}},"4711":{"$super":{"__isSmartRef__":true,"id":4712}},"4712":{"varMapping":{"__isSmartRef__":true,"id":4713},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4714},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4713":{"obj":{"__isSmartRef__":true,"id":4606},"name":"onBlur"},"4714":{},"4715":{"timestamp":{"__isSmartRef__":true,"id":4716},"user":"lauritz","tags":[]},"4716":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (CET)"},"4717":{"varMapping":{"__isSmartRef__":true,"id":4718},"source":"function setTarget(target) {\n    this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":4719},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4718":{"this":{"__isSmartRef__":true,"id":4606}},"4719":{"timestamp":{"__isSmartRef__":true,"id":4720},"user":"lauritz","tags":[]},"4720":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (CET)"},"4721":{"varMapping":{"__isSmartRef__":true,"id":4722},"source":"function setTargetOnSelection() {\n    if (this.listMorph && this.listMorph.renderContext() && this.listMorph.renderContext().listNode.value) {\n        this.setTargetToListSelection();\n        this.stopStepping();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4723},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4722":{"this":{"__isSmartRef__":true,"id":4606}},"4723":{"timestamp":{"__isSmartRef__":true,"id":4724},"user":"lauritz","tags":[]},"4724":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (CET)"},"4725":{"submorphs":[],"scripts":[],"id":"551A2006-4975-4C2C-B9C8-9F811173EC70","shape":{"__isSmartRef__":true,"id":4726},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4732},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4729},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4733},"textChunks":[{"__isSmartRef__":true,"id":4734}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4736},"renderContextTable":{"__isSmartRef__":true,"id":4737},"eventHandler":{"__isSmartRef__":true,"id":4738},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":4739},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":763},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F","36D1ECF9-591F-426B-A4F6-B337D7DB053B","CB52849C-BE64-4053-8D07-758F969F84EB","F1C241D4-A689-4DB7-942F-ADB5F39D9CAA"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4726":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4727},"_Extent":{"__isSmartRef__":true,"id":4728},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4729},"renderContextTable":{"__isSmartRef__":true,"id":4730},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4731},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4727":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4728":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4729":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4730":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4731":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4732":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4733":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4734":{"style":{"__isSmartRef__":true,"id":4735},"chunkOwner":{"__isSmartRef__":true,"id":4725},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"4735":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4736":{"x":64.8979476392384,"y":15,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4738":{"morph":{"__isSmartRef__":true,"id":4725},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4739":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4740":{"submorphs":[],"scripts":[],"id":"2485FB3D-7D1E-496B-B76D-D86C44612A2A","shape":{"__isSmartRef__":true,"id":4741},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4747},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4744},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":4748},"textChunks":[{"__isSmartRef__":true,"id":4749}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4751},"renderContextTable":{"__isSmartRef__":true,"id":4752},"eventHandler":{"__isSmartRef__":true,"id":4753},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":4754},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":763},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707","75C07D11-AE5D-4A36-B2D0-F2A6EA414E72","494AB1C0-2C09-49DE-B4AA-1F24DC7495FF","25199967-E3BA-4763-A704-37BD3152A5F7"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4741":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4742},"_Extent":{"__isSmartRef__":true,"id":4743},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4744},"renderContextTable":{"__isSmartRef__":true,"id":4745},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4746},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4742":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4743":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4744":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4745":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4746":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4747":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4748":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4749":{"style":{"__isSmartRef__":true,"id":4750},"chunkOwner":{"__isSmartRef__":true,"id":4740},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"4750":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4751":{"x":64.8979476392384,"y":15,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4752":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4753":{"morph":{"__isSmartRef__":true,"id":4740},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4754":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4755":{"submorphs":[{"__isSmartRef__":true,"id":4756}],"scripts":[],"id":"B4D74F3E-428B-4DC0-B46D-8D9E5455EA06","shape":{"__isSmartRef__":true,"id":4770},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4786},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4787},"lighterFill":{"__isSmartRef__":true,"id":4773},"label":{"__isSmartRef__":true,"id":4756},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":4796},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":4797},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":4798},"eventHandler":{"__isSmartRef__":true,"id":4799},"distanceToDragEvent":{"__isSmartRef__":true,"id":4800},"priorExtent":{"__isSmartRef__":true,"id":4801},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":763},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627","C66EBEEC-B7CE-4DD9-8BDF-905F071F965D","D68B143A-A712-4FD0-8803-62CCB4C7F763","ED802271-AE5C-4BE9-AC4E-7CED44BC864B"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4802},"__LivelyClassName__":"lively.morphic.Button"},"4756":{"submorphs":[],"scripts":[],"id":"693CB907-A0D9-4C31-927F-4ABD60A4CB81","shape":{"__isSmartRef__":true,"id":4757},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4762},"textColor":{"__isSmartRef__":true,"id":4760},"owner":{"__isSmartRef__":true,"id":4755},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4763}],"padding":{"__isSmartRef__":true,"id":4765},"_Padding":{"__isSmartRef__":true,"id":4765},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4766},"attributeConnections":[{"__isSmartRef__":true,"id":4767}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":4768},"eventHandler":{"__isSmartRef__":true,"id":4769},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D","567FC668-A57C-41CB-8252-8912826B3144","D0B0775F-C8E7-49EB-BBB2-C7BB7DD464BF","AABED87D-D7C0-494A-8803-26F4601E35FF"],"_TextColor":{"__isSmartRef__":true,"id":4622},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4757":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4758},"_Extent":{"__isSmartRef__":true,"id":4759},"_BorderColor":{"__isSmartRef__":true,"id":4760},"renderContextTable":{"__isSmartRef__":true,"id":4761},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4613},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4758":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4759":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4760":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4761":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4762":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4763":{"style":{"__isSmartRef__":true,"id":4764},"chunkOwner":{"__isSmartRef__":true,"id":4756},"storedString":"all","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4764":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4765":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4766":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4767":{"sourceObj":{"__isSmartRef__":true,"id":4756},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4755},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4768":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4769":{"morph":{"__isSmartRef__":true,"id":4756},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4770":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4771},"_Extent":{"__isSmartRef__":true,"id":4772},"_Fill":{"__isSmartRef__":true,"id":4773},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4783},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4784},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4785},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4771":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4772":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4773":{"stops":[{"__isSmartRef__":true,"id":4774},{"__isSmartRef__":true,"id":4776},{"__isSmartRef__":true,"id":4778},{"__isSmartRef__":true,"id":4780}],"vector":{"__isSmartRef__":true,"id":4782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4774":{"offset":0,"color":{"__isSmartRef__":true,"id":4775}},"4775":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4776":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4777}},"4777":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4778":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4779}},"4779":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4780":{"offset":1,"color":{"__isSmartRef__":true,"id":4781}},"4781":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4782":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4783":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4784":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4785":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4786":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4787":{"stops":[{"__isSmartRef__":true,"id":4788},{"__isSmartRef__":true,"id":4790},{"__isSmartRef__":true,"id":4792},{"__isSmartRef__":true,"id":4794}],"vector":{"__isSmartRef__":true,"id":4782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4788":{"offset":0,"color":{"__isSmartRef__":true,"id":4789}},"4789":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4790":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4791}},"4791":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4792":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4793}},"4793":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4794":{"offset":1,"color":{"__isSmartRef__":true,"id":4795}},"4795":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4796":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4797":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4798":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4799":{"morph":{"__isSmartRef__":true,"id":4755},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4800":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4801":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4802":{"createListMorph":{"__isSmartRef__":true,"id":4803},"getList":{"__isSmartRef__":true,"id":4807},"removeList":{"__isSmartRef__":true,"id":4811},"reset":{"__isSmartRef__":true,"id":4815},"onMouseUp":{"__isSmartRef__":true,"id":4819},"onBlur":{"__isSmartRef__":true,"id":4827},"setTag":{"__isSmartRef__":true,"id":4835}},"4803":{"varMapping":{"__isSmartRef__":true,"id":4804},"source":"function createListMorph() {\n    var items = this.getList();\n\n    var height = Math.min(this.owner.getExtent().y, items.length * 17);\n    var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n    var listMorph = new lively.morphic.List(extent);\n    listMorph.setList(items);\n    listMorph.setFontSize(10);\n\n    listMorph.disableGrabbing();\n    listMorph.disableDragging();\n    \n    connect(listMorph, 'selection', this, 'setTag');\n    \n    return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":4805},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4804":{"this":{"__isSmartRef__":true,"id":4755}},"4805":{"timestamp":{"__isSmartRef__":true,"id":4806},"user":"lauritz","categories":[]},"4806":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"4807":{"varMapping":{"__isSmartRef__":true,"id":4808},"source":"function getList() {\n    if (!this.owner.target) return [''];\n\n    var target = this.owner.target;\n\n    var tags = Functions.own(target).collect(function (each) {\n        return target[each].tags || [];\n    }).flatten().uniq();\n\n    var sortedTags = tags.sortBy(function(name) { \n        return name.toLowerCase() \n    });\n    \n    sortedTags.unshift('all'); \n    return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":4809},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4808":{"this":{"__isSmartRef__":true,"id":4755}},"4809":{"timestamp":{"__isSmartRef__":true,"id":4810},"user":"lauritz","tags":[]},"4810":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"4811":{"varMapping":{"__isSmartRef__":true,"id":4812},"source":"function removeList() {\n    this.listMorph && this.listMorph.remove()\n    this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4813},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4812":{"this":{"__isSmartRef__":true,"id":4755}},"4813":{"timestamp":{"__isSmartRef__":true,"id":4814},"user":"lauritz","categories":[]},"4814":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"4815":{"varMapping":{"__isSmartRef__":true,"id":4816},"source":"function reset() {\n    this.list = [];\n    this.setLabel('all');\n    this.label.setAlign('left');\n    this.removeList();\n    this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":4817},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4816":{"this":{"__isSmartRef__":true,"id":4755}},"4817":{"timestamp":{"__isSmartRef__":true,"id":4818},"user":"lauritz","tags":[]},"4818":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"4819":{"varMapping":{"__isSmartRef__":true,"id":4820},"source":"function onMouseUp(evt) {\n    if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n    if (this.listMorph) {\n        this.removeList();\n        return true;\n    } \n    if (this.getList().size() < 2) return;\n    var list = this.createListMorph();\n    this.addMorph(list);\n    this.listMorph = list;\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":4825},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4820":{"this":{"__isSmartRef__":true,"id":4755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4821}},"4821":{"$super":{"__isSmartRef__":true,"id":4822}},"4822":{"varMapping":{"__isSmartRef__":true,"id":4823},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4824},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4823":{"obj":{"__isSmartRef__":true,"id":4755},"name":"onMouseUp"},"4824":{},"4825":{"timestamp":{"__isSmartRef__":true,"id":4826},"user":"lauritz","categories":[]},"4826":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"4827":{"varMapping":{"__isSmartRef__":true,"id":4828},"source":"function onBlur(evt) {\n    $super(evt);\n    \n    // workaround - otherwise other morphs get this event\n    var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n    if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n        this.removeList();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4833},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4828":{"this":{"__isSmartRef__":true,"id":4755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4829}},"4829":{"$super":{"__isSmartRef__":true,"id":4830}},"4830":{"varMapping":{"__isSmartRef__":true,"id":4831},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4832},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4831":{"obj":{"__isSmartRef__":true,"id":4755},"name":"onBlur"},"4832":{},"4833":{"timestamp":{"__isSmartRef__":true,"id":4834},"user":"lauritz","categories":[]},"4834":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"4835":{"varMapping":{"__isSmartRef__":true,"id":4836},"source":"function setTag(tag) {\n    this.setLabel(tag || '');\n    this.label.setAlign('left');\n    this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":4837},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4836":{"this":{"__isSmartRef__":true,"id":4755}},"4837":{"timestamp":{"__isSmartRef__":true,"id":4838},"user":"lauritz","categories":[]},"4838":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"4839":{"submorphs":[{"__isSmartRef__":true,"id":4840}],"scripts":[],"id":"26F65AEB-162E-40C0-A8A2-B7D0CAB7C7DA","shape":{"__isSmartRef__":true,"id":4855},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4859},"lighterFill":{"__isSmartRef__":true,"id":4871},"label":{"__isSmartRef__":true,"id":4840},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4880},"attributeConnections":[{"__isSmartRef__":true,"id":4881}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":4917},"renderContextTable":{"__isSmartRef__":true,"id":4918},"eventHandler":{"__isSmartRef__":true,"id":4919},"distanceToDragEvent":{"__isSmartRef__":true,"id":4920},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15","1C6D1DC9-2F9B-4DC4-B453-1CA45B17C516","0E8EC0BF-934B-410B-AEC2-0ECA8C8F774D","97086CE7-CD46-4035-A371-02A41D555A66"],"_Position":{"__isSmartRef__":true,"id":4921},"owner":{"__isSmartRef__":true,"id":763},"layout":{"__isSmartRef__":true,"id":4922},"_ClipMode":"visible","_Rotation":0,"_Scale":0.994014980014994,"__LivelyClassName__":"lively.morphic.Button"},"4840":{"submorphs":[],"scripts":[],"id":"F9091F2E-0879-49CA-92CC-9ABD106F4BFA","shape":{"__isSmartRef__":true,"id":4841},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4847},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4848},"_Padding":{"__isSmartRef__":true,"id":4849},"owner":{"__isSmartRef__":true,"id":4839},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4850},"textChunks":[{"__isSmartRef__":true,"id":4851}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4853},"eventHandler":{"__isSmartRef__":true,"id":4854},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E","81041CF7-31DB-4F65-BB39-FE438A4F266F","D03829B3-268E-40A0-A440-3E4BAC344F30","714637F0-714A-4833-909B-BA4AF1B4628B"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"4841":{"position":{"__isSmartRef__":true,"id":4842},"_Extent":{"__isSmartRef__":true,"id":4843},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4844},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4845},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4846},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4842":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4843":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4844":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4845":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4846":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4847":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4848":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4849":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4850":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4851":{"style":{"__isSmartRef__":true,"id":4852},"chunkOwner":{"__isSmartRef__":true,"id":4840},"storedString":"run","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4852":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4853":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4854":{"morph":{"__isSmartRef__":true,"id":4840},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4855":{"position":{"__isSmartRef__":true,"id":4856},"_Extent":{"__isSmartRef__":true,"id":4857},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":4858},"_Fill":{"__isSmartRef__":true,"id":4859},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4869},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4870},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4856":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4857":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4858":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4859":{"stops":[{"__isSmartRef__":true,"id":4860},{"__isSmartRef__":true,"id":4862},{"__isSmartRef__":true,"id":4864},{"__isSmartRef__":true,"id":4866}],"vector":{"__isSmartRef__":true,"id":4868},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4860":{"offset":0,"color":{"__isSmartRef__":true,"id":4861}},"4861":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4862":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4863}},"4863":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4864":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4865}},"4865":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4866":{"offset":1,"color":{"__isSmartRef__":true,"id":4867}},"4867":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4868":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4869":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4870":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4871":{"stops":[{"__isSmartRef__":true,"id":4872},{"__isSmartRef__":true,"id":4874},{"__isSmartRef__":true,"id":4876},{"__isSmartRef__":true,"id":4878}],"vector":{"__isSmartRef__":true,"id":4868},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4872":{"offset":0,"color":{"__isSmartRef__":true,"id":4873}},"4873":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4874":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4875}},"4875":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4876":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4877}},"4877":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4878":{"offset":1,"color":{"__isSmartRef__":true,"id":4879}},"4879":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4880":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4881":{"sourceObj":{"__isSmartRef__":true,"id":4839},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":763},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":4882},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4882":{"submorphs":[{"__isSmartRef__":true,"id":4883}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4898},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":4905},"eventHandler":{"__isSmartRef__":true,"id":4906},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":4907},{"__isSmartRef__":true,"id":4908}],"con":{"__isSmartRef__":true,"id":4881},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4909},"__LivelyClassName__":"lively.morphic.Path"},"4883":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4884},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":4895},"eventHandler":{"__isSmartRef__":true,"id":4896},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4897},"owner":{"__isSmartRef__":true,"id":4882},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"4884":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4885},{"__isSmartRef__":true,"id":4886},{"__isSmartRef__":true,"id":4887},{"__isSmartRef__":true,"id":4888}],"renderContextTable":{"__isSmartRef__":true,"id":4889},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4890},"_Extent":{"__isSmartRef__":true,"id":4891},"_Padding":{"__isSmartRef__":true,"id":4892},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4893},"_Fill":{"__isSmartRef__":true,"id":4894},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4885":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4886":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4887":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4888":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4889":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4890":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4891":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4892":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4893":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4894":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4895":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4896":{"morph":{"__isSmartRef__":true,"id":4883},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4897":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4898":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4899},{"__isSmartRef__":true,"id":4900}],"renderContextTable":{"__isSmartRef__":true,"id":4901},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4902},"_Extent":{"__isSmartRef__":true,"id":4903},"_Padding":{"__isSmartRef__":true,"id":4904},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4893},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4899":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4900":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4901":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4902":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4903":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4904":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4905":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4906":{"morph":{"__isSmartRef__":true,"id":4882},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4907":{"morph":{"__isSmartRef__":true,"id":4882},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4908":{"morph":{"__isSmartRef__":true,"id":4882},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":4883},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4909":{"morphMenuItems":{"__isSmartRef__":true,"id":4910}},"4910":{"varMapping":{"__isSmartRef__":true,"id":4911},"source":"function morphMenuItems() {\n            var visualConnector = this, con = this.con, world = this.world();\n            var items = [\n                ['edit converter', function() {\n                    var source = con.converterString ||\n                        'function converter(value) {\\n    return value\\n}',\n                        editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n                    editor.doitContext = con;\n                    connect(editor, 'savedTextString', con, 'converterString', {updater:\n                        function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n                    connect(editor, 'savedTextString', world, 'alertOK', {converter:\n                        function() { return 'setting new converter' }})\n                    editor.applyStyle({syntaxHighlighting: true,\n                        fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n                    var title = con.targetObj.name && con.sourceObj.name ?\n                        'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n                        'Editor for converter function';\n                    var window = world.addFramedMorph(editor, title)\n                    window.align(window.bounds().topCenter(),\n                        visualConnector.bounds().bottomCenter())\n                }],\n                ['hide', function() {\n                    visualConnector.disconnectFromMagnets();\n                    visualConnector.remove();\n                }],\n                ['disconnect', function() {\n                    alertOK('Disconnected ' + visualConnector.con);\n                    visualConnector.con.visualDisconnect();\n                }],\n                ['cancel', function() {}],\n            ];\n            return items;\n        }","funcProperties":{"__isSmartRef__":true,"id":4916},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4911":{"this":{"__isSmartRef__":true,"id":4882},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4912}},"4912":{"$super":{"__isSmartRef__":true,"id":4913}},"4913":{"varMapping":{"__isSmartRef__":true,"id":4914},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4915},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4914":{"obj":{"__isSmartRef__":true,"id":4882},"name":"morphMenuItems"},"4915":{},"4916":{},"4917":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4918":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4919":{"morph":{"__isSmartRef__":true,"id":4839},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4920":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4921":{"x":788.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4922":{"centeredHorizontal":false,"moveHorizontal":true},"4923":{"submorphs":[{"__isSmartRef__":true,"id":4924}],"scripts":[],"id":"54167B10-2217-445E-A996-A910832AB2F1","shape":{"__isSmartRef__":true,"id":4939},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4943},"lighterFill":{"__isSmartRef__":true,"id":4955},"label":{"__isSmartRef__":true,"id":4924},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4964},"attributeConnections":[{"__isSmartRef__":true,"id":4965}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":5001},"renderContextTable":{"__isSmartRef__":true,"id":5002},"eventHandler":{"__isSmartRef__":true,"id":5003},"distanceToDragEvent":{"__isSmartRef__":true,"id":5004},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6","B05829EB-D452-4D81-983B-E2CE425C8260","32B117E5-52D8-4843-B80E-090B9817E099","49AC923E-5272-4E3C-8F02-4F2AED2BC4E9"],"layout":{"__isSmartRef__":true,"id":5005},"_Position":{"__isSmartRef__":true,"id":5006},"owner":{"__isSmartRef__":true,"id":763},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9880657804942089,"__LivelyClassName__":"lively.morphic.Button"},"4924":{"submorphs":[],"scripts":[],"id":"1F9873BE-5B48-4057-81F4-76F35C192507","shape":{"__isSmartRef__":true,"id":4925},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4931},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4932},"_Padding":{"__isSmartRef__":true,"id":4933},"owner":{"__isSmartRef__":true,"id":4923},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4934},"textChunks":[{"__isSmartRef__":true,"id":4935}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4937},"eventHandler":{"__isSmartRef__":true,"id":4938},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353","4529D79B-4CC5-467E-91F8-661C3A5F49F8","1E5E570C-FD42-45E3-A7F6-768BB14ACD14","A13FB4E0-72F2-4E7C-A861-EDCBA1393860"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"4925":{"position":{"__isSmartRef__":true,"id":4926},"_Extent":{"__isSmartRef__":true,"id":4927},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4928},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4929},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4930},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4926":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4927":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4928":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4929":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4930":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4931":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4932":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4933":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4934":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4935":{"style":{"__isSmartRef__":true,"id":4936},"chunkOwner":{"__isSmartRef__":true,"id":4924},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4936":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"4938":{"morph":{"__isSmartRef__":true,"id":4924},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4939":{"position":{"__isSmartRef__":true,"id":4940},"_Extent":{"__isSmartRef__":true,"id":4941},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":4942},"_Fill":{"__isSmartRef__":true,"id":4943},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4953},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4954},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4940":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4941":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4942":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4943":{"stops":[{"__isSmartRef__":true,"id":4944},{"__isSmartRef__":true,"id":4946},{"__isSmartRef__":true,"id":4948},{"__isSmartRef__":true,"id":4950}],"vector":{"__isSmartRef__":true,"id":4952},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4944":{"offset":0,"color":{"__isSmartRef__":true,"id":4945}},"4945":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4946":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4947}},"4947":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4948":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4949}},"4949":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4950":{"offset":1,"color":{"__isSmartRef__":true,"id":4951}},"4951":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4952":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4953":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4954":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4955":{"stops":[{"__isSmartRef__":true,"id":4956},{"__isSmartRef__":true,"id":4958},{"__isSmartRef__":true,"id":4960},{"__isSmartRef__":true,"id":4962}],"vector":{"__isSmartRef__":true,"id":4952},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4956":{"offset":0,"color":{"__isSmartRef__":true,"id":4957}},"4957":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4958":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4959}},"4959":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4960":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4961}},"4961":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4962":{"offset":1,"color":{"__isSmartRef__":true,"id":4963}},"4963":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4964":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4965":{"sourceObj":{"__isSmartRef__":true,"id":4923},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1259},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":4966},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4966":{"submorphs":[{"__isSmartRef__":true,"id":4967}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4982},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":4989},"eventHandler":{"__isSmartRef__":true,"id":4990},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":4991},{"__isSmartRef__":true,"id":4992}],"con":{"__isSmartRef__":true,"id":4965},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4993},"__LivelyClassName__":"lively.morphic.Path"},"4967":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4968},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":4979},"eventHandler":{"__isSmartRef__":true,"id":4980},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4981},"owner":{"__isSmartRef__":true,"id":4966},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"4968":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4969},{"__isSmartRef__":true,"id":4970},{"__isSmartRef__":true,"id":4971},{"__isSmartRef__":true,"id":4972}],"renderContextTable":{"__isSmartRef__":true,"id":4973},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4974},"_Extent":{"__isSmartRef__":true,"id":4975},"_Padding":{"__isSmartRef__":true,"id":4976},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4977},"_Fill":{"__isSmartRef__":true,"id":4978},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4969":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4970":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4971":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4972":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4973":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4974":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4975":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4976":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4977":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4978":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4979":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4980":{"morph":{"__isSmartRef__":true,"id":4967},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4981":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4982":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4983},{"__isSmartRef__":true,"id":4984}],"renderContextTable":{"__isSmartRef__":true,"id":4985},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4986},"_Extent":{"__isSmartRef__":true,"id":4987},"_Padding":{"__isSmartRef__":true,"id":4988},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4977},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4983":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4984":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4985":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4986":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4987":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4988":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4989":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4990":{"morph":{"__isSmartRef__":true,"id":4966},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4991":{"morph":{"__isSmartRef__":true,"id":4966},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4992":{"morph":{"__isSmartRef__":true,"id":4966},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":4967},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4993":{"morphMenuItems":{"__isSmartRef__":true,"id":4994}},"4994":{"varMapping":{"__isSmartRef__":true,"id":4995},"source":"function morphMenuItems() {\n            var visualConnector = this, con = this.con, world = this.world();\n            var items = [\n                ['edit converter', function() {\n                    var source = con.converterString ||\n                        'function converter(value) {\\n    return value\\n}',\n                        editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n                    editor.doitContext = con;\n                    connect(editor, 'savedTextString', con, 'converterString', {updater:\n                        function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n                    connect(editor, 'savedTextString', world, 'alertOK', {converter:\n                        function() { return 'setting new converter' }})\n                    editor.applyStyle({syntaxHighlighting: true,\n                        fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n                    var title = con.targetObj.name && con.sourceObj.name ?\n                        'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n                        'Editor for converter function';\n                    var window = world.addFramedMorph(editor, title)\n                    window.align(window.bounds().topCenter(),\n                        visualConnector.bounds().bottomCenter())\n                }],\n                ['hide', function() {\n                    visualConnector.disconnectFromMagnets();\n                    visualConnector.remove();\n                }],\n                ['disconnect', function() {\n                    alertOK('Disconnected ' + visualConnector.con);\n                    visualConnector.con.visualDisconnect();\n                }],\n                ['cancel', function() {}],\n            ];\n            return items;\n        }","funcProperties":{"__isSmartRef__":true,"id":5000},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4995":{"this":{"__isSmartRef__":true,"id":4966},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4996}},"4996":{"$super":{"__isSmartRef__":true,"id":4997}},"4997":{"varMapping":{"__isSmartRef__":true,"id":4998},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4999},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4998":{"obj":{"__isSmartRef__":true,"id":4966},"name":"morphMenuItems"},"4999":{},"5000":{},"5001":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5002":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5003":{"morph":{"__isSmartRef__":true,"id":4923},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5004":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5005":{"centeredHorizontal":false,"moveHorizontal":true},"5006":{"x":675.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5007":{"submorphs":[{"__isSmartRef__":true,"id":5008}],"scripts":[],"id":"7BDE4D7D-BF5B-4DAB-B029-068DF35FB2E0","shape":{"__isSmartRef__":true,"id":5023},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5039},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5027},"lighterFill":{"__isSmartRef__":true,"id":5040},"label":{"__isSmartRef__":true,"id":5008},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5049},"attributeConnections":[{"__isSmartRef__":true,"id":5050}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":5051},"renderContextTable":{"__isSmartRef__":true,"id":5052},"eventHandler":{"__isSmartRef__":true,"id":5053},"distanceToDragEvent":{"__isSmartRef__":true,"id":5054},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3","FF38CA79-C0DF-4F2F-8FC3-407571EF6A54","B1D50332-9F4F-4F7C-AC3F-95DC6C73EAA4","5B8D7C39-987A-4849-BFFD-3F316CE03852"],"owner":{"__isSmartRef__":true,"id":763},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9940149800149939,"__LivelyClassName__":"lively.morphic.Button"},"5008":{"submorphs":[],"scripts":[],"id":"AD5348C2-6789-4BF3-8770-30766B9ED073","shape":{"__isSmartRef__":true,"id":5009},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5015},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":5016},"_Padding":{"__isSmartRef__":true,"id":5017},"owner":{"__isSmartRef__":true,"id":5007},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":5018},"textChunks":[{"__isSmartRef__":true,"id":5019}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":5021},"eventHandler":{"__isSmartRef__":true,"id":5022},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718","6BB077CE-92E6-47BE-BE88-9A48488562D1","9E359973-2FDB-417B-BB06-AB34D52BD310","58F098ED-A190-44F2-B73E-80802B2CF2F6"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"5009":{"position":{"__isSmartRef__":true,"id":5010},"_Extent":{"__isSmartRef__":true,"id":5011},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5012},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5013},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5014},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5010":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5011":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5012":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5013":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5014":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5015":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5016":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5017":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5018":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5019":{"style":{"__isSmartRef__":true,"id":5020},"chunkOwner":{"__isSmartRef__":true,"id":5008},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5020":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5021":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"5022":{"morph":{"__isSmartRef__":true,"id":5008},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5023":{"position":{"__isSmartRef__":true,"id":5024},"_Extent":{"__isSmartRef__":true,"id":5025},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":5026},"_Fill":{"__isSmartRef__":true,"id":5027},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5037},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5038},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5024":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5025":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5026":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5027":{"stops":[{"__isSmartRef__":true,"id":5028},{"__isSmartRef__":true,"id":5030},{"__isSmartRef__":true,"id":5032},{"__isSmartRef__":true,"id":5034}],"vector":{"__isSmartRef__":true,"id":5036},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5028":{"offset":0,"color":{"__isSmartRef__":true,"id":5029}},"5029":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5030":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5031}},"5031":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5032":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5033}},"5033":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5034":{"offset":1,"color":{"__isSmartRef__":true,"id":5035}},"5035":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5036":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5037":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5038":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5039":{"x":510,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5040":{"stops":[{"__isSmartRef__":true,"id":5041},{"__isSmartRef__":true,"id":5043},{"__isSmartRef__":true,"id":5045},{"__isSmartRef__":true,"id":5047}],"vector":{"__isSmartRef__":true,"id":5036},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5041":{"offset":0,"color":{"__isSmartRef__":true,"id":5042}},"5042":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5043":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5044}},"5044":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5045":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5046}},"5046":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5047":{"offset":1,"color":{"__isSmartRef__":true,"id":5048}},"5048":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5049":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5050":{"sourceObj":{"__isSmartRef__":true,"id":5007},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":763},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5051":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5052":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5053":{"morph":{"__isSmartRef__":true,"id":5007},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5054":{"x":65.95178327801523,"y":-8.024108360992386,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5055":{"target":{"__isSmartRef__":true,"id":763},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":162384,"suspended":false,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"5056":{"position":{"__isSmartRef__":true,"id":5057},"_Extent":{"__isSmartRef__":true,"id":5058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5059},"_Fill":{"__isSmartRef__":true,"id":5060},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5061},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5062},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5057":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5058":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5059":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5060":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5061":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5062":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5063":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":5064}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5064":{"date":{"__isSmartRef__":true,"id":5065},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"5065":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"5066":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5067":{"morph":{"__isSmartRef__":true,"id":763},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5068":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5069":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"5070":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5071":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5072":{},"5073":{"displayInitialScript":{"__isSmartRef__":true,"id":5074},"displayJavaScriptSource":{"__isSmartRef__":true,"id":5078},"displaySourceForConnection":{"__isSmartRef__":true,"id":5082},"displaySourceForScript":{"__isSmartRef__":true,"id":5086},"generateSourceForConnection":{"__isSmartRef__":true,"id":5090},"generateSourceForScript":{"__isSmartRef__":true,"id":5094},"generateTargetCode":{"__isSmartRef__":true,"id":5098},"newConnection":{"__isSmartRef__":true,"id":5102},"newScript":{"__isSmartRef__":true,"id":5106},"reset":{"__isSmartRef__":true,"id":5110},"selectChangedContent":{"__isSmartRef__":true,"id":5114},"setTarget":{"__isSmartRef__":true,"id":5118},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":5122},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":5126},"updateLists":{"__isSmartRef__":true,"id":5130},"onShutdown":{"__isSmartRef__":true,"id":5134},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":5138},"update":{"__isSmartRef__":true,"id":5142},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":5146},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":5150},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":5154},"printTags":{"__isSmartRef__":true,"id":5162},"setTag":{"__isSmartRef__":true,"id":5166},"runScript":{"__isSmartRef__":true,"id":5170},"openPartTestRunner":{"__isSmartRef__":true,"id":5174}},"5074":{"varMapping":{"__isSmartRef__":true,"id":5075},"source":"function displayInitialScript() {\n    if (this.scriptList.getList().size() > 1) {\n        this.scriptList.preselectItem();\n    } else if (this.connectionList.getList().size() > 1) {\n        this.connectionList.preselectItem();\n    } else {\n        this.scriptList.selectAt(0);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5076},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5075":{"this":{"__isSmartRef__":true,"id":763}},"5076":{"timestamp":{"__isSmartRef__":true,"id":5077},"user":"lauritz","tags":[]},"5077":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"5078":{"varMapping":{"__isSmartRef__":true,"id":5079},"source":"function displayJavaScriptSource(jsCode) {\n    if (this.scriptPane.hasChanged()) {\n        var that = this;\n        var callback = function(confirmed) {\n            if (confirmed) that.scriptPane.display(jsCode)\n        };\n        this.confirmUnsavedChanges(callback);\n    } else {\n        this.scriptPane.display(jsCode);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5080},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5079":{"this":{"__isSmartRef__":true,"id":763}},"5080":{"timestamp":{"__isSmartRef__":true,"id":5081},"user":"lauritz","tags":[]},"5081":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"5082":{"varMapping":{"__isSmartRef__":true,"id":5083},"source":"function displaySourceForConnection(connection) {\n    var code = \"\", that = this;\n    if (connection === undefined) return;\n    if (connection === null) {\n        this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n            code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n        });\n        code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n    } else {\n        code = this.generateSourceForConnection(connection);\n    }\n    this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":5084},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5083":{"this":{"__isSmartRef__":true,"id":763}},"5084":{"timestamp":{"__isSmartRef__":true,"id":5085},"user":"conradcalmez","tags":[]},"5085":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"5086":{"varMapping":{"__isSmartRef__":true,"id":5087},"source":"function displaySourceForScript(scriptName) {\n    var code = \"\",\n        that = this;\n    if (scriptName === null) {\n        this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n            code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n        });\n        code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n    } else {\n        code = this.generateSourceForScript(scriptName); \n    }\n    this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":5088},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5087":{"this":{"__isSmartRef__":true,"id":763}},"5088":{"timestamp":{"__isSmartRef__":true,"id":5089},"user":"lauritz","tags":[]},"5089":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"5090":{"varMapping":{"__isSmartRef__":true,"id":5091},"source":"function generateSourceForConnection(connection) {\n    var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":5092},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5091":{"this":{"__isSmartRef__":true,"id":763}},"5092":{"timestamp":{"__isSmartRef__":true,"id":5093},"user":"lauritz","tags":[]},"5093":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"5094":{"varMapping":{"__isSmartRef__":true,"id":5095},"source":"function generateSourceForScript(scriptName) {\n    var script = this.target[scriptName],\n        annotation = '',\n        scriptSource = '',\n        tagScript = '';\n\n    if (script.timestamp && script.user) \n        annotation = Strings.format('// changed at %s by %s  \\n', script.timestamp, script.user);\n    scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n    tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n    return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":5096},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5095":{"this":{"__isSmartRef__":true,"id":763}},"5096":{"timestamp":{"__isSmartRef__":true,"id":5097},"user":"lauritz","tags":[]},"5097":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (CET)"},"5098":{"varMapping":{"__isSmartRef__":true,"id":5099},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] ===  targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject ===  targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":5100},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5099":{"this":{"__isSmartRef__":true,"id":763}},"5100":{"timestamp":{"__isSmartRef__":true,"id":5101},"user":"lauritz","tags":[]},"5101":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"5102":{"varMapping":{"__isSmartRef__":true,"id":5103},"source":"function newConnection() {\n    if (this.target) {\n        var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n        this.displayJavaScriptSource(code);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5104},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5103":{"this":{"__isSmartRef__":true,"id":763}},"5104":{"timestamp":{"__isSmartRef__":true,"id":5105},"user":"lauritz","tags":[]},"5105":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"5106":{"varMapping":{"__isSmartRef__":true,"id":5107},"source":"function newScript() {\n    if (this.target) {\n        var code = \"this.addScript(function SCRIPTNAME() {\\n    \\n}).tag([]);\";\n        this.displayJavaScriptSource(code);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5108},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5107":{"this":{"__isSmartRef__":true,"id":763}},"5108":{"timestamp":{"__isSmartRef__":true,"id":5109},"user":"lauritz","tags":[]},"5109":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"5110":{"varMapping":{"__isSmartRef__":true,"id":5111},"source":"function reset() {\n    this.scriptPane = this.get('ObjectEditorScriptPane')\n    this.scriptList = this.get('ObjectEditorScriptList')\n    this.connectionList = this.get('ObjectEditorConnectionList')\n    this.morphSelector = this.get('ObjectEditorMorphSelector')\n    this.target = null;\n    this.scriptPane.reset();\n    this.scriptList.setList();\n    this.scriptList.selection = null;\n    this.connectionList.setList();\n    this.connectionList.selection = null;\n    this.morphSelector.reset();\n    this.tagChooser.reset();\n    this.currentTag = null;\n    this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":5112},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5111":{"this":{"__isSmartRef__":true,"id":763}},"5112":{"timestamp":{"__isSmartRef__":true,"id":5113},"user":"conradcalmez","tags":[]},"5113":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (CET)"},"5114":{"varMapping":{"__isSmartRef__":true,"id":5115},"source":"function selectChangedContent(source) {\n\n    var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n    var addScriptMatches = [];\n    var addScriptMatch = addScriptRegex.exec(source);\n    while (addScriptMatch) {\n        addScriptMatches.push(addScriptMatch[1]);\n        addScriptMatch = addScriptRegex.exec(source);\n    }\n        \n    // if scripts were added, select either a specific one or all\n    if (addScriptMatches.length > 0) { \n        if (addScriptMatches.length === 1) {\n            return this.scriptList.selectAddedScript(addScriptMatches[0]);\n        }\n        return this.scriptList.selectAt(0);\n    }\n\n    var connectionRegex = \n        /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n    var connectionMatches = [];\n    var connectionMatch = connectionRegex.exec(source);\n    while (connectionMatch) {\n        connectionMatches.push(connectionMatch);\n        connectionMatch = connectionRegex.exec(source);\n    }\n\n    // if connections were made, select either a specific one or all\n    if (connectionMatches.length > 0) {\n        if (connectionMatches.length === 1) {\n            var match = connectionMatches[0];\n            for (var i=0; i