disabled","prevScroll":[0,0],"showsHalos":false,"loadingMorph":{"__isSmartRef__":true,"id":12695},"attributeConnections":[{"__isSmartRef__":true,"id":12848},{"__isSmartRef__":true,"id":6598}],"doNotSerialize":["$$savedWorldAsURL","$$currentHaloTarget"],"doNotCopyProperties":["$$savedWorldAsURL","$$currentHaloTarget"],"savedWorldAsURL":{"__isSmartRef__":true,"id":12853},"__LivelyClassName__":"lively.morphic.World"},"1":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2},"id":"3FF40149-7D12-4AED-8D06-90E24D62BC2E","renderContextTable":{"__isSmartRef__":true,"id":18},"eventHandler":{"__isSmartRef__":true,"id":19},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20},"__SourceModuleName__":"Global.lively.morphic.Core","showsHalos":false,"layout":{"__isSmartRef__":true,"id":21},"name":"Ellipse","partsBinMetaInfo":{"__isSmartRef__":true,"id":22},"derivationIds":[113,"5BFD5DF8-16AB-4769-A6C4-8CA802C16F8B"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"isFixed":true,"fixedScale":1,"fixedPosition":{"__isSmartRef__":true,"id":25},"moved":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.Morph"},"2":{"_Position":{"__isSmartRef__":true,"id":3},"renderContextTable":{"__isSmartRef__":true,"id":4},"_Extent":{"__isSmartRef__":true,"id":5},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6},"_BorderWidth":3.184,"_BorderColor":{"__isSmartRef__":true,"id":7},"_Fill":{"__isSmartRef__":true,"id":8},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"outset","__LivelyClassName__":"lively.morphic.Shapes.Ellipse"},"3":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4":{"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"},"5":{"x":100,"y":100,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7":{"r":0.37254901960784315,"g":0.37254901960784315,"b":0.37254901960784315,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8":{"stops":[{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":13},{"__isSmartRef__":true,"id":15}],"vector":{"__isSmartRef__":true,"id":17},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"9":{"offset":0,"color":{"__isSmartRef__":true,"id":10}},"10":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"11":{"offset":0.45,"color":{"__isSmartRef__":true,"id":12}},"12":{"r":0.23137254901960785,"g":0.23137254901960785,"b":0.23137254901960785,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"13":{"offset":0.7,"color":{"__isSmartRef__":true,"id":14}},"14":{"r":0.33725490196078434,"g":0.33725490196078434,"b":0.33725490196078434,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15":{"offset":1,"color":{"__isSmartRef__":true,"id":16}},"16":{"r":0.5450980392156862,"g":0.5450980392156862,"b":0.5450980392156862,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17":{"x":1,"y":1,"width":-1,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18":{"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"},"19":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20":{"x":2,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21":{},"22":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/iPad Widgets/","__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":147366,"comment":"activates command mode","changes":[{"__isSmartRef__":true,"id":23}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"23":{"date":{"__isSmartRef__":true,"id":24},"author":"sstamm","message":"initial commit","id":"8AF8F2FA-5777-41DB-9A0C-03A382785666"},"24":{"isSerializedDate":true,"string":"Thu Mar 22 2012 14:03:53 GMT+0100 (Mitteleuropäische Zeit)"},"25":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"26":{"activeBackground":{"__isSmartRef__":true,"id":27},"inactiveBackground":{"__isSmartRef__":true,"id":31},"onTouchStart":{"__isSmartRef__":true,"id":35},"onTouchEnd":{"__isSmartRef__":true,"id":43},"onLoad":{"__isSmartRef__":true,"id":51},"onTouchMove":{"__isSmartRef__":true,"id":55}},"27":{"varMapping":{"__isSmartRef__":true,"id":28},"source":"function activeBackground() {\n this.setFill( new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.rgb(20,40,200)},\n {offset: 0.45, color: Color.rgb(53,83,255)},\n {offset: 0.70, color: Color.rgb(90,120,255)},\n {offset: 1, color: Color.rgb(135,160,255)}\n ],\n 'southEast'\n ))\n this.setBorderStyle(\"inset\");\n this.setBorderColor(Color.rgb(60,80,255));\n}","funcProperties":{"__isSmartRef__":true,"id":29},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"28":{"this":{"__isSmartRef__":true,"id":1}},"29":{"timestamp":{"__isSmartRef__":true,"id":30},"user":"bsiegmund","tags":[]},"30":{"isSerializedDate":true,"string":"Thu Mar 08 2012 11:33:12 GMT+0100 (Mitteleuropäische Zeit)"},"31":{"varMapping":{"__isSmartRef__":true,"id":32},"source":"function inactiveBackground() {\n this.setFill( new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.rgb(0,0,0)},\n {offset: 0.45, color: Color.rgb(59,59,59)},\n {offset: 0.70, color: Color.rgb(86,86,86)},\n {offset: 1, color: Color.rgb(139,139,139)}\n ],\n 'northWest'\n ))\n this.setBorderStyle(\"outset\");\n this.setBorderColor(Color.rgb(95,95,95));\n}","funcProperties":{"__isSmartRef__":true,"id":33},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"32":{"this":{"__isSmartRef__":true,"id":1}},"33":{"timestamp":{"__isSmartRef__":true,"id":34},"user":"bsiegmund","tags":[]},"34":{"isSerializedDate":true,"string":"Thu Mar 08 2012 11:27:52 GMT+0100 (Mitteleuropäische Zeit)"},"35":{"varMapping":{"__isSmartRef__":true,"id":36},"source":"function onTouchStart(evt) {\n this.activeBackground();\n evt.stop();\n $world.setPieMode(true);\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":41},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"36":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37}},"37":{"$super":{"__isSmartRef__":true,"id":38}},"38":{"varMapping":{"__isSmartRef__":true,"id":39},"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":40},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"39":{"obj":{"__isSmartRef__":true,"id":1},"name":"onTouchStart"},"40":{},"41":{"timestamp":{"__isSmartRef__":true,"id":42},"user":"bsiegmund","tags":[]},"42":{"isSerializedDate":true,"string":"Thu Mar 08 2012 11:35:14 GMT+0100 (Mitteleuropäische Zeit)"},"43":{"varMapping":{"__isSmartRef__":true,"id":44},"source":"function onTouchEnd(evt) {\n this.inactiveBackground();\n evt.stop();\n $world.setPieMode(false);\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":49},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"44":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":45}},"45":{"$super":{"__isSmartRef__":true,"id":46}},"46":{"varMapping":{"__isSmartRef__":true,"id":47},"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":48},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"47":{"obj":{"__isSmartRef__":true,"id":1},"name":"onTouchEnd"},"48":{},"49":{"timestamp":{"__isSmartRef__":true,"id":50},"user":"bsiegmund","tags":[]},"50":{"isSerializedDate":true,"string":"Thu Mar 08 2012 11:59:51 GMT+0100 (Mitteleuropäische Zeit)"},"51":{"varMapping":{"__isSmartRef__":true,"id":52},"source":"function onLoad() {\n this.setOrigin(pt(0,0));\n this.setFixed(true);\n this.fixedScale = 1;\n this.fixedPosition = pt(0, 0);\n}","funcProperties":{"__isSmartRef__":true,"id":53},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"52":{"this":{"__isSmartRef__":true,"id":1}},"53":{"timestamp":{"__isSmartRef__":true,"id":54},"user":"bsiegmund","tags":[]},"54":{"isSerializedDate":true,"string":"Thu Mar 08 2012 11:58:55 GMT+0100 (Mitteleuropäische Zeit)"},"55":{"varMapping":{"__isSmartRef__":true,"id":56},"source":"function onTouchMove(evt) {\n evt.stop();\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":61},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"56":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":57}},"57":{"$super":{"__isSmartRef__":true,"id":58}},"58":{"varMapping":{"__isSmartRef__":true,"id":59},"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":60},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"59":{"obj":{"__isSmartRef__":true,"id":1},"name":"onTouchMove"},"60":{},"61":{"timestamp":{"__isSmartRef__":true,"id":62},"user":"bsiegmund","tags":[]},"62":{"isSerializedDate":true,"string":"Thu Mar 08 2012 11:34:36 GMT+0100 (Mitteleuropäische Zeit)"},"63":{"submorphs":[{"__isSmartRef__":true,"id":64},{"__isSmartRef__":true,"id":2242},{"__isSmartRef__":true,"id":2282}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2405},"id":"BD8A22F3-D4CD-456E-B4F6-44357BBD6C6D","renderContextTable":{"__isSmartRef__":true,"id":2410},"eventHandler":{"__isSmartRef__":true,"id":2411},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":2412},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":2413},"targetMorph":{"__isSmartRef__":true,"id":64},"titleBar":{"__isSmartRef__":true,"id":2282},"contentOffset":{"__isSmartRef__":true,"id":2414},"collapsedTransform":{"__isSmartRef__":true,"id":2415},"collapsedExtent":{"__isSmartRef__":true,"id":2416},"expandedTransform":{"__isSmartRef__":true,"id":2417},"expandedExtent":{"__isSmartRef__":true,"id":2418},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2419},"name":"ObjectEditor","prevDragPos":{"__isSmartRef__":true,"id":2506},"highlighted":false,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":2507},"state":"expanded","collapsedPosition":{"__isSmartRef__":true,"id":2508},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":2509},"minExtent":{"__isSmartRef__":true,"id":2510},"isCopyMorphRef":true,"morphRefId":16,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","AB9DBBAF-202F-4549-AABE-8DD83C7257E0","75B7B1DE-AF4D-4943-B1B0-08221683968C","0E17F7F0-1448-41DA-A6EE-0E8672C89F14","5B65F3B4-F302-4AA4-8FC9-0A50A8348860","8B0C493D-CA01-42E6-8F9B-4B8D14389753","94A5C15E-8E5E-42DA-BC43-D588572ABD89","1288F941-3FD1-4F13-A1EB-2731F6E7BEAA","E21FADC7-A650-4F59-85A7-5F45C95D8917","690364ED-8378-4180-AFF8-A1159F641779","6ED7E3F9-79DE-4250-BDB0-4DF1FCBF322B","DBFAE681-6B29-44D3-9542-CA5263FF86C0","AD92A339-F154-49DD-988A-A6CE10FA786A"],"_Position":{"__isSmartRef__":true,"id":2511},"moved":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.0060210561262526,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2512},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"64":{"submorphs":[{"__isSmartRef__":true,"id":65},{"__isSmartRef__":true,"id":80},{"__isSmartRef__":true,"id":96},{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":239},{"__isSmartRef__":true,"id":289},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":517},{"__isSmartRef__":true,"id":532},{"__isSmartRef__":true,"id":614},{"__isSmartRef__":true,"id":686},{"__isSmartRef__":true,"id":756},{"__isSmartRef__":true,"id":917}],"scripts":[],"id":"4690BB51-3746-4252-B4DF-D0483871F3AD","shape":{"__isSmartRef__":true,"id":2125},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":2132},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2135},"eventHandler":{"__isSmartRef__":true,"id":2136},"priorExtent":{"__isSmartRef__":true,"id":2137},"layout":{"__isSmartRef__":true,"id":2138},"scriptPane":{"__isSmartRef__":true,"id":289},"scriptList":{"__isSmartRef__":true,"id":756},"connectionList":{"__isSmartRef__":true,"id":917},"morphSelector":{"__isSmartRef__":true,"id":385},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":306},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":2139},"tagChooser":{"__isSmartRef__":true,"id":532},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","300C1089-F1C0-47FD-AF33-013210E9B444","62015070-74FA-4DC9-B8EA-DDA6DAE25A7C","533C04BA-3B99-415B-B1DD-FB63237609CC","C11E5E34-6687-41E2-A616-DE67F443D3A7","E91BA654-8AE9-4653-A903-25B6FD76AA5F","5ABB8A8F-1953-4A94-B02D-06DC3760DE76","38DA96F3-A366-4C0C-BAE9-D0A483DFB1FF","99BCD5F0-0852-4A47-935C-163C7E642FC4","41580D93-83E2-4581-AAB3-4ADD808375F1","499838A9-C31E-42AA-BEC7-2DCEADA12EA7","7255D1A9-C330-4A17-8846-992C3DA17D5E","B10118FA-AE83-43F1-BE11-A95B9DDBE362"],"_Position":{"__isSmartRef__":true,"id":2140},"owner":{"__isSmartRef__":true,"id":63},"target":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2141},"__LivelyClassName__":"lively.morphic.Box"},"65":{"submorphs":[],"scripts":[],"id":"C57EC94A-B246-4C4E-A6F1-2C2CF6463C12","shape":{"__isSmartRef__":true,"id":66},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":72},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":69},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText","partsBinMetaInfo":{"__isSmartRef__":true,"id":73},"textChunks":[{"__isSmartRef__":true,"id":74}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":76},"owner":{"__isSmartRef__":true,"id":64},"renderContextTable":{"__isSmartRef__":true,"id":77},"eventHandler":{"__isSmartRef__":true,"id":78},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":79},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":18,"derivationIds":[208,"84371013-3F15-4B59-B0D8-A386A564BC63","C9475579-3711-4CE9-B46B-C7837788123B","836375B6-9661-48D5-8AAD-FBB39DCB290B","C2CA711A-5224-494D-8821-BE093FA8038F","577626FD-800E-4C25-A346-8234413CB807","5B351237-8574-4194-925B-8F61CC302BBA","783988F3-3BD3-479E-9712-A62EA4C163C8","CDC28C95-605F-473C-959C-BA6EF2CAA347","D5D22FF1-AB3A-41FF-9993-37A594F79DBE","FE08138E-6DBF-4C01-86FC-717CDEC9EB43","310DE7FE-F496-4F19-B5B8-048A55ED706F","8E586B5E-3D63-4D1F-9E62-6341C5555BAF","8B4D299E-E9C0-43C5-B0E4-0EFA165423B5","CEFFD317-39CB-41CE-A1E6-C618E9FDD6BA","4B17EAD1-BE17-4512-BABA-1F7A4ED0C9A2","07DA9598-0AB4-44BC-A57C-E327D0C5B487","CC06D1E1-0505-40FC-A55A-E0E09941994B"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"66":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":67},"_Extent":{"__isSmartRef__":true,"id":68},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":69},"renderContextTable":{"__isSmartRef__":true,"id":70},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":71},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"67":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"68":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"69":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"70":{"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"},"71":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"72":{"x":9.999999999999858,"y":45.97603597600572,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"73":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"74":{"style":{"__isSmartRef__":true,"id":75},"morph":{"__isSmartRef__":true,"id":65},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":65},"storedString":"Scripts","__LivelyClassName__":"lively.morphic.TextChunk"},"75":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"76":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"77":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"78":{"morph":{"__isSmartRef__":true,"id":65},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"79":{"x":52.959899799649435,"y":-0.2486212421734706,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"80":{"submorphs":[],"scripts":[],"id":"79333B7F-8C85-4EC8-AE0D-80C67B722160","shape":{"__isSmartRef__":true,"id":81},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":87},"_MaxTextWidth":124.10506681670552,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":84},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorConnectionsText","partsBinMetaInfo":{"__isSmartRef__":true,"id":88},"textChunks":[{"__isSmartRef__":true,"id":89}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[11,11],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":91},"owner":{"__isSmartRef__":true,"id":64},"layout":{"__isSmartRef__":true,"id":92},"renderContextTable":{"__isSmartRef__":true,"id":93},"eventHandler":{"__isSmartRef__":true,"id":94},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":124.10506681670552,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":95},"previousSelection":[0,11],"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":20,"derivationIds":[210,"1A2D33C5-4B3D-4FFA-A766-3AD74EE26110","A15D7C4E-12AA-4769-A475-71017CB53C29","38C59A0D-663B-457A-873F-CC1717965411","55E7CA7E-9617-4C5E-9227-240F3BB0DCD8","8AEB5BE1-8469-41AD-9029-CE2811F6C3B5","5B20225A-37AD-49A8-A02C-7AFC6CB40870","13ABE889-D045-4E47-AAE1-442B418ECE70","EF8EFDC6-8D46-44B0-AE0B-C5A2C548885B","FD2433C4-A707-4EE1-8EDD-89EAB4B3616E","210C6711-C1A2-4700-A54F-4EDF4BB73E38","F27553F2-87A1-4066-B5E2-C8494833CE64","B2361B10-D21A-4946-9E10-9C6122836A67","11775EDD-D1F3-473E-9ACD-AD9CB0DDBA40","39E34F92-E620-4F13-832A-F6FC1684CEC4","7B3CBDBA-21F6-4D10-B31D-FF141F7047A2","1D69A7D2-00BC-4DFF-A3A7-E56983F06F3C","85B3CB11-0924-460F-947B-875FFA5D0636"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"81":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":82},"_Extent":{"__isSmartRef__":true,"id":83},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":84},"_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":85},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":86},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"82":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"83":{"x":124.10506681670552,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"84":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"85":{"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"},"86":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"87":{"x":10.000000000000085,"y":381.79208321398653,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"88":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"89":{"style":{"__isSmartRef__":true,"id":90},"morph":{"__isSmartRef__":true,"id":80},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":80},"storedString":"Connections","__LivelyClassName__":"lively.morphic.TextChunk"},"90":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontSize":"9","__LivelyClassName__":"lively.morphic.TextEmphasis"},"91":{"x":124.10506681670552,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"92":{"moveVertical":true},"93":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"94":{"morph":{"__isSmartRef__":true,"id":80},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"95":{"x":83.20222664301659,"y":-15.016251915645284,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"96":{"submorphs":[{"__isSmartRef__":true,"id":97}],"scripts":[],"id":"B46AA7F8-87CE-4B82-B66E-C6A8861549DB","shape":{"__isSmartRef__":true,"id":114},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":119},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":120},"label":{"__isSmartRef__":true,"id":97},"attributeConnections":[{"__isSmartRef__":true,"id":121}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":123},"name":"ObjectEditorAddConnectionButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":124},"renderContextTable":{"__isSmartRef__":true,"id":125},"priorExtent":{"__isSmartRef__":true,"id":126},"owner":{"__isSmartRef__":true,"id":64},"eventHandler":{"__isSmartRef__":true,"id":127},"layout":{"__isSmartRef__":true,"id":128},"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":129},"isCopyMorphRef":true,"morphRefId":21,"derivationIds":[211,"3037655C-DA7B-44EA-BA12-F4079688C953","75A1CB74-1CC4-4818-9C72-5ABDB57E856B","2500B5DB-7C3D-4C95-B0A6-239C5876AD50","1E8E75D5-28A5-4303-9DD4-95810FC25C89","23FCA415-364D-4EB3-BEF7-235AA7301DC1","531EDFAE-C7E4-4EC3-9958-7992B2A5A14F","1D401180-4930-48DF-AB5E-CEF7870965B0","C320964F-4469-4D8A-9F02-754FB88A0818","9A8087E1-C970-47BE-8446-E54D24D3BE2A","F0E524B7-CF89-4F6E-B870-A229E83F7AF8","F868F247-A8D1-41C1-BE72-5B1C82C1F787","7ACE003D-50D6-4A65-B7BA-2B4B7E45569F","BE2A3868-C024-4E48-B4CA-1697C68BF906","E24A45FB-C6A1-4D55-8180-0ABBDA731286","6835D5B4-F806-4430-A244-3598336211C5","45A996F5-237B-4957-9AED-EAEBC9492EA9","710B24DE-E4F7-4757-B2D3-0EDAF4D9F35C"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":130},"__LivelyClassName__":"lively.morphic.Button"},"97":{"submorphs":[],"scripts":[],"id":"99B88C31-C629-4583-B88A-D7FE2F70F652","shape":{"__isSmartRef__":true,"id":98},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":104},"textColor":{"__isSmartRef__":true,"id":101},"owner":{"__isSmartRef__":true,"id":96},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":105}],"padding":{"__isSmartRef__":true,"id":107},"_Padding":{"__isSmartRef__":true,"id":108},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":109},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":110},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":111},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[212,"28CD4A90-F73B-43CD-B1C7-035C4B278AEA","01C38CAD-30FC-4DE4-AC0D-E4C7B786073D","526B86BC-10CC-449C-A3CD-601BF36EECCD","41ACFD86-FC52-4FF2-8E87-B6C3542C93F1","B47DD984-4390-4773-87AC-80F4AEE1677A","F9CCC118-66E6-45E3-BDEB-CE34E0B20A8C","6E9E0FFE-A756-4252-80B4-4863A3CCA9CC","CEB9A261-7EB0-4D3E-A386-37261E895E6A","6D9910E6-8E94-4221-A79C-8A0792BF3F44","0A13AF9E-9F5C-41EE-B89A-523F41644D9F","506759F4-2F98-4BF2-AD63-EBC36B4CF8DC","D2BFC625-DBB8-4DCB-A58D-EEF3EA88022B","E8068BCF-A578-46A0-AB8F-654E64860BDE","3E64A9B2-1CD6-4391-A287-73B8F907DDAD","3CFB9AE3-9974-43BE-A1B1-6392D0318198","D2D3A4FA-49EE-4C92-A2F3-11BC2618CA64","E77C608F-124F-401A-96DE-8CC30327C52A"],"_TextColor":{"__isSmartRef__":true,"id":112},"layout":{"__isSmartRef__":true,"id":113},"_FontSize":16,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"98":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":99},"_Extent":{"__isSmartRef__":true,"id":100},"_BorderColor":{"__isSmartRef__":true,"id":101},"renderContextTable":{"__isSmartRef__":true,"id":102},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":103},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"99":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"100":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"101":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"102":{"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"},"103":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"104":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"105":{"style":{"__isSmartRef__":true,"id":106},"chunkOwner":{"__isSmartRef__":true,"id":97},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"+","__LivelyClassName__":"lively.morphic.TextChunk"},"106":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"107":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"108":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"109":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"110":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"111":{"morph":{"__isSmartRef__":true,"id":97},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"112":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"113":{"centeredVertical":true,"centeredHorizontal":true},"114":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":115},"_Extent":{"__isSmartRef__":true,"id":100},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":116},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":117},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":118},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"115":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"116":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"117":{"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"},"118":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"119":{"x":130,"y":383.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"120":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"121":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":64},"targetMethodName":"newConnection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":122},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"122":{"source":{"__isSmartRef__":true,"id":96},"target":{"__isSmartRef__":true,"id":64}},"123":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"124":{"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"},"125":{"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"},"126":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"127":{"morph":{"__isSmartRef__":true,"id":96},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"128":{"moveVertical":true,"adjustForNewBounds":true,"centeredVertical":false},"129":{"x":33.47869739544274,"y":-11.010525048834154,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"130":{"onrestore":{"__isSmartRef__":true,"id":131},"styleMe":{"__isSmartRef__":true,"id":139}},"131":{"varMapping":{"__isSmartRef__":true,"id":132},"source":"function onrestore() {\n this.beToolbarButton.bind(this, \"+\").delay(0);\n this.styleMe.bind(this).delay(0)\n}","funcProperties":{"__isSmartRef__":true,"id":137},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"132":{"this":{"__isSmartRef__":true,"id":96},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":133}},"133":{"$super":{"__isSmartRef__":true,"id":134}},"134":{"varMapping":{"__isSmartRef__":true,"id":135},"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":136},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"135":{"obj":{"__isSmartRef__":true,"id":96},"name":"onrestore"},"136":{},"137":{"timestamp":{"__isSmartRef__":true,"id":138},"user":"athomschke","tags":[]},"138":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:45:30 GMT+0100 (Mitteleuropäische Zeit)"},"139":{"varMapping":{"__isSmartRef__":true,"id":140},"source":"function styleMe() {\n this.setExtent(pt(20,20))\n this.adjustForNewBounds()\n this.layout.centeredVertical = false\n}","funcProperties":{"__isSmartRef__":true,"id":141},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"140":{"this":{"__isSmartRef__":true,"id":96}},"141":{"timestamp":{"__isSmartRef__":true,"id":142},"user":"athomschke","tags":[]},"142":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:45:05 GMT+0100 (Mitteleuropäische Zeit)"},"143":{"submorphs":[{"__isSmartRef__":true,"id":144}],"scripts":[],"id":"920340E0-C99C-4821-8821-F977E96CEA00","shape":{"__isSmartRef__":true,"id":161},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":165},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":166},"label":{"__isSmartRef__":true,"id":144},"attributeConnections":[{"__isSmartRef__":true,"id":167}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":169},"name":"ObjectEditorAddScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":170},"renderContextTable":{"__isSmartRef__":true,"id":171},"owner":{"__isSmartRef__":true,"id":64},"priorExtent":{"__isSmartRef__":true,"id":172},"eventHandler":{"__isSmartRef__":true,"id":173},"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":174},"isCopyMorphRef":true,"morphRefId":22,"derivationIds":[213,"67D577AB-1BB3-4252-B0D4-99A23697F70A","A2FCBD72-EE0A-4D04-8A92-348AE43B41D7","A2345795-D086-4B81-84AF-2DEB8C0C2FFA","0A260566-FCDD-4DCF-8E29-9A08EACF6825","9AD1B434-5F24-4772-B3D6-D23B387A75A9","D9D17234-D6D8-4D62-8A37-10BFFA8DF26C","55F66B77-3FD3-4DCD-9A99-87E33049A0B2","647402F3-D1B4-47A9-AE45-B7734493CC45","C56DB5EB-0CFE-44A2-8C60-9E92238385FB","02EC8E4A-C824-4D5F-BAAB-42FF5AE4E337","6E62819B-A328-4A86-81C4-9DD9F3440229","CE87477F-7D95-4E76-B36C-5A87D0D0A196","400C0817-D916-4F04-8A9D-0175C8099772","D85DFCB3-964A-43E8-8D3C-01F494406A07","5335BFCA-C363-48FC-ADC4-69EB9FA42463","E842AED9-A8BE-4A38-87CC-4E60C44ADD8E","00FAF4EB-4153-43AA-A7FC-111B5D364D6C"],"layout":{"__isSmartRef__":true,"id":175},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":176},"__LivelyClassName__":"lively.morphic.Button"},"144":{"submorphs":[],"scripts":[],"id":"AD67BA48-91A5-4385-BD5C-AA529D7E4F69","shape":{"__isSmartRef__":true,"id":145},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":151},"textColor":{"__isSmartRef__":true,"id":148},"owner":{"__isSmartRef__":true,"id":143},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":152}],"padding":{"__isSmartRef__":true,"id":154},"_Padding":{"__isSmartRef__":true,"id":155},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":156},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":157},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":158},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[214,"523747A8-85D2-4FA2-9C4A-C51786457E22","95516A91-5268-4C7E-A2E0-40B45D2EE1FA","FFE672EF-5731-4472-B296-7F6C7CA559FC","E2EECCEE-F80F-4AFD-BF9E-95BB6A9A1C93","355346D2-A7A5-4445-8845-6B44FDC07A7B","72CDCAB4-B331-4071-8B78-C112D9FE25FE","0C5000D6-D6AB-4569-A059-2A461A00F751","1F0AF0F2-61AF-4AD1-B301-4DD60A3ECED9","AD8D0A0F-761C-4708-ACD7-E714867DDE65","BD5BD64B-C430-4BA1-926C-FD6B70232216","3AB83076-930C-4620-801B-BF476A86E36B","348D00FA-9EB1-42B8-A847-3B3451E45E8E","A0EEBA63-2186-4E3C-AC60-6E84083F7988","F1C18A6D-1FEB-4E3F-A149-78CC700B3D1B","DF51B67A-E02D-42A7-81B4-2767C4EC9434","29175F4A-AF57-43EB-9F7A-76D8E0FC4C80","C5F6C97B-553D-4A0C-9FFB-1BF8B53B4066"],"_TextColor":{"__isSmartRef__":true,"id":159},"layout":{"__isSmartRef__":true,"id":160},"_FontSize":16,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"145":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":146},"_Extent":{"__isSmartRef__":true,"id":147},"_BorderColor":{"__isSmartRef__":true,"id":148},"renderContextTable":{"__isSmartRef__":true,"id":149},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":150},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"146":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"147":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"148":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"149":{"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"},"150":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"151":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"152":{"style":{"__isSmartRef__":true,"id":153},"chunkOwner":{"__isSmartRef__":true,"id":144},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"+","__LivelyClassName__":"lively.morphic.TextChunk"},"153":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"154":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"155":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"156":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"157":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"158":{"morph":{"__isSmartRef__":true,"id":144},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"159":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"160":{"centeredVertical":true,"centeredHorizontal":true},"161":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":162},"_Extent":{"__isSmartRef__":true,"id":147},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":116},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":163},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":164},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"162":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"163":{"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"},"164":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"165":{"x":135.95810486010726,"y":42.52122536417363,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"166":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"167":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":64},"targetMethodName":"newScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":168},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"168":{"source":{"__isSmartRef__":true,"id":143},"target":{"__isSmartRef__":true,"id":64}},"169":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"170":{"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"},"171":{"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"},"172":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"173":{"morph":{"__isSmartRef__":true,"id":143},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"174":{"x":35.24630980058146,"y":-12.363130109872031,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"175":{"adjustForNewBounds":true,"centeredVertical":false},"176":{"onrestore":{"__isSmartRef__":true,"id":177},"styleMe":{"__isSmartRef__":true,"id":185}},"177":{"varMapping":{"__isSmartRef__":true,"id":178},"source":"function onrestore() {\n this.beToolbarButton.bind(this, \"+\").delay(0);\n this.styleMe.bind(this).delay(0)\n}","funcProperties":{"__isSmartRef__":true,"id":183},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"178":{"this":{"__isSmartRef__":true,"id":143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":179}},"179":{"$super":{"__isSmartRef__":true,"id":180}},"180":{"varMapping":{"__isSmartRef__":true,"id":181},"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":182},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"181":{"obj":{"__isSmartRef__":true,"id":143},"name":"onrestore"},"182":{},"183":{"timestamp":{"__isSmartRef__":true,"id":184},"user":"athomschke","tags":[]},"184":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:44:15 GMT+0100 (Mitteleuropäische Zeit)"},"185":{"varMapping":{"__isSmartRef__":true,"id":186},"source":"function styleMe() {\n this.setExtent(pt(20,20))\n this.adjustForNewBounds()\n this.layout.centeredVertical = false\n}","funcProperties":{"__isSmartRef__":true,"id":187},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"186":{"this":{"__isSmartRef__":true,"id":143}},"187":{"timestamp":{"__isSmartRef__":true,"id":188},"user":"athomschke","tags":[]},"188":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:43:47 GMT+0100 (Mitteleuropäische Zeit)"},"189":{"submorphs":[{"__isSmartRef__":true,"id":190}],"scripts":[],"id":"391E0B9E-8256-48D2-A366-C55249D035AC","shape":{"__isSmartRef__":true,"id":207},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":211},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":212},"label":{"__isSmartRef__":true,"id":190},"attributeConnections":[{"__isSmartRef__":true,"id":213}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":215},"name":"ObjectEditorRemoveConnectionButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":216},"renderContextTable":{"__isSmartRef__":true,"id":217},"priorExtent":{"__isSmartRef__":true,"id":218},"owner":{"__isSmartRef__":true,"id":64},"eventHandler":{"__isSmartRef__":true,"id":219},"layout":{"__isSmartRef__":true,"id":220},"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":64},"distanceToDragEvent":{"__isSmartRef__":true,"id":221},"isCopyMorphRef":true,"morphRefId":23,"derivationIds":[215,"2AC1A4EE-A289-4C26-8496-1926AA216B30","F72C26A6-F58A-4E0C-A5B9-CBED184D4235","64E9140E-E314-40CA-B555-063FBF8FA5DD","90DF0634-0570-4E03-8B56-6A649D6B6BA3","D9CC390A-090C-446B-8C0F-B619BA2D22B3","BCCA8909-8589-4B85-8A8C-00B690FCADFA","67F2CC6D-D03F-4AD0-9B1C-AC318014365E","D423316E-B195-4D4F-8029-E3CD46590A6D","9DC0AFF7-942E-4A33-9A57-1B36315A2486","C12888F6-C94F-4FBB-BBC2-7A4A511B7D35","759FF8A1-08B8-4A9E-94A7-89277DF175D0","BAED3E26-761B-48BA-9BF9-0E531ECBC0FE","80FC38BE-28A7-4751-B713-B8A48BAD6CEA","AC809029-80E9-4620-9F68-4209168975E3","E6692FEC-DFFE-4E98-8DB2-D5D869F93759","94F5D866-2298-49FF-9380-51E0238D24B3","65A09488-FD3F-480A-9560-FB29BCBCF0D7"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":222},"__LivelyClassName__":"lively.morphic.Button"},"190":{"submorphs":[],"scripts":[],"id":"FB199015-7E82-48C9-95AC-33265A268862","shape":{"__isSmartRef__":true,"id":191},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":197},"textColor":{"__isSmartRef__":true,"id":194},"owner":{"__isSmartRef__":true,"id":189},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":198}],"padding":{"__isSmartRef__":true,"id":200},"_Padding":{"__isSmartRef__":true,"id":201},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":202},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":203},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":204},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[216,"18CA5E17-24C7-4077-93FE-3EC54B94EEAF","EAEC20CA-0440-4B49-9BB9-03621DB7DEB2","B816073C-6992-45C6-8D86-2449217C1A8B","FF0CAA98-E5CF-4678-9D8E-96F02BBDE605","A7946D5B-4E92-449B-83D4-EDF8C30E257E","88CC62D3-9943-4B0E-8AD1-F64AD45691D3","EA1DE4EE-1029-4FD1-87A8-5DD394302B8F","B457FE42-96C3-4E0F-B508-66752485718F","7C83E006-1F3A-443A-A79D-0150DFDAEBF1","C47077AE-ED6C-4263-90F3-736C204B8A32","EDAF4DB7-97B3-4AA6-88D0-7EBC70DDBB47","950F3BBC-8A5F-4160-A7A9-04185C71301A","DC0262FF-288F-4876-BF9E-5414B5A3AAF9","E65813E2-2971-4B80-BCA9-4F52D3F3D99D","4986F7EC-3BD1-4F37-B44F-FCA2E0DAC936","7C8B4241-1069-45DD-8AAE-38C9BCA856E8","7F2D00BF-C5BE-4786-BC76-1C3A31E9ED4C"],"_TextColor":{"__isSmartRef__":true,"id":205},"layout":{"__isSmartRef__":true,"id":206},"_FontSize":16,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"191":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":192},"_Extent":{"__isSmartRef__":true,"id":193},"_BorderColor":{"__isSmartRef__":true,"id":194},"renderContextTable":{"__isSmartRef__":true,"id":195},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":196},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"192":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"193":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"194":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"195":{"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"},"196":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"197":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"198":{"style":{"__isSmartRef__":true,"id":199},"chunkOwner":{"__isSmartRef__":true,"id":190},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"199":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"200":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"201":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"202":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"203":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"204":{"morph":{"__isSmartRef__":true,"id":190},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"205":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"206":{"centeredVertical":true,"centeredHorizontal":true},"207":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":208},"_Extent":{"__isSmartRef__":true,"id":193},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":116},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":209},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":210},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"208":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"209":{"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"},"210":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"211":{"x":160,"y":383.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"212":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"213":{"sourceObj":{"__isSmartRef__":true,"id":189},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":189},"targetMethodName":"disconnectSelectedConnection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":214},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"214":{"source":{"__isSmartRef__":true,"id":189},"target":{"__isSmartRef__":true,"id":189}},"215":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"216":{"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"},"217":{"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"},"218":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"219":{"morph":{"__isSmartRef__":true,"id":189},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"220":{"moveVertical":true,"adjustForNewBounds":true,"centeredVertical":false},"221":{"x":32.35839679439101,"y":-17.090725449535284,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"222":{"onrestore":{"__isSmartRef__":true,"id":223},"styleMe":{"__isSmartRef__":true,"id":231},"disconnectSelectedConnection":{"__isSmartRef__":true,"id":235}},"223":{"varMapping":{"__isSmartRef__":true,"id":224},"source":"function onrestore() {\n this.beToolbarButton.bind(this, \"-\").delay(0);\n this.styleMe.bind(this).delay(0)\n}","funcProperties":{"__isSmartRef__":true,"id":229},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"224":{"this":{"__isSmartRef__":true,"id":189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":225}},"225":{"$super":{"__isSmartRef__":true,"id":226}},"226":{"varMapping":{"__isSmartRef__":true,"id":227},"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":228},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"227":{"obj":{"__isSmartRef__":true,"id":189},"name":"onrestore"},"228":{},"229":{"timestamp":{"__isSmartRef__":true,"id":230},"user":"athomschke","tags":[]},"230":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:46:01 GMT+0100 (Mitteleuropäische Zeit)"},"231":{"varMapping":{"__isSmartRef__":true,"id":232},"source":"function styleMe() {\n this.setExtent(pt(20,20))\n this.adjustForNewBounds()\n this.layout.centeredVertical = false\n}","funcProperties":{"__isSmartRef__":true,"id":233},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"232":{"this":{"__isSmartRef__":true,"id":189}},"233":{"timestamp":{"__isSmartRef__":true,"id":234},"user":"athomschke","tags":[]},"234":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:46:07 GMT+0100 (Mitteleuropäische Zeit)"},"235":{"varMapping":{"__isSmartRef__":true,"id":236},"source":"function disconnectSelectedConnection() {\n\n var editor = this.objectEditorPane;\n var selection = editor.connectionList.selection;\n\n if (!editor.target || editor.connectionList.getList().size() < 2) \n return;\n\n var disconnectConnection = function (confirmed) {\n if (!confirmed) return;\n\n var listIndex = editor.target.attributeConnections.indexOf(selection[1]);\n if (selection && (typeof selection !== \"string\") && listIndex > -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":237},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"236":{"this":{"__isSmartRef__":true,"id":189}},"237":{"timestamp":{"__isSmartRef__":true,"id":238},"user":"lauritz","categories":[]},"238":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (Mitteleuropäische Zeit)"},"239":{"submorphs":[{"__isSmartRef__":true,"id":240}],"scripts":[],"id":"E40221EC-86F0-4996-808B-E955AA424F14","shape":{"__isSmartRef__":true,"id":257},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":261},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":262},"label":{"__isSmartRef__":true,"id":240},"attributeConnections":[{"__isSmartRef__":true,"id":263}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":265},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":266},"renderContextTable":{"__isSmartRef__":true,"id":267},"priorExtent":{"__isSmartRef__":true,"id":268},"owner":{"__isSmartRef__":true,"id":64},"eventHandler":{"__isSmartRef__":true,"id":269},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":64},"distanceToDragEvent":{"__isSmartRef__":true,"id":270},"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","3B06A5D6-16D3-4AF4-BD30-04F99A1A265F","C81819B4-11B6-4CDD-9D1C-C8B26383089A","8D6FA7FA-666E-44E1-B0B2-AD1F9E98DEFA","44BF65D7-7D68-480D-B01E-CEA9CC808058","33A17203-46A7-4783-A789-68DA54F76AEC","D2B46842-D041-4AEC-B2BC-BABAACE9E531","01DEBAF0-F71E-4ED5-81F7-259C79EBC3BD","2D191E5B-EEAD-462E-B829-F44D16B4CB90","59446D65-85B5-4A31-BA91-AFE17D5CD48E","6E1CD00D-5480-4F12-98A5-12BBE23370E7","4DDBAE50-4141-4542-B5B8-5ABE200B41AD","E5403DB1-7DC8-461E-9CF0-BBF2973F85C8"],"layout":{"__isSmartRef__":true,"id":271},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":272},"__LivelyClassName__":"lively.morphic.Button"},"240":{"submorphs":[],"scripts":[],"id":"0546D884-48C6-42DC-BB55-E2274579B39B","shape":{"__isSmartRef__":true,"id":241},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":247},"textColor":{"__isSmartRef__":true,"id":244},"owner":{"__isSmartRef__":true,"id":239},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":248}],"padding":{"__isSmartRef__":true,"id":250},"_Padding":{"__isSmartRef__":true,"id":251},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":252},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":253},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":254},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_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","726F0E0D-80A3-4B40-BB95-4F6DF690A7AB","709E146B-D859-493D-B1FA-E2A13DA7B3C7","CC8B505C-539E-47D9-A413-A1C278435399","D7FB7D1A-DB78-4C82-8DD9-0F0AD7AC0F0F","C3D0C04F-B09A-448C-ADE4-BDB596CFB804","A19565D0-EDA6-428A-B756-E523A2A5DFE4","E5141D06-195C-4F0B-B1F3-0EA35A9B6397","EEFC96DF-BB85-4C0C-9968-0F63E132C657","792CD06F-A48A-452F-BE9C-47E4D21D03CB","DBDAC8F9-8E00-4196-ABD9-25FC74B708DA","52255104-505A-4331-8907-07370D33536B","5B74E970-CDE7-4B52-BC8B-BDE6D6F0C153"],"_TextColor":{"__isSmartRef__":true,"id":255},"layout":{"__isSmartRef__":true,"id":256},"_FontSize":16,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"241":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":242},"_Extent":{"__isSmartRef__":true,"id":243},"_BorderColor":{"__isSmartRef__":true,"id":244},"renderContextTable":{"__isSmartRef__":true,"id":245},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":246},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"242":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"243":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"244":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"245":{"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"},"246":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"247":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"248":{"style":{"__isSmartRef__":true,"id":249},"chunkOwner":{"__isSmartRef__":true,"id":240},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"249":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"250":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"251":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"252":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"253":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"254":{"morph":{"__isSmartRef__":true,"id":240},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"255":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"256":{"centeredVertical":true,"centeredHorizontal":true},"257":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":258},"_Extent":{"__isSmartRef__":true,"id":243},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":116},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":259},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":260},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"258":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"259":{"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"},"260":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"261":{"x":160.00000000000227,"y":39.55115046409816,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"262":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"263":{"sourceObj":{"__isSmartRef__":true,"id":239},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":239},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":264},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"264":{"source":{"__isSmartRef__":true,"id":239},"target":{"__isSmartRef__":true,"id":239}},"265":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"266":{"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"},"267":{"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"},"268":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"269":{"morph":{"__isSmartRef__":true,"id":239},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"270":{"x":33.059657060667405,"y":-15.375172222124547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"271":{"adjustForNewBounds":true,"centeredVertical":false},"272":{"onrestore":{"__isSmartRef__":true,"id":273},"styleMe":{"__isSmartRef__":true,"id":281},"deleteSelectedScript":{"__isSmartRef__":true,"id":285}},"273":{"varMapping":{"__isSmartRef__":true,"id":274},"source":"function onrestore() {\n this.beToolbarButton.bind(this, \"-\").delay(0);\n this.styleMe.bind(this).delay(0)\n}","funcProperties":{"__isSmartRef__":true,"id":279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"274":{"this":{"__isSmartRef__":true,"id":239},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":275}},"275":{"$super":{"__isSmartRef__":true,"id":276}},"276":{"varMapping":{"__isSmartRef__":true,"id":277},"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":278},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"277":{"obj":{"__isSmartRef__":true,"id":239},"name":"onrestore"},"278":{},"279":{"timestamp":{"__isSmartRef__":true,"id":280},"user":"athomschke","tags":[]},"280":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:44:53 GMT+0100 (Mitteleuropäische Zeit)"},"281":{"varMapping":{"__isSmartRef__":true,"id":282},"source":"function styleMe() {\n this.setExtent(pt(20,20))\n this.adjustForNewBounds()\n this.layout.centeredVertical = false\n}","funcProperties":{"__isSmartRef__":true,"id":283},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"282":{"this":{"__isSmartRef__":true,"id":239}},"283":{"timestamp":{"__isSmartRef__":true,"id":284},"user":"athomschke","tags":[]},"284":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:44:30 GMT+0100 (Mitteleuropäische Zeit)"},"285":{"varMapping":{"__isSmartRef__":true,"id":286},"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":287},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"286":{"this":{"__isSmartRef__":true,"id":239}},"287":{"timestamp":{"__isSmartRef__":true,"id":288},"user":"lauritz"},"288":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (Mitteleuropäische Zeit)"},"289":{"submorphs":[],"scripts":[],"id":"D8BC713F-25EF-47F0-8D8B-49DD3FE883EC","shape":{"__isSmartRef__":true,"id":290},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":297},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":686.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":298}],"layout":{"__isSmartRef__":true,"id":300},"showsHalos":false,"prevScroll":[0,0],"priorSelectionRange":[7,7],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":0,"partsBinMetaInfo":{"__isSmartRef__":true,"id":301},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":302},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":1328704203488,"savedTextString":"this.addScript(function mensch() {\n \n}).tag([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":303},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":304},"attributeConnections":[{"__isSmartRef__":true,"id":305}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":331},"_MinTextWidth":686.0285365288845,"_MinTextHeight":null,"previousSelection":[0,0],"lastSaveSource":"","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":64},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":332},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","8A49A9BD-D0C5-4307-89CC-848185929DDD","720913C7-5A67-4B18-BC00-224E8681B4D6","BE78CF20-E4F4-4D4C-9970-50760EC62093","D03BA5BF-95FE-4791-BA3C-03BECFD1DBD0","B8C60E74-6C75-467D-BFE3-6A2A77CD61CF","43C6599D-A3EB-4435-BA11-53F4AFE56CFC","EE19BCDF-0DFC-46BE-A879-A45ADF7DD0A3","9AAEE081-C1A7-4FD2-AD8A-17DB286219D9","C32A456A-4A3D-49CE-841A-EDD205F4E147","11C3AD42-A575-4261-85AA-B5039D7C3EF9","B9E66435-8A2F-473F-856A-C5C7D56D6394","46CF74F4-E238-441C-B8F1-AE00B958376E"],"_Position":{"__isSmartRef__":true,"id":347},"owner":{"__isSmartRef__":true,"id":64},"doitContext":null,"_Rotation":0,"_Scale":1,"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":348},"__LivelyClassName__":"lively.morphic.Text"},"290":{"_Position":{"__isSmartRef__":true,"id":291},"_Extent":{"__isSmartRef__":true,"id":292},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":293},"_Fill":{"__isSmartRef__":true,"id":294},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":295},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":296},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"291":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"292":{"x":688.0285365288845,"y":475.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"293":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"294":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"295":{"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"},"296":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"297":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"298":{"style":{"__isSmartRef__":true,"id":299},"chunkOwner":{"__isSmartRef__":true,"id":289},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"299":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"300":{"resizeWidth":true,"resizeHeight":true},"301":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"302":{"x":688.0285365288845,"y":475.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"303":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"304":{"morph":{"__isSmartRef__":true,"id":289},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"305":{"sourceObj":{"__isSmartRef__":true,"id":289},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":306},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"306":{"submorphs":[],"scripts":[],"id":"1F93592B-A29C-4131-A0F1-4CE06F75AEB8","shape":{"__isSmartRef__":true,"id":307},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":314},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":315},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":316},"eventHandler":{"__isSmartRef__":true,"id":317},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":64},"priorExtent":{"__isSmartRef__":true,"id":318},"layout":{"__isSmartRef__":true,"id":319},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":310},"alarmColor":{"__isSmartRef__":true,"id":320},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":321},"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","8996C5CE-C0BD-416A-9214-E32FE4CDB9B4","73394986-E8A4-4A30-9CC0-AC8FFD793F3F","D6E52851-8AD2-4753-8713-7AB8D0842673","2B74438A-0F29-4BCE-8E7F-C9C19EC21DC5","138DA6C9-120A-4430-A2C2-93832A96EF11","A08F3550-B2EE-4472-B05A-BF94414A6241","F2C1C8D7-E57B-4588-ACE4-BE18CB8BAAB2","6C37C429-2834-43EE-AB89-E4EE12E5F56D","CD944199-ABA9-4BC0-A5D0-8E74A043BDBC","F6242692-9018-4E38-B7EC-090F3A82222D","939EA69E-24A5-4F38-A1C4-8860211EB3DA","600A6D96-1684-4AAB-90FD-EB7F20ADB461"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":322},"__LivelyClassName__":"lively.morphic.Box"},"307":{"position":{"__isSmartRef__":true,"id":308},"_Extent":{"__isSmartRef__":true,"id":309},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":310},"_Fill":{"__isSmartRef__":true,"id":311},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":312},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":313},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"308":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"309":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"310":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"311":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"312":{"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"},"313":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"314":{"x":880.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"315":{"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"},"316":{"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"},"317":{"morph":{"__isSmartRef__":true,"id":306},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"318":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"319":{"moveHorizontal":true,"adjustForNewBounds":true},"320":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"321":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"322":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":323},"setColors":{"__isSmartRef__":true,"id":327}},"323":{"varMapping":{"__isSmartRef__":true,"id":324},"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":325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"324":{"this":{"__isSmartRef__":true,"id":306}},"325":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":326}},"326":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Mitteleuropäische Sommerzeit)"},"327":{"varMapping":{"__isSmartRef__":true,"id":328},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"328":{"this":{"__isSmartRef__":true,"id":306}},"329":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":330}},"330":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Mitteleuropäische Sommerzeit)"},"331":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"332":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":333},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":340},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":341}],"eventHandler":{"__isSmartRef__":true,"id":343},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":344},"priorExtent":{"__isSmartRef__":true,"id":345},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":346},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"333":{"_Position":{"__isSmartRef__":true,"id":334},"renderContextTable":{"__isSmartRef__":true,"id":335},"_Extent":{"__isSmartRef__":true,"id":336},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":337},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":338},"_Fill":{"__isSmartRef__":true,"id":339},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"334":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"335":{"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"},"336":{"x":100,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"337":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"338":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"339":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"340":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"341":{"style":{"__isSmartRef__":true,"id":342},"chunkOwner":{"__isSmartRef__":true,"id":332},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"342":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"343":{"morph":{"__isSmartRef__":true,"id":332},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"344":{"x":295.51426826444225,"y":225.30626630721798,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"345":{"x":100,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"346":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"347":{"x":200,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"348":{"doSave":{"__isSmartRef__":true,"id":349},"boundEval":{"__isSmartRef__":true,"id":357},"reset":{"__isSmartRef__":true,"id":365},"display":{"__isSmartRef__":true,"id":369},"hasChanged":{"__isSmartRef__":true,"id":373},"setTarget":{"__isSmartRef__":true,"id":377},"displayStatus":{"__isSmartRef__":true,"id":381}},"349":{"varMapping":{"__isSmartRef__":true,"id":350},"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":355},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"350":{"this":{"__isSmartRef__":true,"id":289},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":351}},"351":{"$super":{"__isSmartRef__":true,"id":352}},"352":{"varMapping":{"__isSmartRef__":true,"id":353},"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":354},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"353":{"obj":{"__isSmartRef__":true,"id":289},"name":"doSave"},"354":{},"355":{"timestamp":{"__isSmartRef__":true,"id":356},"user":"lauritz"},"356":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Mitteleuropäische Zeit)"},"357":{"varMapping":{"__isSmartRef__":true,"id":358},"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":363},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"358":{"this":{"__isSmartRef__":true,"id":289},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":359}},"359":{"$super":{"__isSmartRef__":true,"id":360}},"360":{"varMapping":{"__isSmartRef__":true,"id":361},"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":362},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"361":{"obj":{"__isSmartRef__":true,"id":289},"name":"boundEval"},"362":{},"363":{"timestamp":{"__isSmartRef__":true,"id":364},"user":"lauritz","categories":[]},"364":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (Mitteleuropäische Zeit)"},"365":{"varMapping":{"__isSmartRef__":true,"id":366},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":367},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"366":{"this":{"__isSmartRef__":true,"id":289}},"367":{"timestamp":{"__isSmartRef__":true,"id":368},"user":"lauritz","categories":[]},"368":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:14:35 GMT+0200 (Mitteleuropäische Sommerzeit)"},"369":{"varMapping":{"__isSmartRef__":true,"id":370},"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":371},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"370":{"this":{"__isSmartRef__":true,"id":289}},"371":{"timestamp":{"__isSmartRef__":true,"id":372},"user":"lauritz","categories":[]},"372":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Mitteleuropäische Sommerzeit)"},"373":{"varMapping":{"__isSmartRef__":true,"id":374},"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":375},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"374":{"this":{"__isSmartRef__":true,"id":289}},"375":{"timestamp":{"__isSmartRef__":true,"id":376},"user":"lauritz","categories":[]},"376":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Mitteleuropäische Sommerzeit)"},"377":{"varMapping":{"__isSmartRef__":true,"id":378},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":379},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"378":{"this":{"__isSmartRef__":true,"id":289}},"379":{"timestamp":{"__isSmartRef__":true,"id":380},"user":"lauritz","categories":[]},"380":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (Mitteleuropäische Zeit)"},"381":{"varMapping":{"__isSmartRef__":true,"id":382},"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":383},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"382":{"this":{"__isSmartRef__":true,"id":289}},"383":{"timestamp":{"__isSmartRef__":true,"id":384},"user":"lauritz","categories":[]},"384":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Mitteleuropäische Zeit)"},"385":{"submorphs":[{"__isSmartRef__":true,"id":386}],"scripts":[],"id":"9806C050-DBCF-4B55-8B3D-4B08801D0843","shape":{"__isSmartRef__":true,"id":403},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":410},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":411},"lighterFill":{"__isSmartRef__":true,"id":412},"label":{"__isSmartRef__":true,"id":386},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":413},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":414},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":415},"eventHandler":{"__isSmartRef__":true,"id":416},"distanceToDragEvent":{"__isSmartRef__":true,"id":417},"priorExtent":{"__isSmartRef__":true,"id":418},"owner":{"__isSmartRef__":true,"id":64},"textString":"","selection":{"__isSmartRef__":true,"id":419},"_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","0A5DD73F-BFD4-4203-AB1C-12C1814A4F4E","294A47F7-5486-4C34-A10B-8BC879193467","4923ECE2-7536-4F1D-8D20-0A02F5760A1E","BE4E22C9-FCE7-44FF-98A9-8708BFAC0C63","EA50A1B6-1CE6-472F-8267-EE7B1B1BF162","925D4C70-C52F-470A-ABAE-465ACE723B77","230A6A99-D85A-48B7-91FA-A429E8C5168B","D4E34E00-D4CD-4967-BA89-FCDAB675C34D","05D9D80D-C887-4A60-92F1-2770C7FB6FF8","729062D1-8F3C-481F-B3CD-CFE554431024","5E0F86AC-71CE-42D9-8F80-303AF7F84531","B073815C-AFC0-40D8-A39D-46CBA49C3491"],"layout":{"__isSmartRef__":true,"id":436},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":437},"__LivelyClassName__":"lively.morphic.Button"},"386":{"submorphs":[],"scripts":[],"id":"283F0F1E-D9F3-468B-880F-23B9B8C4A4A3","shape":{"__isSmartRef__":true,"id":387},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":393},"textColor":{"__isSmartRef__":true,"id":390},"owner":{"__isSmartRef__":true,"id":385},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":394}],"padding":{"__isSmartRef__":true,"id":396},"_Padding":{"__isSmartRef__":true,"id":396},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":397},"attributeConnections":[{"__isSmartRef__":true,"id":398}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":399},"eventHandler":{"__isSmartRef__":true,"id":400},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"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","EA0917D2-402A-4374-B91B-12D782A97683","B86CE011-A6A8-456A-95E8-57345EEDB65F","566326F5-AF2A-46A5-9AE9-4D2F8A51C09E","2F377A10-AEBF-4EE8-A363-683035870AE8","9594B932-EAB9-4976-9257-6AF21CC36467","CDAA6596-E20C-4846-919F-1B5337381E87","EA43DB2E-44D9-488D-8DEE-CC5C24A4AA43","D4B1274E-549A-4F8E-96C2-E1C9FB712CDB","A8A08047-6836-46D9-A1E4-537D85BC5D8F","3B58635B-640E-46B5-93A7-0D445B1FBCD3","38ECE0DC-C18B-4CE5-A498-FFB3549E7C28","C2C7E90F-760A-4DCC-8130-A21D25D23AEE"],"_TextColor":{"__isSmartRef__":true,"id":401},"layout":{"__isSmartRef__":true,"id":402},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"387":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":388},"_Extent":{"__isSmartRef__":true,"id":389},"_BorderColor":{"__isSmartRef__":true,"id":390},"renderContextTable":{"__isSmartRef__":true,"id":391},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":392},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"388":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"389":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"390":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"391":{"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"},"392":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"393":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"394":{"style":{"__isSmartRef__":true,"id":395},"chunkOwner":{"__isSmartRef__":true,"id":386},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"empty","__LivelyClassName__":"lively.morphic.TextChunk"},"395":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"396":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"397":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"398":{"sourceObj":{"__isSmartRef__":true,"id":386},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":385},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"399":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"400":{"morph":{"__isSmartRef__":true,"id":386},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"401":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"402":{"centeredVertical":true,"centeredHorizontal":true},"403":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":404},"_Extent":{"__isSmartRef__":true,"id":405},"_Fill":{"__isSmartRef__":true,"id":406},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":407},"_BorderRadius":1,"renderContextTable":{"__isSmartRef__":true,"id":408},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":409},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"404":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"405":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"406":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"407":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"408":{"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"},"409":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"410":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"411":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"412":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"413":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"414":{"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"},"415":{"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"},"416":{"morph":{"__isSmartRef__":true,"id":385},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"417":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"418":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"419":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":420},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":426},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":427},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":428},"_TextColor":{"__isSmartRef__":true,"id":429},"renderContextTable":{"__isSmartRef__":true,"id":430},"textChunks":[{"__isSmartRef__":true,"id":431}],"eventHandler":{"__isSmartRef__":true,"id":433},"priorExtent":{"__isSmartRef__":true,"id":434},"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":435},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"420":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":421},"_Extent":{"__isSmartRef__":true,"id":422},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":423},"renderContextTable":{"__isSmartRef__":true,"id":424},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":425},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"421":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"422":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"423":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"424":{"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"},"425":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"426":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"427":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"428":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"429":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"430":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"431":{"style":{"__isSmartRef__":true,"id":432},"chunkOwner":{"__isSmartRef__":true,"id":419},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"432":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"433":{"morph":{"__isSmartRef__":true,"id":419},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"434":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"435":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"436":{"adjustForNewBounds":true},"437":{"onrestore":{"__isSmartRef__":true,"id":438},"styleMe":{"__isSmartRef__":true,"id":446},"createListMorph":{"__isSmartRef__":true,"id":450},"getList":{"__isSmartRef__":true,"id":454},"removeList":{"__isSmartRef__":true,"id":458},"reset":{"__isSmartRef__":true,"id":462},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":466},"onMouseDown":{"__isSmartRef__":true,"id":470},"setTargetOfPane":{"__isSmartRef__":true,"id":478},"setTargetToListSelection":{"__isSmartRef__":true,"id":482},"onBlur":{"__isSmartRef__":true,"id":486},"setTarget":{"__isSmartRef__":true,"id":494},"setTargetOnSelection":{"__isSmartRef__":true,"id":498}},"438":{"varMapping":{"__isSmartRef__":true,"id":439},"source":"function onrestore() {\n this.styleMe.bind(this).delay(0)\n}","funcProperties":{"__isSmartRef__":true,"id":444},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"439":{"this":{"__isSmartRef__":true,"id":385},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":440}},"440":{"$super":{"__isSmartRef__":true,"id":441}},"441":{"varMapping":{"__isSmartRef__":true,"id":442},"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":443},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"442":{"obj":{"__isSmartRef__":true,"id":385},"name":"onrestore"},"443":{},"444":{"timestamp":{"__isSmartRef__":true,"id":445},"user":"athomschke","tags":[]},"445":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:49:38 GMT+0100 (Mitteleuropäische Zeit)"},"446":{"varMapping":{"__isSmartRef__":true,"id":447},"source":"function styleMe() {\n this.setBorderRadius(1)\n}","funcProperties":{"__isSmartRef__":true,"id":448},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"447":{"this":{"__isSmartRef__":true,"id":385}},"448":{"timestamp":{"__isSmartRef__":true,"id":449},"user":"athomschke","tags":[]},"449":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:50:59 GMT+0100 (Mitteleuropäische Zeit)"},"450":{"varMapping":{"__isSmartRef__":true,"id":451},"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":452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"451":{"this":{"__isSmartRef__":true,"id":385}},"452":{"timestamp":{"__isSmartRef__":true,"id":453},"user":"lauritz","tags":[]},"453":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (Mitteleuropäische Zeit)"},"454":{"varMapping":{"__isSmartRef__":true,"id":455},"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":456},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"455":{"this":{"__isSmartRef__":true,"id":385}},"456":{"timestamp":{"__isSmartRef__":true,"id":457},"user":"lauritz","tags":[]},"457":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (Mitteleuropäische Zeit)"},"458":{"varMapping":{"__isSmartRef__":true,"id":459},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":460},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"459":{"this":{"__isSmartRef__":true,"id":385}},"460":{"timestamp":{"__isSmartRef__":true,"id":461},"user":"lauritz","tags":[]},"461":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (Mitteleuropäische Zeit)"},"462":{"varMapping":{"__isSmartRef__":true,"id":463},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign(\"left\");\n this.applyStyle({borderRadius: '3px 3px 3px 3px',})\n this.setBorderColor(Color.black)\n this.label.setTextColor(Color.black)\n this.setPadding(pt(6,2).extent(pt(6,2)))\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"463":{"this":{"__isSmartRef__":true,"id":385}},"464":{"timestamp":{"__isSmartRef__":true,"id":465},"user":"athomschke","tags":[]},"465":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:21:06 GMT+0100 (Mitteleuropäische Zeit)"},"466":{"varMapping":{"__isSmartRef__":true,"id":467},"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":468},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"467":{"this":{"__isSmartRef__":true,"id":385}},"468":{"timestamp":{"__isSmartRef__":true,"id":469},"user":"lauritz","tags":[]},"469":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (Mitteleuropäische Zeit)"},"470":{"varMapping":{"__isSmartRef__":true,"id":471},"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":476},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"471":{"this":{"__isSmartRef__":true,"id":385},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":472}},"472":{"$super":{"__isSmartRef__":true,"id":473}},"473":{"varMapping":{"__isSmartRef__":true,"id":474},"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":475},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"474":{"obj":{"__isSmartRef__":true,"id":385},"name":"onMouseDown"},"475":{},"476":{"timestamp":{"__isSmartRef__":true,"id":477},"user":"lauritz","tags":[]},"477":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (Mitteleuropäische Zeit)"},"478":{"varMapping":{"__isSmartRef__":true,"id":479},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":480},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"479":{"this":{"__isSmartRef__":true,"id":385}},"480":{"timestamp":{"__isSmartRef__":true,"id":481},"user":"lauritz","tags":[]},"481":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Mitteleuropäische Zeit)"},"482":{"varMapping":{"__isSmartRef__":true,"id":483},"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":484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"483":{"this":{"__isSmartRef__":true,"id":385}},"484":{"timestamp":{"__isSmartRef__":true,"id":485},"user":"lauritz","tags":[]},"485":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Mitteleuropäische Zeit)"},"486":{"varMapping":{"__isSmartRef__":true,"id":487},"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":492},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"487":{"this":{"__isSmartRef__":true,"id":385},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":488}},"488":{"$super":{"__isSmartRef__":true,"id":489}},"489":{"varMapping":{"__isSmartRef__":true,"id":490},"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":491},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"490":{"obj":{"__isSmartRef__":true,"id":385},"name":"onBlur"},"491":{},"492":{"timestamp":{"__isSmartRef__":true,"id":493},"user":"lauritz","tags":[]},"493":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (Mitteleuropäische Zeit)"},"494":{"varMapping":{"__isSmartRef__":true,"id":495},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":496},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"495":{"this":{"__isSmartRef__":true,"id":385}},"496":{"timestamp":{"__isSmartRef__":true,"id":497},"user":"lauritz","tags":[]},"497":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Mitteleuropäische Zeit)"},"498":{"varMapping":{"__isSmartRef__":true,"id":499},"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":500},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"499":{"this":{"__isSmartRef__":true,"id":385}},"500":{"timestamp":{"__isSmartRef__":true,"id":501},"user":"lauritz","tags":[]},"501":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Mitteleuropäische Zeit)"},"502":{"submorphs":[],"scripts":[],"id":"7879FA8C-D79F-42DD-AF7C-CFF5957DBD84","shape":{"__isSmartRef__":true,"id":503},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":509},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":506},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":510},"textChunks":[{"__isSmartRef__":true,"id":511}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":513},"renderContextTable":{"__isSmartRef__":true,"id":514},"eventHandler":{"__isSmartRef__":true,"id":515},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":516},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":64},"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","A4A3682B-8E37-4DC5-8997-6665B8B3031A","93055BC8-BCA8-4B42-A99E-D59C96CCC164","ACC42F20-D523-4526-9F43-BD929009C7AE","DEADC36F-D638-46F7-9137-F26B02099732","D4B4E197-6444-4603-A613-9D49DDF8E251","D5839826-886B-4623-B2B8-A6C8C11C94EA","D50BBD0B-DC57-4350-9E30-0CBD23D627BF","212697AF-669F-4D48-BB4A-82DA92BDCC92","9931DFB8-F1A2-40A8-B0D1-739FAE663043","A9F35438-10A8-45E3-89D6-6FF592392F41","5E9395A9-8F87-4F76-A7E4-B1117CD3AE0F","F4129596-9382-4F42-87C4-4E52B0130574"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"503":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":504},"_Extent":{"__isSmartRef__":true,"id":505},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":506},"renderContextTable":{"__isSmartRef__":true,"id":507},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":508},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"504":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"505":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"506":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"507":{"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"},"508":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"509":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"510":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"511":{"style":{"__isSmartRef__":true,"id":512},"chunkOwner":{"__isSmartRef__":true,"id":502},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"512":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"513":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"514":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"515":{"morph":{"__isSmartRef__":true,"id":502},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"516":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"517":{"submorphs":[],"scripts":[],"id":"54314A1C-1F9E-47E7-BB72-4DCDABF5E609","shape":{"__isSmartRef__":true,"id":518},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":524},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":521},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":525},"textChunks":[{"__isSmartRef__":true,"id":526}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":528},"renderContextTable":{"__isSmartRef__":true,"id":529},"eventHandler":{"__isSmartRef__":true,"id":530},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":531},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":64},"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","14D4A75A-4097-451E-A45E-6B60776414A2","5D92CAD6-FCD4-4EB7-900F-401E9F83DBE3","1EF5EDFD-2078-4A88-8054-BC8E572DDEBB","F6FE9FDB-0E4F-45CB-B1FE-7AEBB927264C","21BFC1AC-200D-4530-B5D6-46BF1C6EF92E","65B9E626-BC59-4577-BA2A-B22F23701585","D4E16530-B85A-4E1A-876A-477990F01BE3","C18F763B-DF70-491F-B29A-17E940EEDA4B","BFCB3F84-E307-4DBD-B7D9-C176F1B5873A","9A912F22-B7A6-4961-9BC9-7E9897430294","356E95B4-440A-43FB-B86B-E1A439465958","7C8D50CE-498E-409E-A406-86444D04EA31"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"518":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":519},"_Extent":{"__isSmartRef__":true,"id":520},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":521},"renderContextTable":{"__isSmartRef__":true,"id":522},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":523},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"519":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"520":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"521":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"522":{"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"},"523":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"524":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"525":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"526":{"style":{"__isSmartRef__":true,"id":527},"chunkOwner":{"__isSmartRef__":true,"id":517},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"527":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"528":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"529":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"530":{"morph":{"__isSmartRef__":true,"id":517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"531":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"532":{"submorphs":[{"__isSmartRef__":true,"id":533}],"scripts":[],"id":"68C4A1FD-57E7-4E6B-9690-4AAB7CCBF78E","shape":{"__isSmartRef__":true,"id":550},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":556},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":411},"lighterFill":{"__isSmartRef__":true,"id":557},"label":{"__isSmartRef__":true,"id":533},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":558},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":559},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":560},"eventHandler":{"__isSmartRef__":true,"id":561},"distanceToDragEvent":{"__isSmartRef__":true,"id":562},"priorExtent":{"__isSmartRef__":true,"id":563},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":64},"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","A24E2D56-75F5-4623-9514-CCCE829D87A8","86D03921-E641-4075-B86E-D0919E34BACE","B3F8A594-F9F0-4615-9C5F-C0B9C1D20442","A1F698D6-DDC9-4A24-A811-08A327B14A6E","F7186F4C-07D8-4F27-B22B-2EB5A93593FE","3ED314A8-B6E3-43F6-A27D-DF24FF482825","04E80229-B458-422F-AF0B-C766F8060C1C","455F4003-DF7D-4156-8535-B2758F4DB8DE","10DDE569-19DB-4A09-9CF7-BB82A01FCD2F","C9355D4D-2BFA-48E4-AEEC-856CAC3E89B7","6BDD51E3-C21D-4973-B26E-D19AD321FEF2","18C5AF1C-92F6-474D-A65C-C3F62720DC26"],"layout":{"__isSmartRef__":true,"id":564},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":565},"__LivelyClassName__":"lively.morphic.Button"},"533":{"submorphs":[],"scripts":[],"id":"FB24F2F9-BEAE-4ADE-9F3D-3647E98AAECD","shape":{"__isSmartRef__":true,"id":534},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":540},"textColor":{"__isSmartRef__":true,"id":537},"owner":{"__isSmartRef__":true,"id":532},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":541}],"padding":{"__isSmartRef__":true,"id":543},"_Padding":{"__isSmartRef__":true,"id":543},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":544},"attributeConnections":[{"__isSmartRef__":true,"id":545}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":546},"eventHandler":{"__isSmartRef__":true,"id":547},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"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","4F5C3709-B64A-4416-B14B-CD96DBC29C1E","5C6429CB-384B-4971-9BFC-642C37D342B5","09325C1E-6E42-421A-8A78-3584631377CF","77A1991E-E093-48E5-84A2-159C7E562244","78E985E3-C3D5-401D-9801-FB04C4514692","7C8D6B29-535F-47B0-90FE-411E92503FFC","C8C0F444-3D72-4EA0-AE9C-B80E2929E2AF","00963026-64BF-4DC6-A158-6B73DC540B4A","E80A2DF4-825A-4A3E-834D-1CD4BED83A7C","D91AAE63-1CC6-4112-AADF-3C0A334F9A05","92C427D3-3098-4AFF-8C5D-9AA5F642CFE8","B6FF8F78-D227-4A01-BB17-50A27890F6A1"],"_TextColor":{"__isSmartRef__":true,"id":548},"layout":{"__isSmartRef__":true,"id":549},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"534":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":535},"_Extent":{"__isSmartRef__":true,"id":536},"_BorderColor":{"__isSmartRef__":true,"id":537},"renderContextTable":{"__isSmartRef__":true,"id":538},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":539},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"535":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"536":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"537":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"538":{"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"},"539":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"540":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"541":{"style":{"__isSmartRef__":true,"id":542},"chunkOwner":{"__isSmartRef__":true,"id":533},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk"},"542":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"543":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"544":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"545":{"sourceObj":{"__isSmartRef__":true,"id":533},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":532},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"546":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"547":{"morph":{"__isSmartRef__":true,"id":533},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"548":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"549":{"centeredVertical":true,"centeredHorizontal":true},"550":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":551},"_Extent":{"__isSmartRef__":true,"id":552},"_Fill":{"__isSmartRef__":true,"id":553},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":407},"_BorderRadius":1,"renderContextTable":{"__isSmartRef__":true,"id":554},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":555},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"551":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"552":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"553":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"554":{"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"},"555":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"556":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"557":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"558":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"559":{"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"},"560":{"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"},"561":{"morph":{"__isSmartRef__":true,"id":532},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"562":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"563":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"564":{"adjustForNewBounds":true},"565":{"onrestore":{"__isSmartRef__":true,"id":566},"styleMe":{"__isSmartRef__":true,"id":574},"createListMorph":{"__isSmartRef__":true,"id":578},"getList":{"__isSmartRef__":true,"id":582},"removeList":{"__isSmartRef__":true,"id":586},"reset":{"__isSmartRef__":true,"id":590},"onMouseUp":{"__isSmartRef__":true,"id":594},"onBlur":{"__isSmartRef__":true,"id":602},"setTag":{"__isSmartRef__":true,"id":610}},"566":{"varMapping":{"__isSmartRef__":true,"id":567},"source":"function onrestore() {\n this.styleMe.bind(this).delay(0);\n}","funcProperties":{"__isSmartRef__":true,"id":572},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"567":{"this":{"__isSmartRef__":true,"id":532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":568}},"568":{"$super":{"__isSmartRef__":true,"id":569}},"569":{"varMapping":{"__isSmartRef__":true,"id":570},"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":571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"570":{"obj":{"__isSmartRef__":true,"id":532},"name":"onrestore"},"571":{},"572":{"timestamp":{"__isSmartRef__":true,"id":573},"user":"athomschke","tags":[]},"573":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:48:54 GMT+0100 (Mitteleuropäische Zeit)"},"574":{"varMapping":{"__isSmartRef__":true,"id":575},"source":"function styleMe() {\n this.setBorderRadius(1);\n}","funcProperties":{"__isSmartRef__":true,"id":576},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"575":{"this":{"__isSmartRef__":true,"id":532}},"576":{"timestamp":{"__isSmartRef__":true,"id":577},"user":"athomschke","tags":[]},"577":{"isSerializedDate":true,"string":"Thu Feb 09 2012 10:49:12 GMT+0100 (Mitteleuropäische Zeit)"},"578":{"varMapping":{"__isSmartRef__":true,"id":579},"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":580},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"579":{"this":{"__isSmartRef__":true,"id":532}},"580":{"timestamp":{"__isSmartRef__":true,"id":581},"user":"lauritz","categories":[]},"581":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Mitteleuropäische Zeit)"},"582":{"varMapping":{"__isSmartRef__":true,"id":583},"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":584},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"583":{"this":{"__isSmartRef__":true,"id":532}},"584":{"timestamp":{"__isSmartRef__":true,"id":585},"user":"lauritz","tags":[]},"585":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Mitteleuropäische Zeit)"},"586":{"varMapping":{"__isSmartRef__":true,"id":587},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":588},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"587":{"this":{"__isSmartRef__":true,"id":532}},"588":{"timestamp":{"__isSmartRef__":true,"id":589},"user":"lauritz","categories":[]},"589":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Mitteleuropäische Zeit)"},"590":{"varMapping":{"__isSmartRef__":true,"id":591},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign(\"left\");\n this.setPadding(pt(10,0).extent(pt(0,0)))\n this.applyStyle({borderRadius: '3px 3px 3px 3px',})\n this.setBorderColor(Color.black)\n this.label.setTextColor(Color.black)\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":592},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"591":{"this":{"__isSmartRef__":true,"id":532}},"592":{"timestamp":{"__isSmartRef__":true,"id":593},"user":"athomschke","tags":[]},"593":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:26:09 GMT+0100 (Mitteleuropäische Zeit)"},"594":{"varMapping":{"__isSmartRef__":true,"id":595},"source":"function onMouseUp(evt) {\n this.setValue(false)\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":600},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"595":{"this":{"__isSmartRef__":true,"id":532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":596}},"596":{"$super":{"__isSmartRef__":true,"id":597}},"597":{"varMapping":{"__isSmartRef__":true,"id":598},"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":599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"598":{"obj":{"__isSmartRef__":true,"id":532},"name":"onMouseUp"},"599":{},"600":{"timestamp":{"__isSmartRef__":true,"id":601},"user":"athomschke","tags":[]},"601":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:35:37 GMT+0100 (Mitteleuropäische Zeit)"},"602":{"varMapping":{"__isSmartRef__":true,"id":603},"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":608},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"603":{"this":{"__isSmartRef__":true,"id":532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":604}},"604":{"$super":{"__isSmartRef__":true,"id":605}},"605":{"varMapping":{"__isSmartRef__":true,"id":606},"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":607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"606":{"obj":{"__isSmartRef__":true,"id":532},"name":"onBlur"},"607":{},"608":{"timestamp":{"__isSmartRef__":true,"id":609},"user":"lauritz","categories":[]},"609":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Mitteleuropäische Zeit)"},"610":{"varMapping":{"__isSmartRef__":true,"id":611},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign(\"left\");\n this.setPadding(pt(6,2).extent(pt(6,2)))\n this.applyStyle({borderRadius: '3px 3px 3px 3px',})\n this.label.setTextColor(Color.black)\n this.setBorderColor(Color.black)\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":612},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"611":{"this":{"__isSmartRef__":true,"id":532}},"612":{"timestamp":{"__isSmartRef__":true,"id":613},"user":"athomschke","tags":[]},"613":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:20:50 GMT+0100 (Mitteleuropäische Zeit)"},"614":{"submorphs":[{"__isSmartRef__":true,"id":615}],"scripts":[],"id":"E9D4419A-0C4E-45B4-A2A8-7E374C5532B1","shape":{"__isSmartRef__":true,"id":634},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":641},"lighterFill":{"__isSmartRef__":true,"id":642},"label":{"__isSmartRef__":true,"id":615},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":643},"attributeConnections":[{"__isSmartRef__":true,"id":644}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":680},"renderContextTable":{"__isSmartRef__":true,"id":681},"eventHandler":{"__isSmartRef__":true,"id":682},"distanceToDragEvent":{"__isSmartRef__":true,"id":683},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","7B6FC6E2-1A15-4F09-9837-98E06BDA0EDA","BD08E4FA-97D7-47D1-9FFB-D17C1F88B580","D442B46C-CBEF-4170-9634-54E0E0D19668","6E674BE0-F48F-45DA-A63E-F1ADD76FDA09","A90AABF1-58CF-4AF5-A8E4-271F18BDFF1D","4E86758E-0776-4DB9-B11F-FB7ED15151FD","9AC9B01D-81BA-42FC-BA2D-3B67A07067F7","903B61B6-C4B0-44ED-8E78-6909DC653B62","137EC7BF-E2F0-4CB7-B294-BB8DEEFD8A42","CF02D304-3976-470E-818B-569A6377B058","BCEC5277-274E-433F-AE43-41C4788C5CB2","DA12758D-5275-42F8-B7B0-FFA3852BBB91"],"_Position":{"__isSmartRef__":true,"id":684},"owner":{"__isSmartRef__":true,"id":64},"layout":{"__isSmartRef__":true,"id":685},"_Rotation":0,"_Scale":0.994014980014994,"__LivelyClassName__":"lively.morphic.Button"},"615":{"submorphs":[],"scripts":[],"id":"427A8798-22F8-4155-A85D-6D79589AA959","shape":{"__isSmartRef__":true,"id":616},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":622},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":623},"_Padding":{"__isSmartRef__":true,"id":624},"owner":{"__isSmartRef__":true,"id":614},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":625},"textChunks":[{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":628}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":630},"eventHandler":{"__isSmartRef__":true,"id":631},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","10211617-8BD7-49F1-AFF5-8812F347B732","6B6D214B-1DBC-46E8-B5E4-0D51B48873CC","83B928F4-962C-4D97-89AF-BCC91B7910C9","9DD4EA8B-3A97-4FF9-A1F8-415CD2237EB4","7C6D2D2C-1611-4933-926A-2014184A1338","06C94693-D0EF-40A9-900C-90804C517A29","BF845F00-330B-4D6A-9B74-2A964D12867D","F5A331CD-6B1D-46B6-95EC-1387948F4C89","4FA88466-4032-4FDF-958C-9227AEAC3A60","F8A4B92A-E6E3-4C8E-89BC-1A42D715F303","03A6DFA2-279B-400A-AA51-F5FDC6B3BC6D","8E13B02E-F9C9-4B68-8815-B454C62D3143"],"_MinTextWidth":101,"_MinTextHeight":null,"_TextColor":{"__isSmartRef__":true,"id":632},"layout":{"__isSmartRef__":true,"id":633},"__LivelyClassName__":"lively.morphic.Text"},"616":{"position":{"__isSmartRef__":true,"id":617},"_Extent":{"__isSmartRef__":true,"id":618},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":619},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":620},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":621},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"617":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"618":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"619":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"620":{"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"},"621":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"622":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"623":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"624":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"625":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"626":{"style":{"__isSmartRef__":true,"id":627},"chunkOwner":{"__isSmartRef__":true,"id":615},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"run","__LivelyClassName__":"lively.morphic.TextChunk"},"627":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"628":{"style":{"__isSmartRef__":true,"id":629},"chunkOwner":{"__isSmartRef__":true,"id":615},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"629":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"630":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"631":{"morph":{"__isSmartRef__":true,"id":615},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"632":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"633":{"centeredVertical":true,"centeredHorizontal":true},"634":{"position":{"__isSmartRef__":true,"id":635},"_Extent":{"__isSmartRef__":true,"id":636},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":{"__isSmartRef__":true,"id":638},"_BorderRadius":13,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":639},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":640},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"635":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"636":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"637":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"638":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"639":{"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"},"640":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"641":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"642":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"643":{"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"},"644":{"sourceObj":{"__isSmartRef__":true,"id":614},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":64},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":645},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"645":{"submorphs":[{"__isSmartRef__":true,"id":646}],"scripts":[],"shape":{"__isSmartRef__":true,"id":661},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":668},"eventHandler":{"__isSmartRef__":true,"id":669},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":670},{"__isSmartRef__":true,"id":671}],"con":{"__isSmartRef__":true,"id":644},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":672},"__LivelyClassName__":"lively.morphic.Path"},"646":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":647},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":658},"eventHandler":{"__isSmartRef__":true,"id":659},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":660},"owner":{"__isSmartRef__":true,"id":645},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"647":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":648},{"__isSmartRef__":true,"id":649},{"__isSmartRef__":true,"id":650},{"__isSmartRef__":true,"id":651}],"renderContextTable":{"__isSmartRef__":true,"id":652},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":653},"_Extent":{"__isSmartRef__":true,"id":654},"_Padding":{"__isSmartRef__":true,"id":655},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":656},"_Fill":{"__isSmartRef__":true,"id":657},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"648":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"649":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"650":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"651":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"652":{"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"},"653":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"654":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"655":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"656":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"657":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"658":{"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"},"659":{"morph":{"__isSmartRef__":true,"id":646},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"660":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"661":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":662},{"__isSmartRef__":true,"id":663}],"renderContextTable":{"__isSmartRef__":true,"id":664},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":665},"_Extent":{"__isSmartRef__":true,"id":666},"_Padding":{"__isSmartRef__":true,"id":667},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":656},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"662":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"663":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"664":{"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"},"665":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"666":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"667":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"668":{"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"},"669":{"morph":{"__isSmartRef__":true,"id":645},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"670":{"morph":{"__isSmartRef__":true,"id":645},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"671":{"morph":{"__isSmartRef__":true,"id":645},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":646},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"672":{"morphMenuItems":{"__isSmartRef__":true,"id":673}},"673":{"varMapping":{"__isSmartRef__":true,"id":674},"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":679},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"674":{"this":{"__isSmartRef__":true,"id":645},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":675}},"675":{"$super":{"__isSmartRef__":true,"id":676}},"676":{"varMapping":{"__isSmartRef__":true,"id":677},"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":678},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"677":{"obj":{"__isSmartRef__":true,"id":645},"name":"morphMenuItems"},"678":{},"679":{},"680":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"681":{"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"},"682":{"morph":{"__isSmartRef__":true,"id":614},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"683":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"684":{"x":785.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"685":{"centeredHorizontal":false,"moveHorizontal":true,"adjustForNewBounds":true},"686":{"submorphs":[{"__isSmartRef__":true,"id":687}],"scripts":[],"id":"194BEAB5-DD01-4DBA-87F9-171F1A639AF8","shape":{"__isSmartRef__":true,"id":706},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":641},"lighterFill":{"__isSmartRef__":true,"id":712},"label":{"__isSmartRef__":true,"id":687},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":713},"attributeConnections":[{"__isSmartRef__":true,"id":714}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":750},"renderContextTable":{"__isSmartRef__":true,"id":751},"eventHandler":{"__isSmartRef__":true,"id":752},"distanceToDragEvent":{"__isSmartRef__":true,"id":753},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","5CC5F8D4-8739-4A96-860A-EF099A314642","916CF984-C8BC-4E32-9B91-7C8668125B96","DC8071EA-8D60-4A6F-8F41-AFB6DE399F34","6F7B3937-83C6-47B5-A453-17F9ADE4307B","DA72FB8B-D2AA-4AE4-B99F-2E50999EB5A0","2661A5D5-4CC9-4D79-8946-18AEAFE5A95A","D4638D54-BD35-4636-96A0-E23C0BC484C2","88B8E61E-C4A0-4EBA-B6FE-991100DCA98B","2281BC23-8BE3-4CF0-B606-D0EFFF265BF4","A1304853-E0AC-40DF-B5AA-011695252C3A","ECA69E29-CAA7-4647-AA74-B4BE0528A6D6","7DED49C1-BA42-490E-B398-E031AA48CA58"],"layout":{"__isSmartRef__":true,"id":754},"_Position":{"__isSmartRef__":true,"id":755},"owner":{"__isSmartRef__":true,"id":64},"_Rotation":0,"_Scale":0.9880657804942089,"__LivelyClassName__":"lively.morphic.Button"},"687":{"submorphs":[],"scripts":[],"id":"C0FAB8D1-81E6-4CFA-945E-99B09A146288","shape":{"__isSmartRef__":true,"id":688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":694},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":695},"_Padding":{"__isSmartRef__":true,"id":696},"owner":{"__isSmartRef__":true,"id":686},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":697},"textChunks":[{"__isSmartRef__":true,"id":698},{"__isSmartRef__":true,"id":700}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":702},"eventHandler":{"__isSmartRef__":true,"id":703},"_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","AF2EB5E4-DE8C-44F5-8273-CA21C4D6D967","6289D078-C569-499F-9B41-AE895D68385A","E0905C0A-38D2-4770-B9A4-CB73EE6B8AF1","CD2ECA57-4084-4F93-9F19-B43DAD1E14CA","88458EDB-9B69-47B4-9C45-F64BA53EBC0D","4951CCE5-7F71-47B7-A050-797AA1C9C9D6","BF1FD0CF-DB7C-48D3-BDD9-2F23D191865C","FE56B499-0F6C-4F2B-9C21-DB4220570FDB","B4DB9D5A-9D4D-4C98-9797-766E69E70404","61748053-E701-4A2C-80DB-D3F4FCD71FFB","8C069581-16A8-422C-88DC-042AEDC47731","359FC47C-C80C-49F4-BEF5-3F0544A73236"],"_MinTextWidth":101,"_MinTextHeight":null,"_TextColor":{"__isSmartRef__":true,"id":704},"layout":{"__isSmartRef__":true,"id":705},"__LivelyClassName__":"lively.morphic.Text"},"688":{"position":{"__isSmartRef__":true,"id":689},"_Extent":{"__isSmartRef__":true,"id":690},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":691},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":692},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":693},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"689":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"690":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"691":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"692":{"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"},"693":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"694":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"695":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"696":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"697":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"698":{"style":{"__isSmartRef__":true,"id":699},"chunkOwner":{"__isSmartRef__":true,"id":687},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"save","__LivelyClassName__":"lively.morphic.TextChunk"},"699":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"700":{"style":{"__isSmartRef__":true,"id":701},"chunkOwner":{"__isSmartRef__":true,"id":687},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"701":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"702":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"703":{"morph":{"__isSmartRef__":true,"id":687},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"704":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"705":{"centeredVertical":true,"centeredHorizontal":true},"706":{"position":{"__isSmartRef__":true,"id":707},"_Extent":{"__isSmartRef__":true,"id":708},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":{"__isSmartRef__":true,"id":709},"_BorderRadius":13,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":710},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":711},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"707":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"708":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"709":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"710":{"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"},"711":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"712":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"713":{"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"},"714":{"sourceObj":{"__isSmartRef__":true,"id":686},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":289},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":715},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"715":{"submorphs":[{"__isSmartRef__":true,"id":716}],"scripts":[],"shape":{"__isSmartRef__":true,"id":731},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":738},"eventHandler":{"__isSmartRef__":true,"id":739},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":741}],"con":{"__isSmartRef__":true,"id":714},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":742},"__LivelyClassName__":"lively.morphic.Path"},"716":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":717},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":728},"eventHandler":{"__isSmartRef__":true,"id":729},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":730},"owner":{"__isSmartRef__":true,"id":715},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"717":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":718},{"__isSmartRef__":true,"id":719},{"__isSmartRef__":true,"id":720},{"__isSmartRef__":true,"id":721}],"renderContextTable":{"__isSmartRef__":true,"id":722},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":723},"_Extent":{"__isSmartRef__":true,"id":724},"_Padding":{"__isSmartRef__":true,"id":725},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":726},"_Fill":{"__isSmartRef__":true,"id":727},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"718":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"719":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"720":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"721":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"722":{"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"},"723":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"724":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"725":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"726":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"727":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"728":{"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"},"729":{"morph":{"__isSmartRef__":true,"id":716},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"730":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"731":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":732},{"__isSmartRef__":true,"id":733}],"renderContextTable":{"__isSmartRef__":true,"id":734},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":735},"_Extent":{"__isSmartRef__":true,"id":736},"_Padding":{"__isSmartRef__":true,"id":737},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":726},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"732":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"733":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"734":{"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"},"735":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"736":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"737":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"738":{"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"},"739":{"morph":{"__isSmartRef__":true,"id":715},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"740":{"morph":{"__isSmartRef__":true,"id":715},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"741":{"morph":{"__isSmartRef__":true,"id":715},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":716},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"742":{"morphMenuItems":{"__isSmartRef__":true,"id":743}},"743":{"varMapping":{"__isSmartRef__":true,"id":744},"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":749},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"744":{"this":{"__isSmartRef__":true,"id":715},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":745}},"745":{"$super":{"__isSmartRef__":true,"id":746}},"746":{"varMapping":{"__isSmartRef__":true,"id":747},"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":748},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"747":{"obj":{"__isSmartRef__":true,"id":715},"name":"morphMenuItems"},"748":{},"749":{},"750":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"751":{"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"},"752":{"morph":{"__isSmartRef__":true,"id":686},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"753":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"754":{"centeredHorizontal":false,"moveHorizontal":true,"adjustForNewBounds":true},"755":{"x":672.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"756":{"submorphs":[{"__isSmartRef__":true,"id":757}],"scripts":[],"id":"268BAEEE-ED9B-4987-8AF3-AEC086FB7C68","shape":{"__isSmartRef__":true,"id":804},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":811},"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":812},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":833},"eventHandler":{"__isSmartRef__":true,"id":834},"attributeConnections":[{"__isSmartRef__":true,"id":835}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"derivationIds":[127,"86FF1C90-3CC2-44B9-8DEE-1BC214D734AE","EEA7DF22-C343-4B58-A447-43BB95D5405F","9665449D-F0E4-4BCE-854B-48D19C73214E","8B65C997-34DC-4F70-A1BA-266488F1588C","CBDEE8B9-9E1C-44E5-85E6-6D85E0738D59","44F04EA0-0B18-48F5-82DE-1C400B2E7E66","B5BC05CD-9955-4638-A7C0-3A76AD1EE0B1","B01D7C41-6561-42C3-AF67-837DB8619D96","EBA19361-462E-4B18-80CC-D4DF92C36B05","C262F36B-9939-4AFA-A77F-4F112C66C086","1B9B9DAD-74BE-466B-AAEC-CFC485692582","E83BB9C1-DCB7-474B-B13F-8A5C7601669A","8C92C062-2BAA-4ABE-9353-5F075B5F4825","BF2BC093-3702-4269-A915-565E8102B7A4","3666010F-8DD1-4F1A-BE0A-AEA3D07A427A","3A7D46BF-B048-458A-914C-5B42EB6DF43E","D88C02B5-CCCE-41DA-A5D1-B1D9ACC50341","ED360CAC-8AC2-4EFA-B1BF-2ECCC77A85CE"],"priorExtent":{"__isSmartRef__":true,"id":841},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":842},"itemList":[],"_ClipMode":"hidden","selectedMorph":null,"items":[],"owner":{"__isSmartRef__":true,"id":64},"selectedLineNo":-1,"distanceToDragEvent":{"__isSmartRef__":true,"id":843},"prevScroll":[0,0],"selection":null,"_Rotation":0,"_Scale":0.9940149800149942,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":844},"__LivelyClassName__":"lively.morphic.Box","withoutLayers":["Global.TouchToMouse"]},"757":{"submorphs":[],"scripts":[],"id":"70D0A93D-8B78-43A8-8B43-2E50D5A46ACA","shape":{"__isSmartRef__":true,"id":758},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":765},"showsHalos":false,"name":"ListItemContainer","partsBinMetaInfo":{"__isSmartRef__":true,"id":766},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":767},"eventHandler":{"__isSmartRef__":true,"id":768},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"70193F55-BD62-471E-90CE-6CF2F345BFF8","C29938AD-3221-4AB2-80BA-EBF64E5C8063","F478A91E-32FA-4527-BA77-81009843E6E7","3C2C2181-A589-45A7-B023-FDED3CDFE499","45EE0951-5C82-4C8D-808E-E69D6E6AFFC8","2964BC5A-EAE3-475B-95AC-0E9D3024D1BF","74F5FD7F-E5EA-4BE8-964D-7ABBFAFCB5D5","D3CBEE5F-FB39-4E1F-A1D8-CD60CAFAF2F9","1852D238-B9F1-4250-BC2C-F43F9855457A","4CAF94B4-BA6C-404D-8DC1-B6777F6AE2D9","4F307856-01C5-40AB-84D2-C31F10003715","E3C2CA8F-B5B0-4F20-AEB0-0F96A3D070A2","693EADB2-23A8-4D11-A6C1-B539F2CCA103","5E90B6AB-4025-41E5-9C44-6F45440E69FD","49C02396-B252-4F2F-8F2F-2D0D03875EA3","944DF78D-B779-4A0A-B317-71A1B493991F","DED93C61-E326-4F4D-A580-80A41B0CF335","6642D13A-8B93-45C7-9B30-131193A75AF7"],"owner":{"__isSmartRef__":true,"id":756},"isBeingDragged":false,"priorExtent":{"__isSmartRef__":true,"id":769},"layout":{"__isSmartRef__":true,"id":770},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":771},"__LivelyClassName__":"lively.morphic.Box"},"758":{"position":{"__isSmartRef__":true,"id":759},"_Extent":{"__isSmartRef__":true,"id":760},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":761},"_Fill":{"__isSmartRef__":true,"id":762},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":763},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":764},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"759":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"760":{"x":177,"y":90,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"761":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"762":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"763":{"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"},"764":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"765":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"766":{"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"},"767":{"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"},"768":{"morph":{"__isSmartRef__":true,"id":757},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"769":{"x":177,"y":90,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"770":{"resizeWidth":true,"adjustForNewBounds":true},"771":{"onTouchStart":{"__isSmartRef__":true,"id":772},"onTouchMove":{"__isSmartRef__":true,"id":780},"onTouchEnd":{"__isSmartRef__":true,"id":788},"stayInBounds":{"__isSmartRef__":true,"id":796},"isInBounds":{"__isSmartRef__":true,"id":800}},"772":{"varMapping":{"__isSmartRef__":true,"id":773},"source":"function onTouchStart(evt) {\n\n var touch = evt.touches[0];\n\n if(touch) {\n touch.originalDragOffset = touch.clientY;\n touch.originalMenuOffset = this.getPosition().y;\n \n var heightMenu = this.owner.itemList.length*43;\n var heightContainer = this.owner.getExtent().y;\n this.maxScroll = heightMenu - heightContainer;\n\n this.isTouched = true;\n this.velocity = 0;\n touch.lastTouch = touch.clientY;\n touch.lastUpdate = new Date().valueOf();\n \n }\n evt.stop()\n return true;\n\n \n}","funcProperties":{"__isSmartRef__":true,"id":778},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"773":{"this":{"__isSmartRef__":true,"id":757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":774}},"774":{"$super":{"__isSmartRef__":true,"id":775}},"775":{"varMapping":{"__isSmartRef__":true,"id":776},"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":777},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"776":{"obj":{"__isSmartRef__":true,"id":757},"name":"onTouchStart"},"777":{},"778":{"timestamp":{"__isSmartRef__":true,"id":779},"user":"athomschke","tags":[]},"779":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:44:48 GMT+0100 (Mitteleuropäische Zeit)"},"780":{"varMapping":{"__isSmartRef__":true,"id":781},"source":"function onTouchMove(evt) {\n\n var touch = evt.touches[0];\n \n if(touch && touch.originalDragOffset) {\n var delta = touch.clientY - touch.originalDragOffset;\n this.setPosition(pt(0,touch.originalMenuOffset+delta));\n\n if(!this.isInBounds()) {\n var yPos = Math.min(0,Math.max(-this.maxScroll, this.getPosition().y));\n delta = this.getPosition().y-yPos;\n this.moveBy(pt(0,-delta/2));\n }\n\n var positionDelta = touch.lastTouch-touch.clientY;\n var now = new Date().valueOf();\n var timeDelta = now - touch.lastUpdate;\n\n touch.lastTouch = touch.clientY;\n touch.lastUpdate = now;\n\n this.velocity = positionDelta*(-10/timeDelta);\n\n }\n evt.stop();\n return true;\n\n}","funcProperties":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"781":{"this":{"__isSmartRef__":true,"id":757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":782}},"782":{"$super":{"__isSmartRef__":true,"id":783}},"783":{"varMapping":{"__isSmartRef__":true,"id":784},"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":785},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"784":{"obj":{"__isSmartRef__":true,"id":757},"name":"onTouchMove"},"785":{},"786":{"timestamp":{"__isSmartRef__":true,"id":787},"user":"athomschke","tags":[]},"787":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:44:40 GMT+0100 (Mitteleuropäische Zeit)"},"788":{"varMapping":{"__isSmartRef__":true,"id":789},"source":"function onTouchEnd(evt) {\n var lastUpdate = new Date().valueOf();\n this.isTouched = false;\n var that = this;\n\n var flickingFct = function() {\n var now = new Date().valueOf();\n var delta = now - lastUpdate;\n var velo;\n that.velocity *= Math.pow(0.99, delta);\n that.moveBy(pt(0,that.velocity));\n that.stayInBounds();\n velo = that.velocity;\n \n lastUpdate = now;\n if((velo*velo>0.05 || !that.isInBounds()) && !that.isTouched) {\n window.setTimeout(flickingFct,10);\n }\n };\n\n window.setTimeout(flickingFct,10);\n evt.stop();\n\n}","funcProperties":{"__isSmartRef__":true,"id":794},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"789":{"this":{"__isSmartRef__":true,"id":757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":790}},"790":{"$super":{"__isSmartRef__":true,"id":791}},"791":{"varMapping":{"__isSmartRef__":true,"id":792},"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":793},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"792":{"obj":{"__isSmartRef__":true,"id":757},"name":"onTouchEnd"},"793":{},"794":{"timestamp":{"__isSmartRef__":true,"id":795},"user":"athomschke","tags":[]},"795":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:40:49 GMT+0100 (Mitteleuropäische Zeit)"},"796":{"varMapping":{"__isSmartRef__":true,"id":797},"source":"function stayInBounds() {\n var yPos = Math.min(0,Math.max(-this.maxScroll, this.getPosition().y));\n var delta = this.getPosition().y-yPos;\n\n if(this.velocity*delta > 0) {\n // out of bounds and velocity is in wrong direction\n this.velocity -= delta/15;\n } else if(delta!=0) {\n this.velocity = -delta/15;\n }\n// this.setPosition(pt(0,yPos));\n\n}","funcProperties":{"__isSmartRef__":true,"id":798},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"797":{"this":{"__isSmartRef__":true,"id":757}},"798":{"timestamp":{"__isSmartRef__":true,"id":799},"user":"sstamm","tags":[]},"799":{"isSerializedDate":true,"string":"Tue Jan 31 2012 11:38:39 GMT+0100 (Mitteleuropäische Zeit)"},"800":{"varMapping":{"__isSmartRef__":true,"id":801},"source":"function isInBounds() {\n var yPos = Math.min(0,Math.max(-this.maxScroll, this.getPosition().y));\n var delta = this.getPosition().y-yPos;\n\n return Math.abs(delta)<=0.02;\n\n}","funcProperties":{"__isSmartRef__":true,"id":802},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"801":{"this":{"__isSmartRef__":true,"id":757}},"802":{"timestamp":{"__isSmartRef__":true,"id":803},"user":"sstamm","tags":[]},"803":{"isSerializedDate":true,"string":"Tue Jan 31 2012 11:38:48 GMT+0100 (Mitteleuropäische Zeit)"},"804":{"position":{"__isSmartRef__":true,"id":805},"_Extent":{"__isSmartRef__":true,"id":806},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":807},"_Fill":{"__isSmartRef__":true,"id":808},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":809},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":810},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"805":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"806":{"x":177,"y":318,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"807":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"808":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"809":{"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"},"810":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"811":{"x":11.29677663227767,"y":64.5953746418223,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"812":{"partsSpaceName":"PartsBin/iPad Widgets/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A morph which behaves like an IPad list. Use initialize() to clear and addItem() to ... well ... add items","migrationLevel":4,"partName":"TouchList","changes":[{"__isSmartRef__":true,"id":813},{"__isSmartRef__":true,"id":815},{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":819},{"__isSmartRef__":true,"id":821},{"__isSmartRef__":true,"id":823},{"__isSmartRef__":true,"id":825},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":831}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"813":{"date":{"__isSmartRef__":true,"id":814},"author":"sstamm","message":"","id":"56852062-4668-4A1A-ACB3-BCF641C8B4F4"},"814":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:56:37 GMT+0100 (Mitteleuropäische Zeit)"},"815":{"date":{"__isSmartRef__":true,"id":816},"author":"sstamm","message":"","id":"DFC5B2E7-2E6B-425A-B10A-52B615C3A635"},"816":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:44:21 GMT+0100 (Mitteleuropäische Zeit)"},"817":{"date":{"__isSmartRef__":true,"id":818},"author":"sstamm","message":"we won't implement setSelection","id":"122879B0-1530-413F-A4A6-8EF04FBB4B52"},"818":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:42:39 GMT+0100 (Mitteleuropäische Zeit)"},"819":{"date":{"__isSmartRef__":true,"id":820},"author":"sstamm","message":"added updateListMethod","id":"111B62E3-0972-481F-BECB-26B8976BE918"},"820":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:34:53 GMT+0100 (Mitteleuropäische Zeit)"},"821":{"date":{"__isSmartRef__":true,"id":822},"author":"sstamm","message":"initial commit","id":"767E9E7C-11E5-4BEF-A4B2-3668C46D0969"},"822":{"isSerializedDate":true,"string":"Tue Jan 24 2012 19:00:20 GMT+0100 (Mitteleuropäische Zeit)"},"823":{"date":{"__isSmartRef__":true,"id":824},"author":"sstamm","message":"fixed bug when deleting the text morph on the iPad","id":"C93A96ED-F8E8-44F7-A454-D664753C5466"},"824":{"isSerializedDate":true,"string":"Fri Jan 27 2012 10:30:26 GMT+0100 (Mitteleuropäische Zeit)"},"825":{"date":{"__isSmartRef__":true,"id":826},"author":"sstamm","message":"","id":"A26BF7D0-A1D7-46E6-9AF1-47338619CD17"},"826":{"isSerializedDate":true,"string":"Fri Jan 27 2012 16:02:09 GMT+0100 (Mitteleuropäische Zeit)"},"827":{"date":{"__isSmartRef__":true,"id":828},"author":"sstamm","message":"disabled halos on the text morph","id":"9EAE8CAF-9C94-41BE-B398-D3D688298B13"},"828":{"isSerializedDate":true,"string":"Fri Jan 27 2012 16:48:12 GMT+0100 (Mitteleuropäische Zeit)"},"829":{"date":{"__isSmartRef__":true,"id":830},"author":"sstamm","message":"added caching to itemListMorph onmove","id":"441999A4-0272-48BF-B0E8-0F38B9B540AC"},"830":{"isSerializedDate":true,"string":"Tue Jan 31 2012 11:44:34 GMT+0100 (Mitteleuropäische Zeit)"},"831":{"date":{"__isSmartRef__":true,"id":832},"author":"conradcalmez","message":"added setList convenience method","id":"6347240A-F61E-44ED-82FA-15047F8B547D"},"832":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:55:45 GMT+0100 (Mitteleuropäische Zeit)"},"833":{"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"},"834":{"morph":{"__isSmartRef__":true,"id":756},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"835":{"sourceObj":{"__isSmartRef__":true,"id":756},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":64},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":836},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":837},"__LivelyClassName__":"AttributeConnection"},"836":{"source":{"__isSmartRef__":true,"id":756},"target":{"__isSmartRef__":true,"id":64}},"837":{"converter":{"__isSmartRef__":true,"id":838}},"838":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":839},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n }","funcProperties":{"__isSmartRef__":true,"id":840},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"839":{"source":{"__isSmartRef__":true,"id":756},"target":{"__isSmartRef__":true,"id":64}},"840":{},"841":{"x":177,"y":318,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"842":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":false},"843":{"x":122.65823088244156,"y":-7.570189079260103,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"844":{"onrestore":{"__isSmartRef__":true,"id":845},"setupConnections":{"__isSmartRef__":true,"id":853},"initialize":{"__isSmartRef__":true,"id":857},"addItem":{"__isSmartRef__":true,"id":865},"createListItem":{"__isSmartRef__":true,"id":869},"touchstartCallback":{"__isSmartRef__":true,"id":873},"touchmoveCallback":{"__isSmartRef__":true,"id":877},"touchendCallback":{"__isSmartRef__":true,"id":881},"updateSelection":{"__isSmartRef__":true,"id":885},"updateList":{"__isSmartRef__":true,"id":889},"setSelection":{"__isSmartRef__":true,"id":893},"setList":{"__isSmartRef__":true,"id":897},"preselectItem":{"__isSmartRef__":true,"id":901},"selectAddedScript":{"__isSmartRef__":true,"id":905},"getList":{"__isSmartRef__":true,"id":909},"selectAt":{"__isSmartRef__":true,"id":913}},"845":{"varMapping":{"__isSmartRef__":true,"id":846},"source":"function onrestore() {\n var that = this;\n this.setupConnections()\n //TODO: this is a race condition, because the render context is not\n // ready in onrestore\n window.setTimeout(function() { \n that.shape.setClipMode(\"hidden\"); }, 100);\n}","funcProperties":{"__isSmartRef__":true,"id":851},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"846":{"this":{"__isSmartRef__":true,"id":756},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":847}},"847":{"$super":{"__isSmartRef__":true,"id":848}},"848":{"varMapping":{"__isSmartRef__":true,"id":849},"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":850},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"849":{"obj":{"__isSmartRef__":true,"id":756},"name":"onrestore"},"850":{},"851":{"timestamp":{"__isSmartRef__":true,"id":852},"user":"athomschke","tags":[]},"852":{"isSerializedDate":true,"string":"Tue Feb 07 2012 15:18:43 GMT+0100 (Mitteleuropäische Zeit)"},"853":{"varMapping":{"__isSmartRef__":true,"id":854},"source":"function setupConnections() {\n connect(this, \"selection\", this.owner, \"displaySourceForScript\", {converter: \n\tfunction (value) {\n return (value === '-- ALL --') ? null : value;\n }});\n}","funcProperties":{"__isSmartRef__":true,"id":855},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"854":{"this":{"__isSmartRef__":true,"id":756}},"855":{"timestamp":{"__isSmartRef__":true,"id":856},"user":"athomschke","tags":[]},"856":{"isSerializedDate":true,"string":"Tue Feb 07 2012 15:18:31 GMT+0100 (Mitteleuropäische Zeit)"},"857":{"varMapping":{"__isSmartRef__":true,"id":858},"source":"function initialize() {\n console.log(\"in initialize\");\n this.itemList = [];\n this.items = [];\n this.selection = null;\n this.selectedLineNo = -1;\n this.selectedMorph = null;\n this.shape.setClipMode(\"hidden\");\n var itemContainer = this.get(\"ListItemContainer\");\n \n itemContainer.setPosition(pt(0,0));\n itemContainer.submorphs.invoke(\"remove\");\n \n}","funcProperties":{"__isSmartRef__":true,"id":863},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"858":{"this":{"__isSmartRef__":true,"id":756},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":859}},"859":{"$super":{"__isSmartRef__":true,"id":860}},"860":{"varMapping":{"__isSmartRef__":true,"id":861},"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":862},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"861":{"obj":{"__isSmartRef__":true,"id":756},"name":"initialize"},"862":{},"863":{"timestamp":{"__isSmartRef__":true,"id":864},"user":"sstamm","tags":[]},"864":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:32:54 GMT+0100 (Mitteleuropäische Zeit)"},"865":{"varMapping":{"__isSmartRef__":true,"id":866},"source":"function addItem(text) {\n var newMorph = this.createListItem(text);\n \n newMorph.setPosition(pt(0,this.itemList.length*43));\n this.itemList.push(newMorph);\n this.get(\"ListItemContainer\").addMorph(newMorph);\n}","funcProperties":{"__isSmartRef__":true,"id":867},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"866":{"this":{"__isSmartRef__":true,"id":756}},"867":{"timestamp":{"__isSmartRef__":true,"id":868},"user":"sstamm","tags":[]},"868":{"isSerializedDate":true,"string":"Wed Jan 18 2012 15:40:17 GMT+0100 (Mitteleuropäische Zeit)"},"869":{"varMapping":{"__isSmartRef__":true,"id":870},"source":"function createListItem(textString) {\n var part = lively.PartsBin.getPart(\"Rectangle\", \"PartsBin/Basic\");\n\n part.index = this.itemList.length;\n\n part.setExtent(pt(this.getExtent().x,44));\n part.applyStyle({resizeWidth: true});\n part.setFill(new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.rgb(253,253,253)},\n {offset: 1, color: Color.rgb(238,238,238)}\n ],\n 'northSouth'\n ));\n part.setBorderColor(Color.rgb(138,138,138));\n \n part.disableDragging();\n part.disableGrabbing();\n\n\n part.onTouchStart = this.touchstartCallback;\n part.onTouchMove = this.touchmoveCallback;\n part.onTouchEnd = this.touchendCallback;\n\n part.registerForEvent(\"touchstart\", part, \"onTouchStart\", false);\n part.registerForEvent(\"touchmove\", part, \"onTouchMove\", false);\n part.registerForEvent(\"touchend\", part, \"onTouchEnd\", false);\n\n var text = lively.PartsBin.getPart(\"Text\", \"PartsBin/Basic\");\n text.setFontSize(14);\n text.setTextColor(Color.rgb(47,47,47));\n text.setFontFamily(\"Helvetica, Arial, sans-serif\");\n\n text.setPosition(pt(10,10));\n text.textString = textString;\n\n text.emphasizeAll({fontWeight: 'bold'});\n text.disableHalos();\n text.ignoreEvents();\n part.addMorph(text);\n\n return part;\n}","funcProperties":{"__isSmartRef__":true,"id":871},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"870":{"this":{"__isSmartRef__":true,"id":756}},"871":{"timestamp":{"__isSmartRef__":true,"id":872},"user":"athomschke","tags":[]},"872":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:40:30 GMT+0100 (Mitteleuropäische Zeit)"},"873":{"varMapping":{"__isSmartRef__":true,"id":874},"source":"function touchstartCallback(evt) {\n var touch = evt.touches[0];\n\n this.clickPosition = pt(touch.clientX,touch.clientY);\n this.lastClickPos = this.clickPosition;\n\n return false;\n}","funcProperties":{"__isSmartRef__":true,"id":875},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"874":{"this":{"__isSmartRef__":true,"id":756}},"875":{"timestamp":{"__isSmartRef__":true,"id":876},"user":"sstamm","tags":[]},"876":{"isSerializedDate":true,"string":"Thu Jan 19 2012 11:37:36 GMT+0100 (Mitteleuropäische Zeit)"},"877":{"varMapping":{"__isSmartRef__":true,"id":878},"source":"function touchmoveCallback(evt) {\n var touch = evt.touches[0];\n \n this.lastClickPos = pt(touch.clientX,touch.clientY);\n\n return false;\n \n}","funcProperties":{"__isSmartRef__":true,"id":879},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"878":{"this":{"__isSmartRef__":true,"id":756}},"879":{"timestamp":{"__isSmartRef__":true,"id":880},"user":"sstamm","tags":[]},"880":{"isSerializedDate":true,"string":"Thu Jan 19 2012 11:34:29 GMT+0100 (Mitteleuropäische Zeit)"},"881":{"varMapping":{"__isSmartRef__":true,"id":882},"source":"function touchendCallback(evt) {\n var deltaPt = this.lastClickPos.subPt(this.clickPosition);\n var delta = deltaPt.x*deltaPt.x + deltaPt.y*deltaPt.y;\n if(delta<25) {\n //TODO: find a better way to find the related listMorph\n var listMorph = this.owner.owner;\n \n if(listMorph && listMorph.updateSelection) {\n listMorph.updateSelection(this);\n }\n }\n return false;\n}","funcProperties":{"__isSmartRef__":true,"id":883},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"882":{"this":{"__isSmartRef__":true,"id":756}},"883":{"timestamp":{"__isSmartRef__":true,"id":884},"user":"sstamm","tags":[]},"884":{"isSerializedDate":true,"string":"Fri Jan 20 2012 17:14:44 GMT+0100 (Mitteleuropäische Zeit)"},"885":{"varMapping":{"__isSmartRef__":true,"id":886},"source":"function updateSelection(newSelectedMorph) {\n var hasText = true;\n if(this.selectedMorph) {\n hasText = this.selectedMorph.submorphs[0];\n this.selectedMorph.setFill(\n new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.rgb(253,253,253)},\n {offset: 1, color: Color.rgb(238,238,238)}\n ],\n 'northSouth'\n )\n );\n if(hasText) { this.selectedMorph.submorphs[0].setTextColor(Color.rgb(47,47,47));\n }\n }\n hasText = newSelectedMorph.submorphs[0];\n\n \n if(hasText) {\n this.selection = newSelectedMorph.submorphs[0].textString;\n } else {\n this.selection = \"\";\n }\n this.selectedLineNo = newSelectedMorph.index;\n this.selectedMorph = newSelectedMorph;\n \n this.selectedMorph.setFill(\nnew lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.rgb(47,47,47)},\n {offset:0.5,color: Color.rgb(21,21,21)},\n {offset: 1, color: Color.rgb(0,0,0)}\n ],\n 'northSouth'\n ));\n \n if(hasText) {\n this.selectedMorph.submorphs[0].setTextColor(Color.rgb(222,222,222));\n }\n}","funcProperties":{"__isSmartRef__":true,"id":887},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"886":{"this":{"__isSmartRef__":true,"id":756}},"887":{"timestamp":{"__isSmartRef__":true,"id":888},"user":"sstamm","tags":[]},"888":{"isSerializedDate":true,"string":"Fri Jan 27 2012 10:29:27 GMT+0100 (Mitteleuropäische Zeit)"},"889":{"varMapping":{"__isSmartRef__":true,"id":890},"source":"function updateList(itemList) {\n //this.items = itemsList;\n this.initialize();\n if(!itemList) return\n var that = this;\n itemList.forEach(function (item) {\n that.addItem(item);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":891},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"890":{"this":{"__isSmartRef__":true,"id":756}},"891":{"timestamp":{"__isSmartRef__":true,"id":892},"user":"athomschke","tags":[]},"892":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:10:59 GMT+0100 (Mitteleuropäische Zeit)"},"893":{"varMapping":{"__isSmartRef__":true,"id":894},"source":"function setSelection() {\n console.log(\"NO\");\n}","funcProperties":{"__isSmartRef__":true,"id":895},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"894":{"this":{"__isSmartRef__":true,"id":756}},"895":{"timestamp":{"__isSmartRef__":true,"id":896},"user":"sstamm","tags":[]},"896":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:40:54 GMT+0100 (Mitteleuropäische Zeit)"},"897":{"varMapping":{"__isSmartRef__":true,"id":898},"source":"function setList(itemList) {\n return this.updateList(itemList);\n}","funcProperties":{"__isSmartRef__":true,"id":899},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"898":{"this":{"__isSmartRef__":true,"id":756}},"899":{"timestamp":{"__isSmartRef__":true,"id":900},"user":"conradcalmez","tags":[]},"900":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:55:08 GMT+0100 (Mitteleuropäische Zeit)"},"901":{"varMapping":{"__isSmartRef__":true,"id":902},"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":903},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"902":{"this":{"__isSmartRef__":true,"id":756}},"903":{"timestamp":{"__isSmartRef__":true,"id":904},"user":"athomschke","tags":[]},"904":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:01:30 GMT+0100 (Mitteleuropäische Zeit)"},"905":{"varMapping":{"__isSmartRef__":true,"id":906},"source":"function selectAddedScript(scriptName) {\n // not yet implemented\n return\n\n\n var index = this.getList().indexOf(scriptName);\n if (index !== -1) \n return this.selectAt(index);\n \n // added script not in current tag, therefore list all scripts\n this.owner.tagChooser.setTag(null);\n \n var index = this.getList().indexOf(scriptName);\n if (index !== -1) \n return this.selectAt(index);\n}","funcProperties":{"__isSmartRef__":true,"id":907},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"906":{"this":{"__isSmartRef__":true,"id":756}},"907":{"timestamp":{"__isSmartRef__":true,"id":908},"user":"athomschke","tags":[]},"908":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:01:51 GMT+0100 (Mitteleuropäische Zeit)"},"909":{"varMapping":{"__isSmartRef__":true,"id":910},"source":"function getList() {\n return this.itemList\n}","funcProperties":{"__isSmartRef__":true,"id":911},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"910":{"this":{"__isSmartRef__":true,"id":756}},"911":{"timestamp":{"__isSmartRef__":true,"id":912},"user":"athomschke","tags":[]},"912":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:12:14 GMT+0100 (Mitteleuropäische Zeit)"},"913":{"varMapping":{"__isSmartRef__":true,"id":914},"source":"function selectAt() {\n //not yet implemented\n return false\n}","funcProperties":{"__isSmartRef__":true,"id":915},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"914":{"this":{"__isSmartRef__":true,"id":756}},"915":{"timestamp":{"__isSmartRef__":true,"id":916},"user":"athomschke","tags":[]},"916":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:13:54 GMT+0100 (Mitteleuropäische Zeit)"},"917":{"submorphs":[{"__isSmartRef__":true,"id":918}],"scripts":[],"id":"13A8ACB7-B817-49D5-8D39-C30E13A6E770","shape":{"__isSmartRef__":true,"id":965},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":972},"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":973},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1002},"eventHandler":{"__isSmartRef__":true,"id":1003},"attributeConnections":[{"__isSmartRef__":true,"id":1004},{"__isSmartRef__":true,"id":2047}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"derivationIds":[127,"86FF1C90-3CC2-44B9-8DEE-1BC214D734AE","EEA7DF22-C343-4B58-A447-43BB95D5405F","9665449D-F0E4-4BCE-854B-48D19C73214E","8B65C997-34DC-4F70-A1BA-266488F1588C","CBDEE8B9-9E1C-44E5-85E6-6D85E0738D59","44F04EA0-0B18-48F5-82DE-1C400B2E7E66","B5BC05CD-9955-4638-A7C0-3A76AD1EE0B1","B01D7C41-6561-42C3-AF67-837DB8619D96","EBA19361-462E-4B18-80CC-D4DF92C36B05","ABDDDBA7-E05A-4447-B258-C60BD7693A6D","71BDB43E-1F93-4CED-A861-8D6975D779E3","619B385B-0252-4B72-97DF-FF5B379EC5CD","9BDB4F16-24BE-4E52-81C7-4F258B559112","D1C2630B-5609-4BD4-8397-69DF07DBF116","C338DCD8-0BD5-4F7A-8994-ECAD759D0219","7BB99BBD-B178-4A1E-8B5E-3ED73EC21564","42C1F44B-6798-401A-A227-B92216BD25CC","A355941F-1965-4BE6-8B58-ACF51F62CDCE","73C4647B-77A2-414D-AB19-615DA8521633","D6672BDD-1771-48D1-B342-0688070A0CDE","97393AF6-621A-432B-80FF-C64E41F953CE"],"priorExtent":{"__isSmartRef__":true,"id":2053},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":2054},"itemList":[],"_ClipMode":"hidden","selectedMorph":null,"items":[],"selectedLineNo":-1,"owner":{"__isSmartRef__":true,"id":64},"distanceToDragEvent":{"__isSmartRef__":true,"id":2055},"selection":null,"_Rotation":0,"_Scale":0.994014980014994,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2056},"__LivelyClassName__":"lively.morphic.Box","withoutLayers":["Global.TouchToMouse"]},"918":{"submorphs":[],"scripts":[],"id":"92DB7794-6A79-4DBC-A7BD-77A10B8DD3A0","shape":{"__isSmartRef__":true,"id":919},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":926},"showsHalos":false,"name":"ListItemContainer","partsBinMetaInfo":{"__isSmartRef__":true,"id":927},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":928},"eventHandler":{"__isSmartRef__":true,"id":929},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"70193F55-BD62-471E-90CE-6CF2F345BFF8","C29938AD-3221-4AB2-80BA-EBF64E5C8063","F478A91E-32FA-4527-BA77-81009843E6E7","3C2C2181-A589-45A7-B023-FDED3CDFE499","45EE0951-5C82-4C8D-808E-E69D6E6AFFC8","2964BC5A-EAE3-475B-95AC-0E9D3024D1BF","74F5FD7F-E5EA-4BE8-964D-7ABBFAFCB5D5","D3CBEE5F-FB39-4E1F-A1D8-CD60CAFAF2F9","1852D238-B9F1-4250-BC2C-F43F9855457A","EEA1E0C3-5567-4B87-B2FE-DDF9A527434B","6543C5C6-6315-484B-A637-A47760C47EF2","30CF65CD-68C9-4CCF-A1B5-9510B5396635","02CCA7C2-020A-4720-82AB-5160BD88FCCF","0FADBFB0-8834-43DA-9207-498C3E741719","AD3B918D-FFC1-4F81-A754-0AFD413C9864","929DF315-3DBC-494A-8890-819888AC05AD","A82888AB-46E3-4A23-B14B-411F44D6860B","67B34C15-D693-48E9-ADAD-BF5898005CE4","D7C809AD-2975-4FCA-ADC4-9318CFDF3149","5B08FCA5-D6BA-4CCC-AB3E-41C28CB2C657","6F8E8EEB-C56B-4E32-B1A9-CC2DD8EC9A25"],"owner":{"__isSmartRef__":true,"id":917},"isBeingDragged":false,"priorExtent":{"__isSmartRef__":true,"id":930},"layout":{"__isSmartRef__":true,"id":931},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":932},"__LivelyClassName__":"lively.morphic.Box"},"919":{"position":{"__isSmartRef__":true,"id":920},"_Extent":{"__isSmartRef__":true,"id":921},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":922},"_Fill":{"__isSmartRef__":true,"id":923},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":924},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":925},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"920":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"921":{"x":177,"y":90,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"922":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"923":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"924":{"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"},"925":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"926":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"927":{"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"},"928":{"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"},"929":{"morph":{"__isSmartRef__":true,"id":918},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"930":{"x":177,"y":90,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"931":{"resizeWidth":true,"adjustForNewBounds":true},"932":{"onTouchStart":{"__isSmartRef__":true,"id":933},"onTouchMove":{"__isSmartRef__":true,"id":941},"onTouchEnd":{"__isSmartRef__":true,"id":949},"stayInBounds":{"__isSmartRef__":true,"id":957},"isInBounds":{"__isSmartRef__":true,"id":961}},"933":{"varMapping":{"__isSmartRef__":true,"id":934},"source":"function onTouchStart(evt) {\n evt.stop();\n\n var touch = evt.touches[0];\n\n if(touch) {\n touch.originalDragOffset = touch.clientY;\n touch.originalMenuOffset = this.getPosition().y;\n \n var heightMenu = this.owner.itemList.length*43;\n var heightContainer = this.owner.getExtent().y;\n this.maxScroll = heightMenu - heightContainer;\n\n this.isTouched = true;\n this.velocity = 0;\n touch.lastTouch = touch.clientY;\n touch.lastUpdate = new Date().valueOf();\n }\n evt.stop();\n return true;\n\n \n}","funcProperties":{"__isSmartRef__":true,"id":939},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"934":{"this":{"__isSmartRef__":true,"id":918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":935}},"935":{"$super":{"__isSmartRef__":true,"id":936}},"936":{"varMapping":{"__isSmartRef__":true,"id":937},"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":938},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"937":{"obj":{"__isSmartRef__":true,"id":918},"name":"onTouchStart"},"938":{},"939":{"timestamp":{"__isSmartRef__":true,"id":940},"user":"athomschke","tags":[]},"940":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:42:46 GMT+0100 (Mitteleuropäische Zeit)"},"941":{"varMapping":{"__isSmartRef__":true,"id":942},"source":"function onTouchMove(evt) {\n evt.stop();\n\n var touch = evt.touches[0];\n \n if(touch && touch.originalDragOffset) {\n var delta = touch.clientY - touch.originalDragOffset;\n this.setPosition(pt(0,touch.originalMenuOffset+delta));\n\n if(!this.isInBounds()) {\n var yPos = Math.min(0,Math.max(-this.maxScroll, this.getPosition().y));\n delta = this.getPosition().y-yPos;\n this.moveBy(pt(0,-delta/2));\n }\n\n var positionDelta = touch.lastTouch-touch.clientY;\n var now = new Date().valueOf();\n var timeDelta = now - touch.lastUpdate;\n\n touch.lastTouch = touch.clientY;\n touch.lastUpdate = now;\n\n this.velocity = positionDelta*(-10/timeDelta);\n \n\n }\n evt.stop();\n return true;\n\n}","funcProperties":{"__isSmartRef__":true,"id":947},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"942":{"this":{"__isSmartRef__":true,"id":918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":943}},"943":{"$super":{"__isSmartRef__":true,"id":944}},"944":{"varMapping":{"__isSmartRef__":true,"id":945},"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":946},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"945":{"obj":{"__isSmartRef__":true,"id":918},"name":"onTouchMove"},"946":{},"947":{"timestamp":{"__isSmartRef__":true,"id":948},"user":"athomschke","tags":[]},"948":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:42:38 GMT+0100 (Mitteleuropäische Zeit)"},"949":{"varMapping":{"__isSmartRef__":true,"id":950},"source":"function onTouchEnd(evt) {\n var lastUpdate = new Date().valueOf();\n this.isTouched = false;\n var that = this;\n\n var flickingFct = function() {\n var now = new Date().valueOf();\n var delta = now - lastUpdate;\n var velo;\n that.velocity *= Math.pow(0.99, delta);\n that.moveBy(pt(0,that.velocity));\n that.stayInBounds();\n velo = that.velocity;\n \n lastUpdate = now;\n if((velo*velo>0.05 || !that.isInBounds()) && !that.isTouched) {\n window.setTimeout(flickingFct,10);\n }\n };\n\n window.setTimeout(flickingFct,10);\n evt.stop();\n\n}","funcProperties":{"__isSmartRef__":true,"id":955},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"950":{"this":{"__isSmartRef__":true,"id":918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":951}},"951":{"$super":{"__isSmartRef__":true,"id":952}},"952":{"varMapping":{"__isSmartRef__":true,"id":953},"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":954},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"953":{"obj":{"__isSmartRef__":true,"id":918},"name":"onTouchEnd"},"954":{},"955":{"timestamp":{"__isSmartRef__":true,"id":956},"user":"athomschke","tags":[]},"956":{"isSerializedDate":true,"string":"Thu Feb 09 2012 17:42:30 GMT+0100 (Mitteleuropäische Zeit)"},"957":{"varMapping":{"__isSmartRef__":true,"id":958},"source":"function stayInBounds() {\n var yPos = Math.min(0,Math.max(-this.maxScroll, this.getPosition().y));\n var delta = this.getPosition().y-yPos;\n\n if(this.velocity*delta > 0) {\n // out of bounds and velocity is in wrong direction\n this.velocity -= delta/15;\n } else if(delta!=0) {\n this.velocity = -delta/15;\n }\n// this.setPosition(pt(0,yPos));\n\n}","funcProperties":{"__isSmartRef__":true,"id":959},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"958":{"this":{"__isSmartRef__":true,"id":918}},"959":{"timestamp":{"__isSmartRef__":true,"id":960},"user":"sstamm","tags":[]},"960":{"isSerializedDate":true,"string":"Tue Jan 31 2012 11:38:39 GMT+0100 (Mitteleuropäische Zeit)"},"961":{"varMapping":{"__isSmartRef__":true,"id":962},"source":"function isInBounds() {\n var yPos = Math.min(0,Math.max(-this.maxScroll, this.getPosition().y));\n var delta = this.getPosition().y-yPos;\n\n return Math.abs(delta)<=0.02;\n\n}","funcProperties":{"__isSmartRef__":true,"id":963},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"962":{"this":{"__isSmartRef__":true,"id":918}},"963":{"timestamp":{"__isSmartRef__":true,"id":964},"user":"sstamm","tags":[]},"964":{"isSerializedDate":true,"string":"Tue Jan 31 2012 11:38:48 GMT+0100 (Mitteleuropäische Zeit)"},"965":{"position":{"__isSmartRef__":true,"id":966},"_Extent":{"__isSmartRef__":true,"id":967},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":968},"_Fill":{"__isSmartRef__":true,"id":969},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":970},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":971},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"966":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"967":{"x":177,"y":107,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"968":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"969":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"970":{"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"},"971":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"972":{"x":10.15912117262181,"y":409.8118386862913,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"973":{"partsSpaceName":"PartsBin/iPad Widgets/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A morph which behaves like an IPad list. Use initialize() to clear and addItem() to ... well ... add items","migrationLevel":4,"partName":"TouchList","changes":[{"__isSmartRef__":true,"id":974},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":984},{"__isSmartRef__":true,"id":986},{"__isSmartRef__":true,"id":988},{"__isSmartRef__":true,"id":990},{"__isSmartRef__":true,"id":992},{"__isSmartRef__":true,"id":994},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":998},{"__isSmartRef__":true,"id":1000}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"974":{"date":{"__isSmartRef__":true,"id":975},"author":"athomschke","message":"removed connectors","id":"2A3B787D-2040-48CB-B2BE-DCB454F131D9"},"975":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:21:24 GMT+0100 (Mitteleuropäische Zeit)"},"976":{"date":{"__isSmartRef__":true,"id":977},"author":"athomschke","message":"convenience: selectAt(int)","id":"95BE3986-850B-423D-ACFA-2E7F7A0AE6B7"},"977":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:20:49 GMT+0100 (Mitteleuropäische Zeit)"},"978":{"date":{"__isSmartRef__":true,"id":979},"author":"athomschke","message":"when updateList is called without a parameter, the List is reset (convenience)","id":"48CDE5D5-4D4E-47D2-A142-6DEE00CADBD2"},"979":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:09:54 GMT+0100 (Mitteleuropäische Zeit)"},"980":{"date":{"__isSmartRef__":true,"id":981},"author":"conradcalmez","message":"added setList convenience method","id":"6347240A-F61E-44ED-82FA-15047F8B547D"},"981":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:55:45 GMT+0100 (Mitteleuropäische Zeit)"},"982":{"date":{"__isSmartRef__":true,"id":983},"author":"sstamm","message":"added caching to itemListMorph onmove","id":"441999A4-0272-48BF-B0E8-0F38B9B540AC"},"983":{"isSerializedDate":true,"string":"Tue Jan 31 2012 11:44:34 GMT+0100 (Mitteleuropäische Zeit)"},"984":{"date":{"__isSmartRef__":true,"id":985},"author":"sstamm","message":"disabled halos on the text morph","id":"9EAE8CAF-9C94-41BE-B398-D3D688298B13"},"985":{"isSerializedDate":true,"string":"Fri Jan 27 2012 16:48:12 GMT+0100 (Mitteleuropäische Zeit)"},"986":{"date":{"__isSmartRef__":true,"id":987},"author":"sstamm","message":"","id":"A26BF7D0-A1D7-46E6-9AF1-47338619CD17"},"987":{"isSerializedDate":true,"string":"Fri Jan 27 2012 16:02:09 GMT+0100 (Mitteleuropäische Zeit)"},"988":{"date":{"__isSmartRef__":true,"id":989},"author":"sstamm","message":"fixed bug when deleting the text morph on the iPad","id":"C93A96ED-F8E8-44F7-A454-D664753C5466"},"989":{"isSerializedDate":true,"string":"Fri Jan 27 2012 10:30:26 GMT+0100 (Mitteleuropäische Zeit)"},"990":{"date":{"__isSmartRef__":true,"id":991},"author":"sstamm","message":"initial commit","id":"767E9E7C-11E5-4BEF-A4B2-3668C46D0969"},"991":{"isSerializedDate":true,"string":"Tue Jan 24 2012 19:00:20 GMT+0100 (Mitteleuropäische Zeit)"},"992":{"date":{"__isSmartRef__":true,"id":993},"author":"sstamm","message":"added updateListMethod","id":"111B62E3-0972-481F-BECB-26B8976BE918"},"993":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:34:53 GMT+0100 (Mitteleuropäische Zeit)"},"994":{"date":{"__isSmartRef__":true,"id":995},"author":"sstamm","message":"we won't implement setSelection","id":"122879B0-1530-413F-A4A6-8EF04FBB4B52"},"995":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:42:39 GMT+0100 (Mitteleuropäische Zeit)"},"996":{"date":{"__isSmartRef__":true,"id":997},"author":"sstamm","message":"","id":"DFC5B2E7-2E6B-425A-B10A-52B615C3A635"},"997":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:44:21 GMT+0100 (Mitteleuropäische Zeit)"},"998":{"date":{"__isSmartRef__":true,"id":999},"author":"sstamm","message":"","id":"56852062-4668-4A1A-ACB3-BCF641C8B4F4"},"999":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:56:37 GMT+0100 (Mitteleuropäische Zeit)"},"1000":{"date":{"__isSmartRef__":true,"id":1001},"author":"athomschke","message":"convenience method getList()","id":"2F549176-1E83-42B8-9A12-C310581B0B4B"},"1001":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:13:08 GMT+0100 (Mitteleuropäische Zeit)"},"1002":{"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"},"1003":{"morph":{"__isSmartRef__":true,"id":917},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1004":{"sourceObj":{"__isSmartRef__":true,"id":917},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":1005},"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":2043},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2044},"__LivelyClassName__":"AttributeConnection"},"1005":{"submorphs":[{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":1021},{"__isSmartRef__":true,"id":1037},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1124},{"__isSmartRef__":true,"id":1171},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1313},{"__isSmartRef__":true,"id":1417},{"__isSmartRef__":true,"id":1432},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1518},{"__isSmartRef__":true,"id":1587}],"scripts":[],"id":"23963089-9C5E-48B2-ADEA-AE394D7B304C","shape":{"__isSmartRef__":true,"id":1656},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":1663},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1666},"eventHandler":{"__isSmartRef__":true,"id":1667},"priorExtent":{"__isSmartRef__":true,"id":1668},"layout":{"__isSmartRef__":true,"id":1669},"scriptPane":{"__isSmartRef__":true,"id":1218},"scriptList":null,"morphSelector":{"__isSmartRef__":true,"id":1313},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":1235},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":1670},"tagChooser":{"__isSmartRef__":true,"id":1447},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","300C1089-F1C0-47FD-AF33-013210E9B444","62015070-74FA-4DC9-B8EA-DDA6DAE25A7C","533C04BA-3B99-415B-B1DD-FB63237609CC"],"_Position":{"__isSmartRef__":true,"id":1671},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":1672},"target":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1942},"__LivelyClassName__":"lively.morphic.Box"},"1006":{"submorphs":[],"scripts":[],"id":"0E2427EE-BC4F-463C-920F-DD480CAFB529","shape":{"__isSmartRef__":true,"id":1007},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1013},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1010},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1014},"textChunks":[{"__isSmartRef__":true,"id":1015}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1017},"owner":{"__isSmartRef__":true,"id":1005},"renderContextTable":{"__isSmartRef__":true,"id":1018},"eventHandler":{"__isSmartRef__":true,"id":1019},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1020},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":18,"derivationIds":[208,"84371013-3F15-4B59-B0D8-A386A564BC63","C9475579-3711-4CE9-B46B-C7837788123B","836375B6-9661-48D5-8AAD-FBB39DCB290B","C2CA711A-5224-494D-8821-BE093FA8038F","577626FD-800E-4C25-A346-8234413CB807","5B351237-8574-4194-925B-8F61CC302BBA","783988F3-3BD3-479E-9712-A62EA4C163C8","CDC28C95-605F-473C-959C-BA6EF2CAA347"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1007":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1008},"_Extent":{"__isSmartRef__":true,"id":1009},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1010},"renderContextTable":{"__isSmartRef__":true,"id":1011},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1012},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1008":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1009":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1010":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1011":{"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"},"1012":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1013":{"x":9.999999999999858,"y":45.97603597600572,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1014":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1015":{"style":{"__isSmartRef__":true,"id":1016},"morph":{"__isSmartRef__":true,"id":1006},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1006},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1016":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1017":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1018":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1019":{"morph":{"__isSmartRef__":true,"id":1006},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1020":{"x":52.959899799649435,"y":-0.2486212421734706,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1021":{"submorphs":[],"scripts":[],"id":"B6ACDBB6-FC9B-4F08-B268-6EF3292FD908","shape":{"__isSmartRef__":true,"id":1022},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1028},"_MaxTextWidth":124.10506681670552,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1025},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorConnectionsText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1029},"textChunks":[{"__isSmartRef__":true,"id":1030}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[11,11],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1032},"owner":{"__isSmartRef__":true,"id":1005},"layout":{"__isSmartRef__":true,"id":1033},"renderContextTable":{"__isSmartRef__":true,"id":1034},"eventHandler":{"__isSmartRef__":true,"id":1035},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":124.10506681670552,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1036},"previousSelection":[0,11],"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":20,"derivationIds":[210,"1A2D33C5-4B3D-4FFA-A766-3AD74EE26110","A15D7C4E-12AA-4769-A475-71017CB53C29","38C59A0D-663B-457A-873F-CC1717965411","55E7CA7E-9617-4C5E-9227-240F3BB0DCD8","8AEB5BE1-8469-41AD-9029-CE2811F6C3B5","5B20225A-37AD-49A8-A02C-7AFC6CB40870","13ABE889-D045-4E47-AAE1-442B418ECE70","EF8EFDC6-8D46-44B0-AE0B-C5A2C548885B"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1022":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1023},"_Extent":{"__isSmartRef__":true,"id":1024},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1025},"_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1026},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1027},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1023":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1024":{"x":124.10506681670552,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1025":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1026":{"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"},"1027":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1028":{"x":9.005985019985019,"y":394.92973867364134,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1029":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1030":{"style":{"__isSmartRef__":true,"id":1031},"morph":{"__isSmartRef__":true,"id":1021},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1021},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1031":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontSize":"9","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1032":{"x":124.10506681670552,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1033":{"moveVertical":true},"1034":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1035":{"morph":{"__isSmartRef__":true,"id":1021},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1036":{"x":89.20222664301662,"y":-11.233009936190285,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1037":{"submorphs":[{"__isSmartRef__":true,"id":1038}],"scripts":[],"id":"B18D3A28-AA55-409A-9AFD-AC2F75D6FCA0","shape":{"__isSmartRef__":true,"id":1055},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1061},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1062},"label":{"__isSmartRef__":true,"id":1038},"attributeConnections":[{"__isSmartRef__":true,"id":1063}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1065},"name":"ObjectEditorAddConnectionButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1066},"renderContextTable":{"__isSmartRef__":true,"id":1067},"priorExtent":{"__isSmartRef__":true,"id":1068},"owner":{"__isSmartRef__":true,"id":1005},"eventHandler":{"__isSmartRef__":true,"id":1069},"layout":{"__isSmartRef__":true,"id":1070},"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1071},"isCopyMorphRef":true,"morphRefId":21,"derivationIds":[211,"3037655C-DA7B-44EA-BA12-F4079688C953","75A1CB74-1CC4-4818-9C72-5ABDB57E856B","2500B5DB-7C3D-4C95-B0A6-239C5876AD50","1E8E75D5-28A5-4303-9DD4-95810FC25C89","23FCA415-364D-4EB3-BEF7-235AA7301DC1","531EDFAE-C7E4-4EC3-9958-7992B2A5A14F","1D401180-4930-48DF-AB5E-CEF7870965B0","C320964F-4469-4D8A-9F02-754FB88A0818"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1072},"__LivelyClassName__":"lively.morphic.Button"},"1038":{"submorphs":[],"scripts":[],"id":"595D822B-B0C7-4516-B833-F7F72695D104","shape":{"__isSmartRef__":true,"id":1039},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1045},"textColor":{"__isSmartRef__":true,"id":1042},"owner":{"__isSmartRef__":true,"id":1037},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1046}],"padding":{"__isSmartRef__":true,"id":1048},"_Padding":{"__isSmartRef__":true,"id":1049},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1050},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":1051},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1052},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[212,"28CD4A90-F73B-43CD-B1C7-035C4B278AEA","01C38CAD-30FC-4DE4-AC0D-E4C7B786073D","526B86BC-10CC-449C-A3CD-601BF36EECCD","41ACFD86-FC52-4FF2-8E87-B6C3542C93F1","B47DD984-4390-4773-87AC-80F4AEE1677A","F9CCC118-66E6-45E3-BDEB-CE34E0B20A8C","6E9E0FFE-A756-4252-80B4-4863A3CCA9CC","CEB9A261-7EB0-4D3E-A386-37261E895E6A"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1053},"layout":{"__isSmartRef__":true,"id":1054},"_FontSize":16,"__LivelyClassName__":"lively.morphic.Text"},"1039":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1040},"_Extent":{"__isSmartRef__":true,"id":1041},"_BorderColor":{"__isSmartRef__":true,"id":1042},"renderContextTable":{"__isSmartRef__":true,"id":1043},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1044},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1040":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1041":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1042":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1043":{},"1044":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1045":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1046":{"style":{"__isSmartRef__":true,"id":1047},"chunkOwner":{"__isSmartRef__":true,"id":1038},"storedString":"+","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1047":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1048":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1049":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1050":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1051":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1052":{"morph":{"__isSmartRef__":true,"id":1038},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1053":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1054":{"centeredVertical":true,"centeredHorizontal":true},"1055":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1056},"_Extent":{"__isSmartRef__":true,"id":1057},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1058},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":1059},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1060},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1056":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1057":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1058":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1059":{},"1060":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1061":{"x":130,"y":453.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1062":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1063":{"sourceObj":{"__isSmartRef__":true,"id":1037},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1005},"targetMethodName":"newConnection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1064},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1064":{"source":{"__isSmartRef__":true,"id":1037},"target":{"__isSmartRef__":true,"id":1005}},"1065":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1066":{"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"},"1067":{"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"},"1068":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1069":{"morph":{"__isSmartRef__":true,"id":1037},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1070":{"moveVertical":true,"adjustForNewBounds":true,"centeredVertical":true},"1071":{"x":33.47869739544274,"y":-11.010525048834154,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1072":{"onrestore":{"__isSmartRef__":true,"id":1073}},"1073":{"varMapping":{"__isSmartRef__":true,"id":1074},"source":"function onrestore() {\nthis.beToolbarButton(\"+\");\n this.setExtent(pt(20,20))\n this.setLabel(\"+\")\n this.adjustForNewBounds()\n}","funcProperties":{"__isSmartRef__":true,"id":1079},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1074":{"this":{"__isSmartRef__":true,"id":1037},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1075}},"1075":{"$super":{"__isSmartRef__":true,"id":1076}},"1076":{"varMapping":{"__isSmartRef__":true,"id":1077},"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":1078},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1077":{"obj":{"__isSmartRef__":true,"id":1037},"name":"onrestore"},"1078":{},"1079":{"timestamp":{"__isSmartRef__":true,"id":1080},"user":"athomschke","tags":[]},"1080":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:42:36 GMT+0100 (Mitteleuropäische Zeit)"},"1081":{"submorphs":[{"__isSmartRef__":true,"id":1082}],"scripts":[],"id":"3DC74E72-DE8C-4F9D-9D5E-B1E836705D12","shape":{"__isSmartRef__":true,"id":1099},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1104},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1105},"label":{"__isSmartRef__":true,"id":1082},"attributeConnections":[{"__isSmartRef__":true,"id":1106}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1108},"name":"ObjectEditorAddScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1109},"renderContextTable":{"__isSmartRef__":true,"id":1110},"owner":{"__isSmartRef__":true,"id":1005},"priorExtent":{"__isSmartRef__":true,"id":1111},"eventHandler":{"__isSmartRef__":true,"id":1112},"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1113},"isCopyMorphRef":true,"morphRefId":22,"derivationIds":[213,"67D577AB-1BB3-4252-B0D4-99A23697F70A","A2FCBD72-EE0A-4D04-8A92-348AE43B41D7","A2345795-D086-4B81-84AF-2DEB8C0C2FFA","0A260566-FCDD-4DCF-8E29-9A08EACF6825","9AD1B434-5F24-4772-B3D6-D23B387A75A9","D9D17234-D6D8-4D62-8A37-10BFFA8DF26C","55F66B77-3FD3-4DCD-9A99-87E33049A0B2","647402F3-D1B4-47A9-AE45-B7734493CC45"],"_Rotation":0,"_Scale":1,"layout":{"__isSmartRef__":true,"id":1114},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1115},"__LivelyClassName__":"lively.morphic.Button"},"1082":{"submorphs":[],"scripts":[],"id":"B541C134-7322-4FE3-A544-6E08652C546A","shape":{"__isSmartRef__":true,"id":1083},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1089},"textColor":{"__isSmartRef__":true,"id":1086},"owner":{"__isSmartRef__":true,"id":1081},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1090}],"padding":{"__isSmartRef__":true,"id":1092},"_Padding":{"__isSmartRef__":true,"id":1093},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1094},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":1095},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1096},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[214,"523747A8-85D2-4FA2-9C4A-C51786457E22","95516A91-5268-4C7E-A2E0-40B45D2EE1FA","FFE672EF-5731-4472-B296-7F6C7CA559FC","E2EECCEE-F80F-4AFD-BF9E-95BB6A9A1C93","355346D2-A7A5-4445-8845-6B44FDC07A7B","72CDCAB4-B331-4071-8B78-C112D9FE25FE","0C5000D6-D6AB-4569-A059-2A461A00F751","1F0AF0F2-61AF-4AD1-B301-4DD60A3ECED9"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1097},"layout":{"__isSmartRef__":true,"id":1098},"_FontSize":16,"__LivelyClassName__":"lively.morphic.Text"},"1083":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1084},"_Extent":{"__isSmartRef__":true,"id":1085},"_BorderColor":{"__isSmartRef__":true,"id":1086},"renderContextTable":{"__isSmartRef__":true,"id":1087},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1088},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1084":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1085":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1086":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1087":{},"1088":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1089":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1090":{"style":{"__isSmartRef__":true,"id":1091},"chunkOwner":{"__isSmartRef__":true,"id":1082},"storedString":"+","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1091":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1092":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1093":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1094":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1095":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1096":{"morph":{"__isSmartRef__":true,"id":1082},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1097":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1098":{"centeredVertical":true,"centeredHorizontal":true},"1099":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1100},"_Extent":{"__isSmartRef__":true,"id":1101},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1058},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":1102},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1103},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1100":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1101":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1102":{},"1103":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1104":{"x":130,"y":271.306266307218,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1105":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1106":{"sourceObj":{"__isSmartRef__":true,"id":1081},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1005},"targetMethodName":"newScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1107},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1107":{"source":{"__isSmartRef__":true,"id":1081},"target":{"__isSmartRef__":true,"id":1005}},"1108":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1109":{"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"},"1110":{"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"},"1111":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1112":{"morph":{"__isSmartRef__":true,"id":1081},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1113":{"x":29.478697395442737,"y":-26.32481162283952,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1114":{"adjustForNewBounds":true,"centeredVertical":true},"1115":{"onrestore":{"__isSmartRef__":true,"id":1116}},"1116":{"varMapping":{"__isSmartRef__":true,"id":1117},"source":"function onrestore() {\n this.beToolbarButton(\"+\");\n this.setExtent(pt(20,20))\n this.setLabel(\"+\")\n this.adjustForNewBounds()\n}","funcProperties":{"__isSmartRef__":true,"id":1122},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1117":{"this":{"__isSmartRef__":true,"id":1081},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1118}},"1118":{"$super":{"__isSmartRef__":true,"id":1119}},"1119":{"varMapping":{"__isSmartRef__":true,"id":1120},"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":1121},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1120":{"obj":{"__isSmartRef__":true,"id":1081},"name":"onrestore"},"1121":{},"1122":{"timestamp":{"__isSmartRef__":true,"id":1123},"user":"athomschke","tags":[]},"1123":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:41:33 GMT+0100 (Mitteleuropäische Zeit)"},"1124":{"submorphs":[{"__isSmartRef__":true,"id":1125}],"scripts":[],"id":"59EC0FCC-2A85-4CC4-8703-F6B1DDD7CA8A","shape":{"__isSmartRef__":true,"id":1142},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1147},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1148},"label":{"__isSmartRef__":true,"id":1125},"attributeConnections":[{"__isSmartRef__":true,"id":1149}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1151},"name":"ObjectEditorRemoveConnectionButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1152},"renderContextTable":{"__isSmartRef__":true,"id":1153},"priorExtent":{"__isSmartRef__":true,"id":1154},"owner":{"__isSmartRef__":true,"id":1005},"eventHandler":{"__isSmartRef__":true,"id":1155},"layout":{"__isSmartRef__":true,"id":1156},"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":1005},"distanceToDragEvent":{"__isSmartRef__":true,"id":1157},"isCopyMorphRef":true,"morphRefId":23,"derivationIds":[215,"2AC1A4EE-A289-4C26-8496-1926AA216B30","F72C26A6-F58A-4E0C-A5B9-CBED184D4235","64E9140E-E314-40CA-B555-063FBF8FA5DD","90DF0634-0570-4E03-8B56-6A649D6B6BA3","D9CC390A-090C-446B-8C0F-B619BA2D22B3","BCCA8909-8589-4B85-8A8C-00B690FCADFA","67F2CC6D-D03F-4AD0-9B1C-AC318014365E","D423316E-B195-4D4F-8029-E3CD46590A6D"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1158},"__LivelyClassName__":"lively.morphic.Button"},"1125":{"submorphs":[],"scripts":[],"id":"D4EE19F0-6172-4F38-BCA8-6B31CA49A2A5","shape":{"__isSmartRef__":true,"id":1126},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1132},"textColor":{"__isSmartRef__":true,"id":1129},"owner":{"__isSmartRef__":true,"id":1124},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1133}],"padding":{"__isSmartRef__":true,"id":1135},"_Padding":{"__isSmartRef__":true,"id":1136},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1137},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":1138},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1139},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[216,"18CA5E17-24C7-4077-93FE-3EC54B94EEAF","EAEC20CA-0440-4B49-9BB9-03621DB7DEB2","B816073C-6992-45C6-8D86-2449217C1A8B","FF0CAA98-E5CF-4678-9D8E-96F02BBDE605","A7946D5B-4E92-449B-83D4-EDF8C30E257E","88CC62D3-9943-4B0E-8AD1-F64AD45691D3","EA1DE4EE-1029-4FD1-87A8-5DD394302B8F","B457FE42-96C3-4E0F-B508-66752485718F"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1140},"layout":{"__isSmartRef__":true,"id":1141},"_FontSize":16,"__LivelyClassName__":"lively.morphic.Text"},"1126":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1127},"_Extent":{"__isSmartRef__":true,"id":1128},"_BorderColor":{"__isSmartRef__":true,"id":1129},"renderContextTable":{"__isSmartRef__":true,"id":1130},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1131},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1127":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1128":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1129":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1130":{},"1131":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1132":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1133":{"style":{"__isSmartRef__":true,"id":1134},"chunkOwner":{"__isSmartRef__":true,"id":1125},"storedString":"-","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1134":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1135":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1136":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1137":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1138":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1139":{"morph":{"__isSmartRef__":true,"id":1125},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1140":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1141":{"centeredVertical":true,"centeredHorizontal":true},"1142":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1143},"_Extent":{"__isSmartRef__":true,"id":1144},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1058},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":1145},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1146},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1143":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1144":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1145":{},"1146":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1147":{"x":160,"y":453.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1148":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1149":{"sourceObj":{"__isSmartRef__":true,"id":1124},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1124},"targetMethodName":"disconnectSelectedConnection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1150},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1150":{"source":{"__isSmartRef__":true,"id":1124},"target":{"__isSmartRef__":true,"id":1124}},"1151":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1152":{"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"},"1153":{"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"},"1154":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1155":{"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1156":{"moveVertical":true,"adjustForNewBounds":true,"centeredVertical":true},"1157":{"x":32.35839679439101,"y":-17.090725449535284,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1158":{"onrestore":{"__isSmartRef__":true,"id":1159},"disconnectSelectedConnection":{"__isSmartRef__":true,"id":1167}},"1159":{"varMapping":{"__isSmartRef__":true,"id":1160},"source":"function onrestore() {\nthis.beToolbarButton(\"-\");\n this.setExtent(pt(20,20))\n this.setLabel(\"-\")\n this.adjustForNewBounds()\n}","funcProperties":{"__isSmartRef__":true,"id":1165},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1160":{"this":{"__isSmartRef__":true,"id":1124},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1161}},"1161":{"$super":{"__isSmartRef__":true,"id":1162}},"1162":{"varMapping":{"__isSmartRef__":true,"id":1163},"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":1164},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1163":{"obj":{"__isSmartRef__":true,"id":1124},"name":"onrestore"},"1164":{},"1165":{"timestamp":{"__isSmartRef__":true,"id":1166},"user":"athomschke","tags":[]},"1166":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:42:14 GMT+0100 (Mitteleuropäische Zeit)"},"1167":{"varMapping":{"__isSmartRef__":true,"id":1168},"source":"function disconnectSelectedConnection() {\n\n var editor = this.objectEditorPane;\n var selection = editor.connectionList.selection;\n\n if (!editor.target || editor.connectionList.getList().size() < 2) \n return;\n\n var disconnectConnection = function (confirmed) {\n if (!confirmed) return;\n\n var listIndex = editor.target.attributeConnections.indexOf(selection[1]);\n if (selection && (typeof selection !== \"string\") && listIndex > -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":1169},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1168":{"this":{"__isSmartRef__":true,"id":1124}},"1169":{"timestamp":{"__isSmartRef__":true,"id":1170},"user":"lauritz","categories":[]},"1170":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (Mitteleuropäische Zeit)"},"1171":{"submorphs":[{"__isSmartRef__":true,"id":1172}],"scripts":[],"id":"6AA941B3-8D55-41FB-BD87-89A9D2ADA179","shape":{"__isSmartRef__":true,"id":1189},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1194},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1195},"label":{"__isSmartRef__":true,"id":1172},"attributeConnections":[{"__isSmartRef__":true,"id":1196}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1198},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1199},"renderContextTable":{"__isSmartRef__":true,"id":1200},"priorExtent":{"__isSmartRef__":true,"id":1201},"owner":{"__isSmartRef__":true,"id":1005},"eventHandler":{"__isSmartRef__":true,"id":1202},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":1005},"distanceToDragEvent":{"__isSmartRef__":true,"id":1203},"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","3B06A5D6-16D3-4AF4-BD30-04F99A1A265F","C81819B4-11B6-4CDD-9D1C-C8B26383089A","8D6FA7FA-666E-44E1-B0B2-AD1F9E98DEFA"],"_Rotation":0,"_Scale":1,"layout":{"__isSmartRef__":true,"id":1204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1205},"__LivelyClassName__":"lively.morphic.Button"},"1172":{"submorphs":[],"scripts":[],"id":"68FA1B71-F13B-4D5E-A686-207AA0007C42","shape":{"__isSmartRef__":true,"id":1173},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":20,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1179},"textColor":{"__isSmartRef__":true,"id":1176},"owner":{"__isSmartRef__":true,"id":1171},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1180}],"padding":{"__isSmartRef__":true,"id":1182},"_Padding":{"__isSmartRef__":true,"id":1183},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1184},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":1185},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1186},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":20,"_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","726F0E0D-80A3-4B40-BB95-4F6DF690A7AB","709E146B-D859-493D-B1FA-E2A13DA7B3C7","CC8B505C-539E-47D9-A413-A1C278435399"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1187},"layout":{"__isSmartRef__":true,"id":1188},"_FontSize":16,"__LivelyClassName__":"lively.morphic.Text"},"1173":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1174},"_Extent":{"__isSmartRef__":true,"id":1175},"_BorderColor":{"__isSmartRef__":true,"id":1176},"renderContextTable":{"__isSmartRef__":true,"id":1177},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1178},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1174":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1175":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1176":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1177":{},"1178":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1180":{"style":{"__isSmartRef__":true,"id":1181},"chunkOwner":{"__isSmartRef__":true,"id":1172},"storedString":"-","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1181":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1182":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1183":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1184":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1185":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1186":{"morph":{"__isSmartRef__":true,"id":1172},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1187":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1188":{"centeredVertical":true,"centeredHorizontal":true},"1189":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1190},"_Extent":{"__isSmartRef__":true,"id":1191},"_Fill":null,"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1058},"_BorderRadius":3,"renderContextTable":{"__isSmartRef__":true,"id":1192},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1193},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1190":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1191":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1192":{},"1193":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1194":{"x":160,"y":271.306266307218,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1195":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1196":{"sourceObj":{"__isSmartRef__":true,"id":1171},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1171},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1197},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1197":{"source":{"__isSmartRef__":true,"id":1171},"target":{"__isSmartRef__":true,"id":1171}},"1198":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1199":{"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"},"1200":{"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"},"1201":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1202":{"morph":{"__isSmartRef__":true,"id":1171},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1203":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1204":{"adjustForNewBounds":true,"centeredVertical":true},"1205":{"onrestore":{"__isSmartRef__":true,"id":1206},"deleteSelectedScript":{"__isSmartRef__":true,"id":1214}},"1206":{"varMapping":{"__isSmartRef__":true,"id":1207},"source":"function onrestore() {\nthis.beToolbarButton(\"-\");\n this.setExtent(pt(20,20))\n this.setLabel(\"-\")\n this.adjustForNewBounds()\n}","funcProperties":{"__isSmartRef__":true,"id":1212},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1207":{"this":{"__isSmartRef__":true,"id":1171},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1208}},"1208":{"$super":{"__isSmartRef__":true,"id":1209}},"1209":{"varMapping":{"__isSmartRef__":true,"id":1210},"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":1211},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1210":{"obj":{"__isSmartRef__":true,"id":1171},"name":"onrestore"},"1211":{},"1212":{"timestamp":{"__isSmartRef__":true,"id":1213},"user":"athomschke","tags":[]},"1213":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:42:46 GMT+0100 (Mitteleuropäische Zeit)"},"1214":{"varMapping":{"__isSmartRef__":true,"id":1215},"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":1216},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1215":{"this":{"__isSmartRef__":true,"id":1171}},"1216":{"timestamp":{"__isSmartRef__":true,"id":1217},"user":"lauritz"},"1217":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (Mitteleuropäische Zeit)"},"1218":{"submorphs":[],"scripts":[],"id":"B66C78FD-987A-4C4F-819A-63D90E526C65","shape":{"__isSmartRef__":true,"id":1219},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1226},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":693.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1227}],"layout":{"__isSmartRef__":true,"id":1229},"showsHalos":false,"prevScroll":[0,0],"priorSelectionRange":[422,422],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":134,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1230},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1231},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":1328621727843,"savedTextString":"// changed at Tue Feb 07 2012 13:57:30 GMT+0100 (Mitteleuropäische Zeit) by athomschke \nthis.addScript(function setList(items) {\n return this.updateList(items)\n}).tag([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":1232},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":1233},"attributeConnections":[{"__isSmartRef__":true,"id":1234}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":1259},"_MinTextWidth":693.0285365288845,"_MinTextHeight":null,"previousSelection":[148,130],"lastSaveSource":"","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":1005},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":1260},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","8A49A9BD-D0C5-4307-89CC-848185929DDD","720913C7-5A67-4B18-BC00-224E8681B4D6","BE78CF20-E4F4-4D4C-9970-50760EC62093"],"_Position":{"__isSmartRef__":true,"id":1275},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":1005},"doitContext":null,"textString":"undefined","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"lively.morphic.Text"},"1219":{"_Position":{"__isSmartRef__":true,"id":1220},"_Extent":{"__isSmartRef__":true,"id":1221},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1222},"_Fill":{"__isSmartRef__":true,"id":1223},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1224},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":1225},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1220":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1221":{"x":695.0285365288845,"y":511.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1222":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1223":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1224":{"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"},"1225":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1226":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1227":{"style":{"__isSmartRef__":true,"id":1228},"chunkOwner":{"__isSmartRef__":true,"id":1218},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1228":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1229":{"resizeWidth":true,"resizeHeight":true},"1230":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1231":{"x":696.0285365288845,"y":511.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1232":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1233":{"morph":{"__isSmartRef__":true,"id":1218},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1234":{"sourceObj":{"__isSmartRef__":true,"id":1218},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1235},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1235":{"submorphs":[],"scripts":[],"id":"0AC0E017-B842-4092-8241-2E9963737805","shape":{"__isSmartRef__":true,"id":1236},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1242},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":1243},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1244},"eventHandler":{"__isSmartRef__":true,"id":1245},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1005},"priorExtent":{"__isSmartRef__":true,"id":1246},"layout":{"__isSmartRef__":true,"id":1247},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":1239},"alarmColor":{"__isSmartRef__":true,"id":1248},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1249},"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","8996C5CE-C0BD-416A-9214-E32FE4CDB9B4","73394986-E8A4-4A30-9CC0-AC8FFD793F3F","D6E52851-8AD2-4753-8713-7AB8D0842673"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1250},"__LivelyClassName__":"lively.morphic.Box"},"1236":{"position":{"__isSmartRef__":true,"id":1237},"_Extent":{"__isSmartRef__":true,"id":1238},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1239},"_Fill":{"__isSmartRef__":true,"id":1239},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1240},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1241},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1237":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1238":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1239":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1240":{},"1241":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1242":{"x":887.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1243":{"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"},"1244":{"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"},"1245":{"morph":{"__isSmartRef__":true,"id":1235},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1246":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1247":{"moveHorizontal":true,"adjustForNewBounds":true},"1248":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1249":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1250":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":1251},"setColors":{"__isSmartRef__":true,"id":1255}},"1251":{"varMapping":{"__isSmartRef__":true,"id":1252},"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":1253},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1252":{"this":{"__isSmartRef__":true,"id":1235}},"1253":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1254}},"1254":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1255":{"varMapping":{"__isSmartRef__":true,"id":1256},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":1257},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1256":{"this":{"__isSmartRef__":true,"id":1235}},"1257":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1258}},"1258":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1259":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1260":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1261},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":1268},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1269}],"eventHandler":{"__isSmartRef__":true,"id":1271},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":1272},"priorExtent":{"__isSmartRef__":true,"id":1273},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":1274},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1261":{"_Position":{"__isSmartRef__":true,"id":1262},"renderContextTable":{"__isSmartRef__":true,"id":1263},"_Extent":{"__isSmartRef__":true,"id":1264},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1265},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1266},"_Fill":{"__isSmartRef__":true,"id":1267},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1262":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1263":{"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"},"1264":{"x":100,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1265":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1266":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1267":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1268":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1269":{"style":{"__isSmartRef__":true,"id":1270},"chunkOwner":{"__isSmartRef__":true,"id":1260},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1270":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1271":{"morph":{"__isSmartRef__":true,"id":1260},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1272":{"x":295.51426826444225,"y":225.30626630721798,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1273":{"x":100,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1274":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1275":{"x":200,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1276":{"doSave":{"__isSmartRef__":true,"id":1277},"boundEval":{"__isSmartRef__":true,"id":1285},"reset":{"__isSmartRef__":true,"id":1293},"display":{"__isSmartRef__":true,"id":1297},"hasChanged":{"__isSmartRef__":true,"id":1301},"setTarget":{"__isSmartRef__":true,"id":1305},"displayStatus":{"__isSmartRef__":true,"id":1309}},"1277":{"varMapping":{"__isSmartRef__":true,"id":1278},"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":1283},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1278":{"this":{"__isSmartRef__":true,"id":1218},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1279}},"1279":{"$super":{"__isSmartRef__":true,"id":1280}},"1280":{"varMapping":{"__isSmartRef__":true,"id":1281},"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":1282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1281":{"obj":{"__isSmartRef__":true,"id":1218},"name":"doSave"},"1282":{},"1283":{"timestamp":{"__isSmartRef__":true,"id":1284},"user":"lauritz"},"1284":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Mitteleuropäische Zeit)"},"1285":{"varMapping":{"__isSmartRef__":true,"id":1286},"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":1291},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1286":{"this":{"__isSmartRef__":true,"id":1218},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1287}},"1287":{"$super":{"__isSmartRef__":true,"id":1288}},"1288":{"varMapping":{"__isSmartRef__":true,"id":1289},"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":1290},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1289":{"obj":{"__isSmartRef__":true,"id":1218},"name":"boundEval"},"1290":{},"1291":{"timestamp":{"__isSmartRef__":true,"id":1292},"user":"lauritz","categories":[]},"1292":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (Mitteleuropäische Zeit)"},"1293":{"varMapping":{"__isSmartRef__":true,"id":1294},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":1295},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1294":{"this":{"__isSmartRef__":true,"id":1218}},"1295":{"timestamp":{"__isSmartRef__":true,"id":1296},"user":"lauritz","categories":[]},"1296":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:14:35 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1297":{"varMapping":{"__isSmartRef__":true,"id":1298},"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":1299},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1298":{"this":{"__isSmartRef__":true,"id":1218}},"1299":{"timestamp":{"__isSmartRef__":true,"id":1300},"user":"lauritz","categories":[]},"1300":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1301":{"varMapping":{"__isSmartRef__":true,"id":1302},"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":1303},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1302":{"this":{"__isSmartRef__":true,"id":1218}},"1303":{"timestamp":{"__isSmartRef__":true,"id":1304},"user":"lauritz","categories":[]},"1304":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1305":{"varMapping":{"__isSmartRef__":true,"id":1306},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":1307},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1306":{"this":{"__isSmartRef__":true,"id":1218}},"1307":{"timestamp":{"__isSmartRef__":true,"id":1308},"user":"lauritz","categories":[]},"1308":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (Mitteleuropäische Zeit)"},"1309":{"varMapping":{"__isSmartRef__":true,"id":1310},"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":1311},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1310":{"this":{"__isSmartRef__":true,"id":1218}},"1311":{"timestamp":{"__isSmartRef__":true,"id":1312},"user":"lauritz","categories":[]},"1312":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Mitteleuropäische Zeit)"},"1313":{"submorphs":[{"__isSmartRef__":true,"id":1314}],"scripts":[],"id":"31049AA2-20B8-4349-96B9-31BA44EAA293","shape":{"__isSmartRef__":true,"id":1333},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1338},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":641},"lighterFill":{"__isSmartRef__":true,"id":1339},"label":{"__isSmartRef__":true,"id":1314},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1340},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":1341},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":1342},"eventHandler":{"__isSmartRef__":true,"id":1343},"distanceToDragEvent":{"__isSmartRef__":true,"id":1344},"priorExtent":{"__isSmartRef__":true,"id":1345},"owner":{"__isSmartRef__":true,"id":1005},"textString":"","selection":{"__isSmartRef__":true,"id":1346},"_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","0A5DD73F-BFD4-4203-AB1C-12C1814A4F4E","294A47F7-5486-4C34-A10B-8BC879193467","4923ECE2-7536-4F1D-8D20-0A02F5760A1E"],"_Rotation":0,"_Scale":1,"layout":{"__isSmartRef__":true,"id":1363},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1364},"__LivelyClassName__":"lively.morphic.Button"},"1314":{"submorphs":[],"scripts":[],"id":"E4475D0C-AA7C-451F-A764-D5224705B261","shape":{"__isSmartRef__":true,"id":1315},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1321},"textColor":{"__isSmartRef__":true,"id":1318},"owner":{"__isSmartRef__":true,"id":1313},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1322},{"__isSmartRef__":true,"id":1324}],"padding":{"__isSmartRef__":true,"id":1326},"_Padding":{"__isSmartRef__":true,"id":1326},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1327},"attributeConnections":[{"__isSmartRef__":true,"id":1328}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":1329},"eventHandler":{"__isSmartRef__":true,"id":1330},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"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","EA0917D2-402A-4374-B91B-12D782A97683","B86CE011-A6A8-456A-95E8-57345EEDB65F","566326F5-AF2A-46A5-9AE9-4D2F8A51C09E"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1331},"layout":{"__isSmartRef__":true,"id":1332},"__LivelyClassName__":"lively.morphic.Text"},"1315":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1316},"_Extent":{"__isSmartRef__":true,"id":1317},"_BorderColor":{"__isSmartRef__":true,"id":1318},"renderContextTable":{"__isSmartRef__":true,"id":1319},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1320},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1316":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1317":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1318":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1319":{},"1320":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1321":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1322":{"style":{"__isSmartRef__":true,"id":1323},"chunkOwner":{"__isSmartRef__":true,"id":1314},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1323":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1324":{"style":{"__isSmartRef__":true,"id":1325},"chunkOwner":{"__isSmartRef__":true,"id":1314},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1325":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1326":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1327":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1328":{"sourceObj":{"__isSmartRef__":true,"id":1314},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1313},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1329":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1330":{"morph":{"__isSmartRef__":true,"id":1314},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1331":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1332":{"centeredVertical":true,"centeredHorizontal":true},"1333":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1334},"_Extent":{"__isSmartRef__":true,"id":1335},"_Fill":{"__isSmartRef__":true,"id":641},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":637},"_BorderRadius":13,"renderContextTable":{"__isSmartRef__":true,"id":1336},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1337},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1334":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1335":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1336":{},"1337":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1338":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1339":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1340":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1341":{"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"},"1342":{"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"},"1343":{"morph":{"__isSmartRef__":true,"id":1313},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1344":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1345":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1346":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":1347},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1353},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1354},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":1355},"_TextColor":{"__isSmartRef__":true,"id":1356},"renderContextTable":{"__isSmartRef__":true,"id":1357},"textChunks":[{"__isSmartRef__":true,"id":1358}],"eventHandler":{"__isSmartRef__":true,"id":1360},"priorExtent":{"__isSmartRef__":true,"id":1361},"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":1362},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"1347":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1348},"_Extent":{"__isSmartRef__":true,"id":1349},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1350},"renderContextTable":{"__isSmartRef__":true,"id":1351},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1352},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1348":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1349":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1350":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1351":{"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"},"1352":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1353":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1354":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1355":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1356":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1357":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1358":{"style":{"__isSmartRef__":true,"id":1359},"chunkOwner":{"__isSmartRef__":true,"id":1346},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1359":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1360":{"morph":{"__isSmartRef__":true,"id":1346},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1361":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1362":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1363":{"adjustForNewBounds":true},"1364":{"createListMorph":{"__isSmartRef__":true,"id":1365},"getList":{"__isSmartRef__":true,"id":1369},"removeList":{"__isSmartRef__":true,"id":1373},"reset":{"__isSmartRef__":true,"id":1377},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1381},"onMouseDown":{"__isSmartRef__":true,"id":1385},"setTargetOfPane":{"__isSmartRef__":true,"id":1393},"setTargetToListSelection":{"__isSmartRef__":true,"id":1397},"onBlur":{"__isSmartRef__":true,"id":1401},"setTarget":{"__isSmartRef__":true,"id":1409},"setTargetOnSelection":{"__isSmartRef__":true,"id":1413}},"1365":{"varMapping":{"__isSmartRef__":true,"id":1366},"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":1367},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1366":{"this":{"__isSmartRef__":true,"id":1313}},"1367":{"timestamp":{"__isSmartRef__":true,"id":1368},"user":"lauritz","tags":[]},"1368":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (Mitteleuropäische Zeit)"},"1369":{"varMapping":{"__isSmartRef__":true,"id":1370},"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":1371},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1370":{"this":{"__isSmartRef__":true,"id":1313}},"1371":{"timestamp":{"__isSmartRef__":true,"id":1372},"user":"lauritz","tags":[]},"1372":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (Mitteleuropäische Zeit)"},"1373":{"varMapping":{"__isSmartRef__":true,"id":1374},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1375},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1374":{"this":{"__isSmartRef__":true,"id":1313}},"1375":{"timestamp":{"__isSmartRef__":true,"id":1376},"user":"lauritz","tags":[]},"1376":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (Mitteleuropäische Zeit)"},"1377":{"varMapping":{"__isSmartRef__":true,"id":1378},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign(\"left\");\n this.applyStyle({borderRadius: '3px 3px 3px 3px',})\n this.setBorderColor(Color.black)\n this.label.setTextColor(Color.black)\n this.setPadding(pt(6,2).extent(pt(6,2)))\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":1379},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1378":{"this":{"__isSmartRef__":true,"id":1313}},"1379":{"timestamp":{"__isSmartRef__":true,"id":1380},"user":"athomschke","tags":[]},"1380":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:21:06 GMT+0100 (Mitteleuropäische Zeit)"},"1381":{"varMapping":{"__isSmartRef__":true,"id":1382},"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":1383},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1382":{"this":{"__isSmartRef__":true,"id":1313}},"1383":{"timestamp":{"__isSmartRef__":true,"id":1384},"user":"lauritz","tags":[]},"1384":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (Mitteleuropäische Zeit)"},"1385":{"varMapping":{"__isSmartRef__":true,"id":1386},"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":1391},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1386":{"this":{"__isSmartRef__":true,"id":1313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1387}},"1387":{"$super":{"__isSmartRef__":true,"id":1388}},"1388":{"varMapping":{"__isSmartRef__":true,"id":1389},"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":1390},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1389":{"obj":{"__isSmartRef__":true,"id":1313},"name":"onMouseDown"},"1390":{},"1391":{"timestamp":{"__isSmartRef__":true,"id":1392},"user":"lauritz","tags":[]},"1392":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (Mitteleuropäische Zeit)"},"1393":{"varMapping":{"__isSmartRef__":true,"id":1394},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":1395},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1394":{"this":{"__isSmartRef__":true,"id":1313}},"1395":{"timestamp":{"__isSmartRef__":true,"id":1396},"user":"lauritz","tags":[]},"1396":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Mitteleuropäische Zeit)"},"1397":{"varMapping":{"__isSmartRef__":true,"id":1398},"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":1399},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1398":{"this":{"__isSmartRef__":true,"id":1313}},"1399":{"timestamp":{"__isSmartRef__":true,"id":1400},"user":"lauritz","tags":[]},"1400":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Mitteleuropäische Zeit)"},"1401":{"varMapping":{"__isSmartRef__":true,"id":1402},"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":1407},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1402":{"this":{"__isSmartRef__":true,"id":1313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1403}},"1403":{"$super":{"__isSmartRef__":true,"id":1404}},"1404":{"varMapping":{"__isSmartRef__":true,"id":1405},"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":1406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1405":{"obj":{"__isSmartRef__":true,"id":1313},"name":"onBlur"},"1406":{},"1407":{"timestamp":{"__isSmartRef__":true,"id":1408},"user":"lauritz","tags":[]},"1408":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (Mitteleuropäische Zeit)"},"1409":{"varMapping":{"__isSmartRef__":true,"id":1410},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":1411},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1410":{"this":{"__isSmartRef__":true,"id":1313}},"1411":{"timestamp":{"__isSmartRef__":true,"id":1412},"user":"lauritz","tags":[]},"1412":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Mitteleuropäische Zeit)"},"1413":{"varMapping":{"__isSmartRef__":true,"id":1414},"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":1415},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1414":{"this":{"__isSmartRef__":true,"id":1313}},"1415":{"timestamp":{"__isSmartRef__":true,"id":1416},"user":"lauritz","tags":[]},"1416":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Mitteleuropäische Zeit)"},"1417":{"submorphs":[],"scripts":[],"id":"CA682F7D-1DB6-46F4-B269-3A7CC46C3282","shape":{"__isSmartRef__":true,"id":1418},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1424},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1421},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1425},"textChunks":[{"__isSmartRef__":true,"id":1426}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1428},"renderContextTable":{"__isSmartRef__":true,"id":1429},"eventHandler":{"__isSmartRef__":true,"id":1430},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1431},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1005},"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","A4A3682B-8E37-4DC5-8997-6665B8B3031A","93055BC8-BCA8-4B42-A99E-D59C96CCC164","ACC42F20-D523-4526-9F43-BD929009C7AE"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1418":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1419},"_Extent":{"__isSmartRef__":true,"id":1420},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1421},"renderContextTable":{"__isSmartRef__":true,"id":1422},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1423},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1419":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1420":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1421":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1422":{"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"},"1423":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1424":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1425":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1426":{"style":{"__isSmartRef__":true,"id":1427},"chunkOwner":{"__isSmartRef__":true,"id":1417},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1427":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1428":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1429":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1430":{"morph":{"__isSmartRef__":true,"id":1417},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1431":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1432":{"submorphs":[],"scripts":[],"id":"EE7405E3-353B-4A4C-A92F-DC4212A2FA7E","shape":{"__isSmartRef__":true,"id":1433},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1439},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1436},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1440},"textChunks":[{"__isSmartRef__":true,"id":1441}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1443},"renderContextTable":{"__isSmartRef__":true,"id":1444},"eventHandler":{"__isSmartRef__":true,"id":1445},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1446},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":1005},"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","14D4A75A-4097-451E-A45E-6B60776414A2","5D92CAD6-FCD4-4EB7-900F-401E9F83DBE3","1EF5EDFD-2078-4A88-8054-BC8E572DDEBB"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1433":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1434},"_Extent":{"__isSmartRef__":true,"id":1435},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1436},"renderContextTable":{"__isSmartRef__":true,"id":1437},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1438},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1434":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1435":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1436":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1437":{"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"},"1438":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1439":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1440":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1441":{"style":{"__isSmartRef__":true,"id":1442},"chunkOwner":{"__isSmartRef__":true,"id":1432},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1442":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1443":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1444":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1445":{"morph":{"__isSmartRef__":true,"id":1432},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1446":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1447":{"submorphs":[{"__isSmartRef__":true,"id":1448}],"scripts":[],"id":"4BF01AE1-BFD1-46BD-81D6-5403977A4A31","shape":{"__isSmartRef__":true,"id":1467},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1472},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":641},"lighterFill":{"__isSmartRef__":true,"id":1473},"label":{"__isSmartRef__":true,"id":1448},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1474},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":1475},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":1476},"eventHandler":{"__isSmartRef__":true,"id":1477},"distanceToDragEvent":{"__isSmartRef__":true,"id":1478},"priorExtent":{"__isSmartRef__":true,"id":1479},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":1005},"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","A24E2D56-75F5-4623-9514-CCCE829D87A8","86D03921-E641-4075-B86E-D0919E34BACE","B3F8A594-F9F0-4615-9C5F-C0B9C1D20442"],"_Rotation":0,"_Scale":1,"layout":{"__isSmartRef__":true,"id":1480},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1481},"__LivelyClassName__":"lively.morphic.Button"},"1448":{"submorphs":[],"scripts":[],"id":"73771354-AC84-4641-A056-1780A00699F2","shape":{"__isSmartRef__":true,"id":1449},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1455},"textColor":{"__isSmartRef__":true,"id":1452},"owner":{"__isSmartRef__":true,"id":1447},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1456},{"__isSmartRef__":true,"id":1458}],"padding":{"__isSmartRef__":true,"id":1460},"_Padding":{"__isSmartRef__":true,"id":1460},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1461},"attributeConnections":[{"__isSmartRef__":true,"id":1462}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":1463},"eventHandler":{"__isSmartRef__":true,"id":1464},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"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","4F5C3709-B64A-4416-B14B-CD96DBC29C1E","5C6429CB-384B-4971-9BFC-642C37D342B5","09325C1E-6E42-421A-8A78-3584631377CF"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1465},"layout":{"__isSmartRef__":true,"id":1466},"__LivelyClassName__":"lively.morphic.Text"},"1449":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1450},"_Extent":{"__isSmartRef__":true,"id":1451},"_BorderColor":{"__isSmartRef__":true,"id":1452},"renderContextTable":{"__isSmartRef__":true,"id":1453},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1454},"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1450":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1451":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1452":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1453":{},"1454":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1455":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1456":{"style":{"__isSmartRef__":true,"id":1457},"chunkOwner":{"__isSmartRef__":true,"id":1448},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1457":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1458":{"style":{"__isSmartRef__":true,"id":1459},"chunkOwner":{"__isSmartRef__":true,"id":1448},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1459":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1460":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1461":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1462":{"sourceObj":{"__isSmartRef__":true,"id":1448},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1447},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1463":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1464":{"morph":{"__isSmartRef__":true,"id":1448},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1465":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1466":{"centeredVertical":true,"centeredHorizontal":true},"1467":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1468},"_Extent":{"__isSmartRef__":true,"id":1469},"_Fill":{"__isSmartRef__":true,"id":641},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":637},"_BorderRadius":13,"renderContextTable":{"__isSmartRef__":true,"id":1470},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1471},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1468":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1469":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1470":{},"1471":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1472":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1473":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1474":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1475":{"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"},"1476":{"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"},"1477":{"morph":{"__isSmartRef__":true,"id":1447},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1478":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1479":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1480":{"adjustForNewBounds":true},"1481":{"createListMorph":{"__isSmartRef__":true,"id":1482},"getList":{"__isSmartRef__":true,"id":1486},"removeList":{"__isSmartRef__":true,"id":1490},"reset":{"__isSmartRef__":true,"id":1494},"onMouseUp":{"__isSmartRef__":true,"id":1498},"onBlur":{"__isSmartRef__":true,"id":1506},"setTag":{"__isSmartRef__":true,"id":1514}},"1482":{"varMapping":{"__isSmartRef__":true,"id":1483},"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":1484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1483":{"this":{"__isSmartRef__":true,"id":1447}},"1484":{"timestamp":{"__isSmartRef__":true,"id":1485},"user":"lauritz","categories":[]},"1485":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Mitteleuropäische Zeit)"},"1486":{"varMapping":{"__isSmartRef__":true,"id":1487},"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":1488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1487":{"this":{"__isSmartRef__":true,"id":1447}},"1488":{"timestamp":{"__isSmartRef__":true,"id":1489},"user":"lauritz","tags":[]},"1489":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Mitteleuropäische Zeit)"},"1490":{"varMapping":{"__isSmartRef__":true,"id":1491},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1492},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1491":{"this":{"__isSmartRef__":true,"id":1447}},"1492":{"timestamp":{"__isSmartRef__":true,"id":1493},"user":"lauritz","categories":[]},"1493":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Mitteleuropäische Zeit)"},"1494":{"varMapping":{"__isSmartRef__":true,"id":1495},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign(\"left\");\n this.setPadding(pt(10,0).extent(pt(0,0)))\n this.applyStyle({borderRadius: '3px 3px 3px 3px',})\n this.setBorderColor(Color.black)\n this.label.setTextColor(Color.black)\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":1496},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1495":{"this":{"__isSmartRef__":true,"id":1447}},"1496":{"timestamp":{"__isSmartRef__":true,"id":1497},"user":"athomschke","tags":[]},"1497":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:18:54 GMT+0100 (Mitteleuropäische Zeit)"},"1498":{"varMapping":{"__isSmartRef__":true,"id":1499},"source":"function onMouseUp(evt) {\n this.setValue(false)\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":1504},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1499":{"this":{"__isSmartRef__":true,"id":1447},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1500}},"1500":{"$super":{"__isSmartRef__":true,"id":1501}},"1501":{"varMapping":{"__isSmartRef__":true,"id":1502},"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":1503},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1502":{"obj":{"__isSmartRef__":true,"id":1447},"name":"onMouseUp"},"1503":{},"1504":{"timestamp":{"__isSmartRef__":true,"id":1505},"user":"athomschke","tags":[]},"1505":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:35:37 GMT+0100 (Mitteleuropäische Zeit)"},"1506":{"varMapping":{"__isSmartRef__":true,"id":1507},"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":1512},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1507":{"this":{"__isSmartRef__":true,"id":1447},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1508}},"1508":{"$super":{"__isSmartRef__":true,"id":1509}},"1509":{"varMapping":{"__isSmartRef__":true,"id":1510},"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":1511},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1510":{"obj":{"__isSmartRef__":true,"id":1447},"name":"onBlur"},"1511":{},"1512":{"timestamp":{"__isSmartRef__":true,"id":1513},"user":"lauritz","categories":[]},"1513":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Mitteleuropäische Zeit)"},"1514":{"varMapping":{"__isSmartRef__":true,"id":1515},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign(\"left\");\n this.setPadding(pt(6,2).extent(pt(6,2)))\n this.applyStyle({borderRadius: '3px 3px 3px 3px',})\n this.label.setTextColor(Color.black)\n this.setBorderColor(Color.black)\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":1516},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1515":{"this":{"__isSmartRef__":true,"id":1447}},"1516":{"timestamp":{"__isSmartRef__":true,"id":1517},"user":"athomschke","tags":[]},"1517":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:20:50 GMT+0100 (Mitteleuropäische Zeit)"},"1518":{"submorphs":[{"__isSmartRef__":true,"id":1519}],"scripts":[],"id":"B95E604B-831C-4F4E-AA09-4F5C5B12F740","shape":{"__isSmartRef__":true,"id":1538},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":641},"lighterFill":{"__isSmartRef__":true,"id":1543},"label":{"__isSmartRef__":true,"id":1519},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1544},"attributeConnections":[{"__isSmartRef__":true,"id":1545}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":1581},"renderContextTable":{"__isSmartRef__":true,"id":1582},"eventHandler":{"__isSmartRef__":true,"id":1583},"distanceToDragEvent":{"__isSmartRef__":true,"id":1584},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","7B6FC6E2-1A15-4F09-9837-98E06BDA0EDA","BD08E4FA-97D7-47D1-9FFB-D17C1F88B580","D442B46C-CBEF-4170-9634-54E0E0D19668"],"_Position":{"__isSmartRef__":true,"id":1585},"owner":{"__isSmartRef__":true,"id":1005},"_Rotation":0,"_Scale":0.994014980014994,"layout":{"__isSmartRef__":true,"id":1586},"__LivelyClassName__":"lively.morphic.Button"},"1519":{"submorphs":[],"scripts":[],"id":"B7D2E3E6-E6B6-4597-8F70-E22651057813","shape":{"__isSmartRef__":true,"id":1520},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1526},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":1527},"_Padding":{"__isSmartRef__":true,"id":1528},"owner":{"__isSmartRef__":true,"id":1518},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1529},"textChunks":[{"__isSmartRef__":true,"id":1530},{"__isSmartRef__":true,"id":1532}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":1534},"eventHandler":{"__isSmartRef__":true,"id":1535},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","10211617-8BD7-49F1-AFF5-8812F347B732","6B6D214B-1DBC-46E8-B5E4-0D51B48873CC","83B928F4-962C-4D97-89AF-BCC91B7910C9"],"_MinTextWidth":101,"_MinTextHeight":null,"_TextColor":{"__isSmartRef__":true,"id":1536},"layout":{"__isSmartRef__":true,"id":1537},"__LivelyClassName__":"lively.morphic.Text"},"1520":{"position":{"__isSmartRef__":true,"id":1521},"_Extent":{"__isSmartRef__":true,"id":1522},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1523},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1524},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1525},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1521":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1522":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1523":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1524":{},"1525":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1526":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1527":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1528":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1529":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1530":{"style":{"__isSmartRef__":true,"id":1531},"chunkOwner":{"__isSmartRef__":true,"id":1519},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1531":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1532":{"style":{"__isSmartRef__":true,"id":1533},"chunkOwner":{"__isSmartRef__":true,"id":1519},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1533":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1534":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1535":{"morph":{"__isSmartRef__":true,"id":1519},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1536":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1537":{"centeredVertical":true,"centeredHorizontal":true},"1538":{"position":{"__isSmartRef__":true,"id":1539},"_Extent":{"__isSmartRef__":true,"id":1540},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":{"__isSmartRef__":true,"id":641},"_BorderRadius":13,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1541},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1542},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1539":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1540":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1541":{},"1542":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1543":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1544":{"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"},"1545":{"sourceObj":{"__isSmartRef__":true,"id":1518},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1005},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":1546},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1546":{"submorphs":[{"__isSmartRef__":true,"id":1547}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1562},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":1569},"eventHandler":{"__isSmartRef__":true,"id":1570},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":1571},{"__isSmartRef__":true,"id":1572}],"con":{"__isSmartRef__":true,"id":1545},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1573},"__LivelyClassName__":"lively.morphic.Path"},"1547":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1548},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":1559},"eventHandler":{"__isSmartRef__":true,"id":1560},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1561},"owner":{"__isSmartRef__":true,"id":1546},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"1548":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1549},{"__isSmartRef__":true,"id":1550},{"__isSmartRef__":true,"id":1551},{"__isSmartRef__":true,"id":1552}],"renderContextTable":{"__isSmartRef__":true,"id":1553},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":1554},"_Extent":{"__isSmartRef__":true,"id":1555},"_Padding":{"__isSmartRef__":true,"id":1556},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1557},"_Fill":{"__isSmartRef__":true,"id":1558},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1549":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1550":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1551":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1552":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1553":{"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"},"1554":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1555":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1556":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1557":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1558":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1559":{"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"},"1560":{"morph":{"__isSmartRef__":true,"id":1547},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1561":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1562":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1563},{"__isSmartRef__":true,"id":1564}],"renderContextTable":{"__isSmartRef__":true,"id":1565},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":1566},"_Extent":{"__isSmartRef__":true,"id":1567},"_Padding":{"__isSmartRef__":true,"id":1568},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1557},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1563":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1564":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1565":{"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"},"1566":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1567":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1568":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1569":{"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"},"1570":{"morph":{"__isSmartRef__":true,"id":1546},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1571":{"morph":{"__isSmartRef__":true,"id":1546},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1572":{"morph":{"__isSmartRef__":true,"id":1546},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":1547},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1573":{"morphMenuItems":{"__isSmartRef__":true,"id":1574}},"1574":{"varMapping":{"__isSmartRef__":true,"id":1575},"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":1580},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1575":{"this":{"__isSmartRef__":true,"id":1546},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1576}},"1576":{"$super":{"__isSmartRef__":true,"id":1577}},"1577":{"varMapping":{"__isSmartRef__":true,"id":1578},"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":1579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1578":{"obj":{"__isSmartRef__":true,"id":1546},"name":"morphMenuItems"},"1579":{},"1580":{},"1581":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1582":{"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"},"1583":{"morph":{"__isSmartRef__":true,"id":1518},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1584":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1585":{"x":792.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1586":{"centeredHorizontal":false,"moveHorizontal":true,"adjustForNewBounds":true},"1587":{"submorphs":[{"__isSmartRef__":true,"id":1588}],"scripts":[],"id":"3FB7831B-C612-4BAD-A965-B5FC7207024E","shape":{"__isSmartRef__":true,"id":1607},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":641},"lighterFill":{"__isSmartRef__":true,"id":1612},"label":{"__isSmartRef__":true,"id":1588},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1613},"attributeConnections":[{"__isSmartRef__":true,"id":1614}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":1650},"renderContextTable":{"__isSmartRef__":true,"id":1651},"eventHandler":{"__isSmartRef__":true,"id":1652},"distanceToDragEvent":{"__isSmartRef__":true,"id":1653},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","5CC5F8D4-8739-4A96-860A-EF099A314642","916CF984-C8BC-4E32-9B91-7C8668125B96","DC8071EA-8D60-4A6F-8F41-AFB6DE399F34"],"layout":{"__isSmartRef__":true,"id":1654},"_Position":{"__isSmartRef__":true,"id":1655},"_Scale":0.9880657804942089,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":1005},"__LivelyClassName__":"lively.morphic.Button"},"1588":{"submorphs":[],"scripts":[],"id":"8486DAE2-84AF-49D7-9170-3AD59875672C","shape":{"__isSmartRef__":true,"id":1589},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1595},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":1596},"_Padding":{"__isSmartRef__":true,"id":1597},"owner":{"__isSmartRef__":true,"id":1587},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1598},"textChunks":[{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1601}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":1603},"eventHandler":{"__isSmartRef__":true,"id":1604},"_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","AF2EB5E4-DE8C-44F5-8273-CA21C4D6D967","6289D078-C569-499F-9B41-AE895D68385A","E0905C0A-38D2-4770-B9A4-CB73EE6B8AF1"],"_MinTextWidth":101,"_MinTextHeight":null,"_TextColor":{"__isSmartRef__":true,"id":1605},"layout":{"__isSmartRef__":true,"id":1606},"__LivelyClassName__":"lively.morphic.Text"},"1589":{"position":{"__isSmartRef__":true,"id":1590},"_Extent":{"__isSmartRef__":true,"id":1591},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1592},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1593},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1594},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1590":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1591":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1592":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1593":{},"1594":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1595":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1596":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1597":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1598":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1599":{"style":{"__isSmartRef__":true,"id":1600},"chunkOwner":{"__isSmartRef__":true,"id":1588},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1600":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1601":{"style":{"__isSmartRef__":true,"id":1602},"chunkOwner":{"__isSmartRef__":true,"id":1588},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1602":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1603":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1604":{"morph":{"__isSmartRef__":true,"id":1588},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1605":{"r":0.10392156862745099,"g":0.1627450980392157,"b":0.5,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1606":{"centeredVertical":true,"centeredHorizontal":true},"1607":{"position":{"__isSmartRef__":true,"id":1608},"_Extent":{"__isSmartRef__":true,"id":1609},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":{"__isSmartRef__":true,"id":641},"_BorderRadius":13,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1610},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1611},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1608":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1609":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1610":{},"1611":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1612":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1613":{"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"},"1614":{"sourceObj":{"__isSmartRef__":true,"id":1587},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1218},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":1615},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1615":{"submorphs":[{"__isSmartRef__":true,"id":1616}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1631},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":1638},"eventHandler":{"__isSmartRef__":true,"id":1639},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":1640},{"__isSmartRef__":true,"id":1641}],"con":{"__isSmartRef__":true,"id":1614},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1642},"__LivelyClassName__":"lively.morphic.Path"},"1616":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1617},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":1628},"eventHandler":{"__isSmartRef__":true,"id":1629},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1630},"owner":{"__isSmartRef__":true,"id":1615},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"1617":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1618},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":1620},{"__isSmartRef__":true,"id":1621}],"renderContextTable":{"__isSmartRef__":true,"id":1622},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":1623},"_Extent":{"__isSmartRef__":true,"id":1624},"_Padding":{"__isSmartRef__":true,"id":1625},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1626},"_Fill":{"__isSmartRef__":true,"id":1627},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1618":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1619":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1620":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1621":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1622":{"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"},"1623":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1624":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1625":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1626":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1627":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1628":{"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"},"1629":{"morph":{"__isSmartRef__":true,"id":1616},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1630":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1631":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1632},{"__isSmartRef__":true,"id":1633}],"renderContextTable":{"__isSmartRef__":true,"id":1634},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":1635},"_Extent":{"__isSmartRef__":true,"id":1636},"_Padding":{"__isSmartRef__":true,"id":1637},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1626},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1632":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1633":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1634":{"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"},"1635":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1636":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1637":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1638":{"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"},"1639":{"morph":{"__isSmartRef__":true,"id":1615},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1640":{"morph":{"__isSmartRef__":true,"id":1615},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1641":{"morph":{"__isSmartRef__":true,"id":1615},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":1616},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1642":{"morphMenuItems":{"__isSmartRef__":true,"id":1643}},"1643":{"varMapping":{"__isSmartRef__":true,"id":1644},"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":1649},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1644":{"this":{"__isSmartRef__":true,"id":1615},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1645}},"1645":{"$super":{"__isSmartRef__":true,"id":1646}},"1646":{"varMapping":{"__isSmartRef__":true,"id":1647},"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":1648},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1647":{"obj":{"__isSmartRef__":true,"id":1615},"name":"morphMenuItems"},"1648":{},"1649":{},"1650":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1651":{"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"},"1652":{"morph":{"__isSmartRef__":true,"id":1587},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1653":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1654":{"centeredHorizontal":false,"moveHorizontal":true,"adjustForNewBounds":true},"1655":{"x":679.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1656":{"position":{"__isSmartRef__":true,"id":1657},"_Extent":{"__isSmartRef__":true,"id":1658},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1659},"_Fill":{"__isSmartRef__":true,"id":1660},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1661},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1662},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1657":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1658":{"x":913.0285365288845,"y":562.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1659":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1660":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1661":{"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"},"1662":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1663":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":1664}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1664":{"date":{"__isSmartRef__":true,"id":1665},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"1665":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1666":{"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"},"1667":{"morph":{"__isSmartRef__":true,"id":1005},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1668":{"x":913.0285365288845,"y":562.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1669":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1670":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1671":{"x":-755.3158547850168,"y":-265.60085006805923,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1672":{"submorphs":[{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":1713}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1838},"id":"5F10F8F6-9B9D-4B75-AE45-FDA8E2748CCB","renderContextTable":{"__isSmartRef__":true,"id":1843},"eventHandler":{"__isSmartRef__":true,"id":1844},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":1845},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":1846},"targetMorph":{"__isSmartRef__":true,"id":1005},"titleBar":{"__isSmartRef__":true,"id":1713},"contentOffset":{"__isSmartRef__":true,"id":1847},"collapsedTransform":{"__isSmartRef__":true,"id":1848},"collapsedExtent":{"__isSmartRef__":true,"id":1849},"expandedTransform":{"__isSmartRef__":true,"id":1850},"expandedExtent":{"__isSmartRef__":true,"id":1851},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1852},"name":"ObjectEditor1","prevDragPos":{"__isSmartRef__":true,"id":1923},"highlighted":true,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":1924},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":1925},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":1926},"minExtent":{"__isSmartRef__":true,"id":1927},"isCopyMorphRef":true,"morphRefId":16,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","AB9DBBAF-202F-4549-AABE-8DD83C7257E0","75B7B1DE-AF4D-4943-B1B0-08221683968C","0E17F7F0-1448-41DA-A6EE-0E8672C89F14"],"_Position":{"__isSmartRef__":true,"id":1928},"_Scale":1.0060210561262526,"_Rotation":0,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1929},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1673":{"submorphs":[],"scripts":[],"id":"6A52C770-75FE-4B46-AADA-DD630244E36E","shape":{"__isSmartRef__":true,"id":1674},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1681},"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":1682},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1683},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":1684},"eventHandler":{"__isSmartRef__":true,"id":1685},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":1686},"owner":{"__isSmartRef__":true,"id":1672},"priorExtent":{"__isSmartRef__":true,"id":1687},"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"derivationIds":[227,"83D58336-D35B-44FB-9AB1-4467EC058CFA","0141EF2D-898D-4A88-93BF-1B9FEE7E56E6","F343780D-46A1-490F-8347-08939D52329C","DCD3B012-B22F-4037-B24A-FCF858D154D4","E6EDFE95-F114-4F7E-84D5-60B3212BC420","BF4D5E63-DC29-48E8-9958-0F115779065E","138CE99F-6560-44F9-9DE4-CC856E0C7D0C","F2DA1170-6C80-40B4-9020-47AF73BD9E3A"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1688},"__LivelyClassName__":"lively.morphic.Box"},"1674":{"position":{"__isSmartRef__":true,"id":1675},"_Extent":{"__isSmartRef__":true,"id":1676},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1677},"_Fill":{"__isSmartRef__":true,"id":1678},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1679},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1680},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1675":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1676":{"x":13,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1677":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1678":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1679":{"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"},"1680":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1681":{"x":143.71301846452138,"y":281.94245980624805,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1682":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1683":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1684":{"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"},"1685":{"morph":{"__isSmartRef__":true,"id":1673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1686":{"x":42.327599102410886,"y":-22.830104041830054,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1687":{"x":12,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1688":{"onDrag":{"__isSmartRef__":true,"id":1689},"onDragEnd":{"__isSmartRef__":true,"id":1697},"onDragStart":{"__isSmartRef__":true,"id":1705}},"1689":{"varMapping":{"__isSmartRef__":true,"id":1690},"source":"function onDrag(evt) {\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\tmoveDelta = pt(maxDelta, maxDelta);\n }\n this.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n this.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":1695},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1690":{"this":{"__isSmartRef__":true,"id":1673},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1691}},"1691":{"$super":{"__isSmartRef__":true,"id":1692}},"1692":{"varMapping":{"__isSmartRef__":true,"id":1693},"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":1694},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1693":{"obj":{"__isSmartRef__":true,"id":1673},"name":"onDrag"},"1694":{},"1695":{"timestamp":{"__isSmartRef__":true,"id":1696},"user":"lauritz"},"1696":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Mitteleuropäische Zeit)"},"1697":{"varMapping":{"__isSmartRef__":true,"id":1698},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1703},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1698":{"this":{"__isSmartRef__":true,"id":1673},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1699}},"1699":{"$super":{"__isSmartRef__":true,"id":1700}},"1700":{"varMapping":{"__isSmartRef__":true,"id":1701},"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":1702},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1701":{"obj":{"__isSmartRef__":true,"id":1673},"name":"onDragEnd"},"1702":{},"1703":{"timestamp":{"__isSmartRef__":true,"id":1704},"user":"lauritz"},"1704":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Mitteleuropäische Zeit)"},"1705":{"varMapping":{"__isSmartRef__":true,"id":1706},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1711},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1706":{"this":{"__isSmartRef__":true,"id":1673},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1707}},"1707":{"$super":{"__isSmartRef__":true,"id":1708}},"1708":{"varMapping":{"__isSmartRef__":true,"id":1709},"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":1710},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1709":{"obj":{"__isSmartRef__":true,"id":1673},"name":"onDragStart"},"1710":{},"1711":{"timestamp":{"__isSmartRef__":true,"id":1712},"user":"lauritz"},"1712":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (Mitteleuropäische Zeit)"},"1713":{"submorphs":[{"__isSmartRef__":true,"id":1714},{"__isSmartRef__":true,"id":1731},{"__isSmartRef__":true,"id":1761},{"__isSmartRef__":true,"id":1791}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1821},"id":"452D3051-7367-43E4-8B10-B7DA2C7EEEA7","renderContextTable":{"__isSmartRef__":true,"id":1833},"eventHandler":{"__isSmartRef__":true,"id":1834},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1835},"_Position":{"__isSmartRef__":true,"id":1836},"windowMorph":{"__isSmartRef__":true,"id":1672},"label":{"__isSmartRef__":true,"id":1714},"closeButton":{"__isSmartRef__":true,"id":1731},"menuButton":{"__isSmartRef__":true,"id":1761},"collapseButton":{"__isSmartRef__":true,"id":1791},"priorExtent":{"__isSmartRef__":true,"id":1837},"owner":{"__isSmartRef__":true,"id":1672},"prevScroll":[0,0],"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"derivationIds":[228,"084DFF55-BC61-4772-8BF7-F6A87C08DE9F","D22EFB93-AC9B-4FCE-9464-3B314FFA4C11","A5F9692A-C657-42B0-B8AA-D2E922A1DE8D","C47683FE-BA01-4AAB-BDE0-4862C049BCE7","BD427B66-7BE7-4205-84EC-825840E59F49","6F8AB68A-FD2F-4173-9E71-BA00654D4F58","AD397669-1A90-4CB9-966E-9D9BC082CA8C","60B74E31-8884-4066-87B5-6EB21D772A4F"],"_Scale":1,"targetMorph":{"__isSmartRef__":true,"id":1672},"__LivelyClassName__":"lively.morphic.TitleBar"},"1714":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1715},"id":"8828EAFF-74E5-4F48-A194-40E4B678E95C","renderContextTable":{"__isSmartRef__":true,"id":1721},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1722},{"__isSmartRef__":true,"id":1724}],"eventHandler":{"__isSmartRef__":true,"id":1726},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":12,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":1727},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1713},"priorExtent":{"__isSmartRef__":true,"id":1728},"_MaxTextWidth":828,"_MinTextWidth":828,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":1729},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[229,"D760A244-216E-4A66-8201-25AFC3AB6CC3","D0DE1BA6-E69D-4C19-A257-9D846EA6D12C","7590D64D-7524-4378-BB7E-845EC8CAE745","8996B9DB-C10E-41E4-8286-056BBCF8E151","18942143-8626-4D26-A7D9-153295EE4B23","E7C13468-1AD8-4EE3-821C-7F666EE8FBAD","4EF818A9-8FB6-46DC-B20F-9C7A2BEF8756","7C4A5B49-E791-462B-A5E1-F09EB3B3C957"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1730},"__LivelyClassName__":"lively.morphic.Text"},"1715":{"_Position":{"__isSmartRef__":true,"id":1716},"renderContextTable":{"__isSmartRef__":true,"id":1717},"_Extent":{"__isSmartRef__":true,"id":1718},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1719},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1720},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1716":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1717":{},"1718":{"x":828,"y":27,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1719":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1720":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1721":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1722":{"style":{"__isSmartRef__":true,"id":1723},"chunkOwner":{"__isSmartRef__":true,"id":1714},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1723":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1724":{"style":{"__isSmartRef__":true,"id":1725},"chunkOwner":{"__isSmartRef__":true,"id":1714},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1725":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1726":{"morph":{"__isSmartRef__":true,"id":1714},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1727":{"resizeWidth":true},"1728":{"x":828,"y":27,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1729":{"x":33,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1730":{"r":0.12,"g":0.12,"b":0.12,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1731":{"submorphs":[{"__isSmartRef__":true,"id":1732}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1746},"id":"347FE043-3C86-474B-A3BC-E9935F7AB4AB","renderContextTable":{"__isSmartRef__":true,"id":1751},"eventHandler":{"__isSmartRef__":true,"id":1752},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":1753},"priorExtent":{"__isSmartRef__":true,"id":1754},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1755},"label":{"__isSmartRef__":true,"id":1732},"owner":{"__isSmartRef__":true,"id":1713},"layout":{"__isSmartRef__":true,"id":1756},"attributeConnections":[{"__isSmartRef__":true,"id":1757},{"__isSmartRef__":true,"id":1759}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[230,"EE58E329-4B81-4ABE-A8D6-A3E1AA5BF908","418BD036-5123-49E3-A68D-B2CA74DD4EBA","AB2EC618-F852-4DB4-8601-C98F851F983A","84444904-5A59-41A9-9200-77C2DFC28F0A","BCDE4CA6-1D56-45F5-980B-4BF689C874DD","C763D5DE-EB08-44F8-9A0B-591664D9F6B9","C265A06B-4EE8-4BF1-B47A-BA3A0B31FF73","9B3A2F2D-A395-4B27-9CFC-938734FF91E0"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"1732":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1733},"id":"52153E6E-EF46-4913-8B7F-7CC2E832C210","renderContextTable":{"__isSmartRef__":true,"id":1738},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1739}],"eventHandler":{"__isSmartRef__":true,"id":1741},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":16,"_Position":{"__isSmartRef__":true,"id":1742},"priorExtent":{"__isSmartRef__":true,"id":1743},"_MaxTextWidth":30,"_MinTextWidth":30,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1731},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[231,"8DB42E03-8473-4B83-81E2-61EE04DF890A","B50E6B6E-F836-4B3E-8AD1-2B34DA86CE3B","60439D94-5083-4977-8470-BD8843FF782A","5EC44375-A7D5-4BD3-AFC7-C507DF8D60C8","5BDCC4F6-C579-4A6F-96BB-2F59131EFD32","BACB1B9F-FE5C-4A59-B788-9056E5BD6934","5770BDF5-1E81-48B0-9BF7-52C77850AC27","4154BD43-5984-4311-9DE2-DDFDF54F189C"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1744},"layout":{"__isSmartRef__":true,"id":1745},"__LivelyClassName__":"lively.morphic.Text"},"1733":{"_Position":{"__isSmartRef__":true,"id":1734},"renderContextTable":{"__isSmartRef__":true,"id":1735},"_Extent":{"__isSmartRef__":true,"id":1736},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1737},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1720},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1734":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1735":{},"1736":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1737":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1738":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1739":{"style":{"__isSmartRef__":true,"id":1740},"chunkOwner":{"__isSmartRef__":true,"id":1732},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1740":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1741":{"morph":{"__isSmartRef__":true,"id":1732},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1742":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1743":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1744":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1745":{"centeredVertical":true,"centeredHorizontal":true},"1746":{"_Position":{"__isSmartRef__":true,"id":1747},"renderContextTable":{"__isSmartRef__":true,"id":1748},"_Extent":{"__isSmartRef__":true,"id":1749},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1750},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":3,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1747":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1748":{},"1749":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1750":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1751":{"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"},"1752":{"morph":{"__isSmartRef__":true,"id":1731},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1753":{"x":880,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1754":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1755":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1756":{"moveHorizontal":true,"adjustForNewBounds":true,"centeredVertical":true},"1757":{"sourceObj":{"__isSmartRef__":true,"id":1731},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1672},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1758},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1758":{"source":{"__isSmartRef__":true,"id":1731},"target":{"__isSmartRef__":true,"id":1672}},"1759":{"sourceObj":{"__isSmartRef__":true,"id":1731},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1672},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1760},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1760":{"source":{"__isSmartRef__":true,"id":1731},"target":{"__isSmartRef__":true,"id":1672}},"1761":{"submorphs":[{"__isSmartRef__":true,"id":1762}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1776},"id":"5F865068-3A29-46FF-BDD2-B8BA8C8A7E17","renderContextTable":{"__isSmartRef__":true,"id":1781},"eventHandler":{"__isSmartRef__":true,"id":1782},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":1783},"priorExtent":{"__isSmartRef__":true,"id":1784},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1785},"label":{"__isSmartRef__":true,"id":1762},"owner":{"__isSmartRef__":true,"id":1713},"attributeConnections":[{"__isSmartRef__":true,"id":1786},{"__isSmartRef__":true,"id":1788}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[232,"F393CBFF-A15D-4D1D-A3A3-DA0C7EF93B66","5BC57B43-1661-4C92-827E-E6CCB6E519E1","DDA3D28B-E4EA-4F17-9B68-D6964E9A2524","93D34CE0-A8E8-43DA-AA3B-3B32912E0BC1","93EA3F6A-3D2D-41E5-8FBD-16CDD8BD7946","D90B1B91-9645-46D9-B5AB-77CB5FBF24D9","99021FC3-31A1-440C-BD0E-492483BA40E4","AF85FA05-93C5-4546-B6DA-91D7C6287F81"],"_Scale":1,"layout":{"__isSmartRef__":true,"id":1790},"__LivelyClassName__":"lively.morphic.WindowControl"},"1762":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1763},"id":"2BD91CD2-EDEA-412B-B0C0-FD416404640E","renderContextTable":{"__isSmartRef__":true,"id":1768},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1769}],"eventHandler":{"__isSmartRef__":true,"id":1771},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":16,"_Position":{"__isSmartRef__":true,"id":1772},"priorExtent":{"__isSmartRef__":true,"id":1773},"_MaxTextWidth":30,"_MinTextWidth":30,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1761},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[233,"E1DC624A-DE6A-4680-92DA-803BFFE6CD54","2EB42409-E0C2-408B-8F84-EDF9EBFB2590","0684F49F-5338-4D44-82C9-5A4E2D62EE72","0B73719D-BC87-4B8D-890D-30C0714B5584","90D2BAAA-EB9D-45AF-8770-9616421A5762","9090D29C-FB6A-4BC3-AC2D-C1DBD1F095F8","58D12C41-53CB-4CA3-8DEC-52331DAB8717","5C62879C-4EB7-49AD-80F8-9B7A65A5D8B7"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1774},"layout":{"__isSmartRef__":true,"id":1775},"__LivelyClassName__":"lively.morphic.Text"},"1763":{"_Position":{"__isSmartRef__":true,"id":1764},"renderContextTable":{"__isSmartRef__":true,"id":1765},"_Extent":{"__isSmartRef__":true,"id":1766},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1767},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1720},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1764":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1765":{},"1766":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1767":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1768":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1769":{"style":{"__isSmartRef__":true,"id":1770},"chunkOwner":{"__isSmartRef__":true,"id":1762},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1770":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1771":{"morph":{"__isSmartRef__":true,"id":1762},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1772":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1773":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1774":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1775":{"centeredVertical":true,"centeredHorizontal":true},"1776":{"_Position":{"__isSmartRef__":true,"id":1777},"renderContextTable":{"__isSmartRef__":true,"id":1778},"_Extent":{"__isSmartRef__":true,"id":1779},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1780},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":3,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1777":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1778":{},"1779":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1780":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1781":{"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"},"1782":{"morph":{"__isSmartRef__":true,"id":1761},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1783":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1784":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1785":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1786":{"sourceObj":{"__isSmartRef__":true,"id":1761},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1672},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1787},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1787":{"source":{"__isSmartRef__":true,"id":1761},"target":{"__isSmartRef__":true,"id":1672}},"1788":{"sourceObj":{"__isSmartRef__":true,"id":1761},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1672},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1789},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1789":{"source":{"__isSmartRef__":true,"id":1761},"target":{"__isSmartRef__":true,"id":1672}},"1790":{"adjustForNewBounds":true,"centeredVertical":true},"1791":{"submorphs":[{"__isSmartRef__":true,"id":1792}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1806},"id":"01478EC1-E7DE-4898-94BB-9A9D5DE4EE0F","renderContextTable":{"__isSmartRef__":true,"id":1811},"eventHandler":{"__isSmartRef__":true,"id":1812},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":1813},"priorExtent":{"__isSmartRef__":true,"id":1814},"value":false,"toggle":false,"isActive":true,"normalFill":null,"lighterFill":{"__isSmartRef__":true,"id":1815},"label":{"__isSmartRef__":true,"id":1792},"owner":{"__isSmartRef__":true,"id":1713},"layout":{"__isSmartRef__":true,"id":1816},"attributeConnections":[{"__isSmartRef__":true,"id":1817},{"__isSmartRef__":true,"id":1819}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[234,"EC7EDE8E-294A-46CF-85BB-BBC525336E13","F24B29EE-0964-499D-834F-E3D087DC6003","F6F3659F-9229-46AA-9B9E-46627A7062B2","A88C4D93-582A-4C0D-9F97-F2F0E291BB7E","AA05682F-3E98-433C-8C01-422A46068DFC","409D0231-86EA-44E4-BB4E-E8D6169CC366","651A13FA-EACF-4FD8-9A24-0C264A171CC1","ABBE6C6D-DE28-43E6-BB25-5DFE0CFBADFF"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"1792":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1793},"id":"F6388C7D-5628-4BFE-A0B3-4B9E889AD76D","renderContextTable":{"__isSmartRef__":true,"id":1798},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1799}],"eventHandler":{"__isSmartRef__":true,"id":1801},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":16,"_Position":{"__isSmartRef__":true,"id":1802},"priorExtent":{"__isSmartRef__":true,"id":1803},"_MaxTextWidth":30,"_MinTextWidth":30,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1791},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[235,"F92ECC97-5F5B-4CDA-A829-270D000F0D88","A7CDAD5D-BCA1-4AF0-A092-9E81DF1F5C1B","35639FEE-51E8-4469-BB0E-5D1650F1E695","65EBC411-8078-4C93-9A62-F3E8D325DBA7","3F66B345-86BE-4AF4-84FC-BA468E960283","8D5FAA23-AC8C-4A61-AAEE-2661904C6E2A","5451C844-DAA6-4E82-ABAC-14209E71E7E8","D768E7F5-537B-46E2-B935-A6781D8CA96A"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":1804},"layout":{"__isSmartRef__":true,"id":1805},"__LivelyClassName__":"lively.morphic.Text"},"1793":{"_Position":{"__isSmartRef__":true,"id":1794},"renderContextTable":{"__isSmartRef__":true,"id":1795},"_Extent":{"__isSmartRef__":true,"id":1796},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1797},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1720},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1794":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1795":{},"1796":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1797":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1798":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1799":{"style":{"__isSmartRef__":true,"id":1800},"chunkOwner":{"__isSmartRef__":true,"id":1792},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1800":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1801":{"morph":{"__isSmartRef__":true,"id":1792},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1802":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1803":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1804":{"r":0.24,"g":0.24,"b":0.24,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1805":{"centeredVertical":true,"centeredHorizontal":true},"1806":{"_Position":{"__isSmartRef__":true,"id":1807},"renderContextTable":{"__isSmartRef__":true,"id":1808},"_Extent":{"__isSmartRef__":true,"id":1809},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1810},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":3,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1807":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1808":{},"1809":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1810":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1811":{"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"},"1812":{"morph":{"__isSmartRef__":true,"id":1791},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1813":{"x":861,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1814":{"x":30,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1815":{"r":0.7,"g":0.7,"b":0.7,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1816":{"moveHorizontal":true,"adjustForNewBounds":true,"centeredVertical":true},"1817":{"sourceObj":{"__isSmartRef__":true,"id":1791},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1672},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1818},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1818":{"source":{"__isSmartRef__":true,"id":1791},"target":{"__isSmartRef__":true,"id":1672}},"1819":{"sourceObj":{"__isSmartRef__":true,"id":1791},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1672},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1820},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1820":{"source":{"__isSmartRef__":true,"id":1791},"target":{"__isSmartRef__":true,"id":1672}},"1821":{"_Position":{"__isSmartRef__":true,"id":1822},"renderContextTable":{"__isSmartRef__":true,"id":1823},"_Extent":{"__isSmartRef__":true,"id":1824},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1825},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1826},"_Fill":{"__isSmartRef__":true,"id":1827},"_StrokeOpacity":1,"_BorderRadius":"3px 3px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1822":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1823":{},"1824":{"x":913,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1825":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1826":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1827":{"stops":[{"__isSmartRef__":true,"id":1828},{"__isSmartRef__":true,"id":1830}],"vector":{"__isSmartRef__":true,"id":1832},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1828":{"offset":0,"color":{"__isSmartRef__":true,"id":1829}},"1829":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1830":{"offset":1,"color":{"__isSmartRef__":true,"id":1831}},"1831":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1832":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1833":{"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"},"1834":{"morph":{"__isSmartRef__":true,"id":1713},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1835":{"resizeWidth":true,"adjustForNewBounds":true},"1836":{"x":-756.2869815354786,"y":-295.05754019375195,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1837":{"x":913,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1838":{"renderContextTable":{"__isSmartRef__":true,"id":1839},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1840},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1841},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1842},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1839":{},"1840":{"x":913,"y":583,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1841":{"x":-751.7605888365888,"y":-285.33949507884563,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1842":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1843":{"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"},"1844":{"morph":{"__isSmartRef__":true,"id":1672},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1845":{"adjustForNewBounds":true},"1846":{"x":913,"y":583,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1847":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1848":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"1849":{"x":723,"y":268,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1850":{"a":1.0040100200350561,"b":0,"c":0,"d":1.0040100200350561,"e":25.958169966165087,"f":125.02070906988553,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"1851":{"x":729,"y":365,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1852":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/iPad Widgets","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a morph.","partName":"ObjectEditor","changes":[{"__isSmartRef__":true,"id":1853},{"__isSmartRef__":true,"id":1855},{"__isSmartRef__":true,"id":1857},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1861},{"__isSmartRef__":true,"id":1863},{"__isSmartRef__":true,"id":1865},{"__isSmartRef__":true,"id":1867},{"__isSmartRef__":true,"id":1869},{"__isSmartRef__":true,"id":1871},{"__isSmartRef__":true,"id":1873},{"__isSmartRef__":true,"id":1875},{"__isSmartRef__":true,"id":1877},{"__isSmartRef__":true,"id":1879},{"__isSmartRef__":true,"id":1881},{"__isSmartRef__":true,"id":1883},{"__isSmartRef__":true,"id":1885},{"__isSmartRef__":true,"id":1887},{"__isSmartRef__":true,"id":1889},{"__isSmartRef__":true,"id":1891},{"__isSmartRef__":true,"id":1893},{"__isSmartRef__":true,"id":1895},{"__isSmartRef__":true,"id":1897},{"__isSmartRef__":true,"id":1899},{"__isSmartRef__":true,"id":1901},{"__isSmartRef__":true,"id":1903},{"__isSmartRef__":true,"id":1905},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1909},{"__isSmartRef__":true,"id":1911},{"__isSmartRef__":true,"id":1913},{"__isSmartRef__":true,"id":1915},{"__isSmartRef__":true,"id":1917},{"__isSmartRef__":true,"id":1919},{"__isSmartRef__":true,"id":1921}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1853":{"date":{"__isSmartRef__":true,"id":1854},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"1854":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (Mitteleuropäische Zeit)"},"1855":{"date":{"__isSmartRef__":true,"id":1856},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"1856":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (Mitteleuropäische Zeit)"},"1857":{"date":{"__isSmartRef__":true,"id":1858},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"1858":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (Mitteleuropäische Zeit)"},"1859":{"date":{"__isSmartRef__":true,"id":1860},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"1860":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (Mitteleuropäische Zeit)"},"1861":{"date":{"__isSmartRef__":true,"id":1862},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"1862":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (Mitteleuropäische Zeit)"},"1863":{"date":{"__isSmartRef__":true,"id":1864},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"1864":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (Mitteleuropäische Zeit)"},"1865":{"date":{"__isSmartRef__":true,"id":1866},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"1866":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (Mitteleuropäische Zeit)"},"1867":{"date":{"__isSmartRef__":true,"id":1868},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"1868":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (Mitteleuropäische Zeit)"},"1869":{"date":{"__isSmartRef__":true,"id":1870},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"1870":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (Mitteleuropäische Zeit)"},"1871":{"date":{"__isSmartRef__":true,"id":1872},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"1872":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (Mitteleuropäische Zeit)"},"1873":{"date":{"__isSmartRef__":true,"id":1874},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"1874":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1875":{"date":{"__isSmartRef__":true,"id":1876},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"1876":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1877":{"date":{"__isSmartRef__":true,"id":1878},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"1878":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (Mitteleuropäische Zeit)"},"1879":{"date":{"__isSmartRef__":true,"id":1880},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"1880":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (Mitteleuropäische Zeit)"},"1881":{"date":{"__isSmartRef__":true,"id":1882},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"1882":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (Mitteleuropäische Zeit)"},"1883":{"date":{"__isSmartRef__":true,"id":1884},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"1884":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (Mitteleuropäische Zeit)"},"1885":{"date":{"__isSmartRef__":true,"id":1886},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"1886":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (Mitteleuropäische Zeit)"},"1887":{"date":{"__isSmartRef__":true,"id":1888},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"1888":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (Mitteleuropäische Zeit)"},"1889":{"date":{"__isSmartRef__":true,"id":1890},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"1890":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (Mitteleuropäische Zeit)"},"1891":{"date":{"__isSmartRef__":true,"id":1892},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"1892":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (Mitteleuropäische Zeit)"},"1893":{"date":{"__isSmartRef__":true,"id":1894},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"1894":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (Mitteleuropäische Zeit)"},"1895":{"date":{"__isSmartRef__":true,"id":1896},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"1896":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (Mitteleuropäische Zeit)"},"1897":{"date":{"__isSmartRef__":true,"id":1898},"author":"lauritz","message":"tries to get user directly from localStorage now. if there's no user set, then we don't call CGI - logging into trac should not be necessary for developing parts.","id":"0F65058D-3BF4-4538-8B89-1267B58DE137"},"1898":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (Mitteleuropäische Zeit)"},"1899":{"date":{"__isSmartRef__":true,"id":1900},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"1900":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (Mitteleuropäische Zeit)"},"1901":{"date":{"__isSmartRef__":true,"id":1902},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"1902":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (Mitteleuropäische Zeit)"},"1903":{"date":{"__isSmartRef__":true,"id":1904},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"1904":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (Mitteleuropäische Zeit)"},"1905":{"date":{"__isSmartRef__":true,"id":1906},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"1906":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (Mitteleuropäische Zeit)"},"1907":{"date":{"__isSmartRef__":true,"id":1908},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"1908":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (Mitteleuropäische Zeit)"},"1909":{"date":{"__isSmartRef__":true,"id":1910},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"1910":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (Mitteleuropäische Zeit)"},"1911":{"date":{"__isSmartRef__":true,"id":1912},"author":"athomschke","message":"init","id":"49E1E6D6-74F1-420D-9393-B0260E81D55D"},"1912":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:43:41 GMT+0100 (Mitteleuropäische Zeit)"},"1913":{"date":{"__isSmartRef__":true,"id":1914},"author":"athomschke","message":"dropdownLists","id":"E33C12AD-0891-47A6-A777-E0970EF3EDA8"},"1914":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:21:51 GMT+0100 (Mitteleuropäische Zeit)"},"1915":{"date":{"__isSmartRef__":true,"id":1916},"author":"athomschke","message":"+ i button fitting","id":"650220E7-AB66-46CE-87B8-8DFD3E79170B"},"1916":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:36:25 GMT+0100 (Mitteleuropäische Zeit)"},"1917":{"date":{"__isSmartRef__":true,"id":1918},"author":"athomschke","message":"design","id":"06168C0C-789B-41CA-8ACF-13F7EAE03BB1"},"1918":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:41:00 GMT+0100 (Mitteleuropäische Zeit)"},"1919":{"date":{"__isSmartRef__":true,"id":1920},"author":"athomschke","message":"design","id":"C1FAEF8E-C9F8-4AAB-AEC8-1511577CBE39"},"1920":{"isSerializedDate":true,"string":"Tue Feb 07 2012 13:43:07 GMT+0100 (Mitteleuropäische Zeit)"},"1921":{"date":{"__isSmartRef__":true,"id":1922},"author":"athomschke","message":"included iPad Lists","id":"7AA41632-315F-4C3C-8616-DDD353EC5C54"},"1922":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:35:29 GMT+0100 (Mitteleuropäische Zeit)"},"1923":{"x":1522,"y":289,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1924":{"x":25.958169966165087,"y":125.02070906988553,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1925":{"x":21,"y":92.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1926":{"x":500,"y":300,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1927":{"x":455,"y":268,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1928":{"x":1508.0475703720674,"y":572.3970352725976,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1929":{"setTarget":{"__isSmartRef__":true,"id":1930},"reset":{"__isSmartRef__":true,"id":1934},"onShutdown":{"__isSmartRef__":true,"id":1938}},"1930":{"varMapping":{"__isSmartRef__":true,"id":1931},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":1932},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1931":{"this":{"__isSmartRef__":true,"id":1672}},"1932":{"timestamp":{"__isSmartRef__":true,"id":1933},"user":"lauritz","categories":[]},"1933":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Mitteleuropäische Zeit)"},"1934":{"varMapping":{"__isSmartRef__":true,"id":1935},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":1936},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1935":{"this":{"__isSmartRef__":true,"id":1672}},"1936":{"timestamp":{"__isSmartRef__":true,"id":1937},"user":"lauritz","categories":[]},"1937":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Mitteleuropäische Zeit)"},"1938":{"varMapping":{"__isSmartRef__":true,"id":1939},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":1940},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1939":{"this":{"__isSmartRef__":true,"id":1672}},"1940":{"timestamp":{"__isSmartRef__":true,"id":1941},"user":"lauritz","categories":[]},"1941":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1942":{"displayInitialScript":{"__isSmartRef__":true,"id":1943},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1947},"displaySourceForConnection":{"__isSmartRef__":true,"id":1951},"displaySourceForScript":{"__isSmartRef__":true,"id":1955},"generateSourceForConnection":{"__isSmartRef__":true,"id":1959},"generateSourceForScript":{"__isSmartRef__":true,"id":1963},"generateTargetCode":{"__isSmartRef__":true,"id":1967},"newConnection":{"__isSmartRef__":true,"id":1971},"newScript":{"__isSmartRef__":true,"id":1975},"reset":{"__isSmartRef__":true,"id":1979},"selectChangedContent":{"__isSmartRef__":true,"id":1983},"setTarget":{"__isSmartRef__":true,"id":1987},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":1991},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1995},"updateLists":{"__isSmartRef__":true,"id":1999},"onShutdown":{"__isSmartRef__":true,"id":2003},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":2007},"update":{"__isSmartRef__":true,"id":2011},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":2015},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":2019},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":2023},"printTags":{"__isSmartRef__":true,"id":2031},"setTag":{"__isSmartRef__":true,"id":2035},"runScript":{"__isSmartRef__":true,"id":2039}},"1943":{"varMapping":{"__isSmartRef__":true,"id":1944},"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":1945},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1944":{"this":{"__isSmartRef__":true,"id":1005}},"1945":{"timestamp":{"__isSmartRef__":true,"id":1946},"user":"lauritz","tags":[]},"1946":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Mitteleuropäische Zeit)"},"1947":{"varMapping":{"__isSmartRef__":true,"id":1948},"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":1949},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1948":{"this":{"__isSmartRef__":true,"id":1005}},"1949":{"timestamp":{"__isSmartRef__":true,"id":1950},"user":"lauritz","tags":[]},"1950":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"1951":{"varMapping":{"__isSmartRef__":true,"id":1952},"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":1953},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1952":{"this":{"__isSmartRef__":true,"id":1005}},"1953":{"timestamp":{"__isSmartRef__":true,"id":1954},"user":"conradcalmez","tags":[]},"1954":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Mitteleuropäische Zeit)"},"1955":{"varMapping":{"__isSmartRef__":true,"id":1956},"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":1957},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1956":{"this":{"__isSmartRef__":true,"id":1005}},"1957":{"timestamp":{"__isSmartRef__":true,"id":1958},"user":"lauritz","tags":[]},"1958":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Mitteleuropäische Zeit)"},"1959":{"varMapping":{"__isSmartRef__":true,"id":1960},"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":1961},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1960":{"this":{"__isSmartRef__":true,"id":1005}},"1961":{"timestamp":{"__isSmartRef__":true,"id":1962},"user":"lauritz","tags":[]},"1962":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"1963":{"varMapping":{"__isSmartRef__":true,"id":1964},"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":1965},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1964":{"this":{"__isSmartRef__":true,"id":1005}},"1965":{"timestamp":{"__isSmartRef__":true,"id":1966},"user":"lauritz","tags":[]},"1966":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (Mitteleuropäische Zeit)"},"1967":{"varMapping":{"__isSmartRef__":true,"id":1968},"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":1969},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1968":{"this":{"__isSmartRef__":true,"id":1005}},"1969":{"timestamp":{"__isSmartRef__":true,"id":1970},"user":"lauritz","tags":[]},"1970":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"1971":{"varMapping":{"__isSmartRef__":true,"id":1972},"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":1973},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1972":{"this":{"__isSmartRef__":true,"id":1005}},"1973":{"timestamp":{"__isSmartRef__":true,"id":1974},"user":"lauritz","tags":[]},"1974":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"1975":{"varMapping":{"__isSmartRef__":true,"id":1976},"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":1977},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1976":{"this":{"__isSmartRef__":true,"id":1005}},"1977":{"timestamp":{"__isSmartRef__":true,"id":1978},"user":"lauritz","tags":[]},"1978":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Mitteleuropäische Zeit)"},"1979":{"varMapping":{"__isSmartRef__":true,"id":1980},"source":"function reset() {\n debugger\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":1981},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1980":{"this":{"__isSmartRef__":true,"id":1005}},"1981":{"timestamp":{"__isSmartRef__":true,"id":1982},"user":"athomschke","tags":[]},"1982":{"isSerializedDate":true,"string":"Tue Feb 07 2012 14:07:04 GMT+0100 (Mitteleuropäische Zeit)"},"1983":{"varMapping":{"__isSmartRef__":true,"id":1984},"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 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":2144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2143":{"this":{"__isSmartRef__":true,"id":64}},"2144":{"timestamp":{"__isSmartRef__":true,"id":2145},"user":"lauritz","tags":[]},"2145":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Mitteleuropäische Zeit)"},"2146":{"varMapping":{"__isSmartRef__":true,"id":2147},"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":2148},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2147":{"this":{"__isSmartRef__":true,"id":64}},"2148":{"timestamp":{"__isSmartRef__":true,"id":2149},"user":"lauritz","tags":[]},"2149":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"2150":{"varMapping":{"__isSmartRef__":true,"id":2151},"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":2152},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2151":{"this":{"__isSmartRef__":true,"id":64}},"2152":{"timestamp":{"__isSmartRef__":true,"id":2153},"user":"conradcalmez","tags":[]},"2153":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Mitteleuropäische Zeit)"},"2154":{"varMapping":{"__isSmartRef__":true,"id":2155},"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":2156},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2155":{"this":{"__isSmartRef__":true,"id":64}},"2156":{"timestamp":{"__isSmartRef__":true,"id":2157},"user":"lauritz","tags":[]},"2157":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Mitteleuropäische Zeit)"},"2158":{"varMapping":{"__isSmartRef__":true,"id":2159},"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":2160},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2159":{"this":{"__isSmartRef__":true,"id":64}},"2160":{"timestamp":{"__isSmartRef__":true,"id":2161},"user":"lauritz","tags":[]},"2161":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"2162":{"varMapping":{"__isSmartRef__":true,"id":2163},"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":2164},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2163":{"this":{"__isSmartRef__":true,"id":64}},"2164":{"timestamp":{"__isSmartRef__":true,"id":2165},"user":"lauritz","tags":[]},"2165":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (Mitteleuropäische Zeit)"},"2166":{"varMapping":{"__isSmartRef__":true,"id":2167},"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":2168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2167":{"this":{"__isSmartRef__":true,"id":64}},"2168":{"timestamp":{"__isSmartRef__":true,"id":2169},"user":"lauritz","tags":[]},"2169":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"2170":{"varMapping":{"__isSmartRef__":true,"id":2171},"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":2172},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2171":{"this":{"__isSmartRef__":true,"id":64}},"2172":{"timestamp":{"__isSmartRef__":true,"id":2173},"user":"lauritz","tags":[]},"2173":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"2174":{"varMapping":{"__isSmartRef__":true,"id":2175},"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":2176},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2175":{"this":{"__isSmartRef__":true,"id":64}},"2176":{"timestamp":{"__isSmartRef__":true,"id":2177},"user":"lauritz","tags":[]},"2177":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Mitteleuropäische Zeit)"},"2178":{"varMapping":{"__isSmartRef__":true,"id":2179},"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":2180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2179":{"this":{"__isSmartRef__":true,"id":64}},"2180":{"timestamp":{"__isSmartRef__":true,"id":2181},"user":"conradcalmez","tags":[]},"2181":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Mitteleuropäische Zeit)"},"2182":{"varMapping":{"__isSmartRef__":true,"id":2183},"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 2) {\n\t\t\t// Polylines become a mere blob for now...\n\t\t\tvar morph = this.makeRectangle(Rectangle.unionPts(verts));\n\t\t\tmorph.setBorderWidth(lineWidth);\n\t\t\tmorph.setBorderColor(lineColor);\n\t\t\tmorph.setFill(null);\n\t\t\treturn morph;\n\t\t} \n\t\t// Okay, it's a simple line...\n\t\tvar p1 = verts[0]; var p2 = verts[1];\n\t\tvar v = p2.subPt(p1);\n \n\t\t// First make a horizontal line of the same length with origin at (0, 0)\n\t\tvar morph = this.makeRectangle(Rectangle.unionPts([pt(0, -lineWidth/2), Point.polar(v.r(), 0).addXY(0, lineWidth/2)]));\n\n\t\t// *** Not right, but we want to make position and center of rot = (0, 0):\n\t\t// morph._Position = pt(0, 0);\n\n\t\tmorph.setBorderWidth(0);\n\t\tmorph.setFill(lineColor);\n\n\t\t// Then move and rotate, with first vertex being the rotation center\n\t\tmorph.moveBy(p1);\n\t\tmorph.setOrigin(pt(0, lineWidth/2));\n\t\tmorph.isLine = true;\n\t\treturn morph.rotateBy(v.theta());\n\t}\n});","textChunks":[{"__isSmartRef__":true,"id":2735},{"__isSmartRef__":true,"id":2738},{"__isSmartRef__":true,"id":2740},{"__isSmartRef__":true,"id":2743},{"__isSmartRef__":true,"id":2745},{"__isSmartRef__":true,"id":2748},{"__isSmartRef__":true,"id":2750},{"__isSmartRef__":true,"id":2752},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2760},{"__isSmartRef__":true,"id":2762},{"__isSmartRef__":true,"id":2765},{"__isSmartRef__":true,"id":2767},{"__isSmartRef__":true,"id":2769},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2773},{"__isSmartRef__":true,"id":2775},{"__isSmartRef__":true,"id":2778},{"__isSmartRef__":true,"id":2780},{"__isSmartRef__":true,"id":2782},{"__isSmartRef__":true,"id":2784},{"__isSmartRef__":true,"id":2786}],"priorSelectionRange":[152,173],"_ClipMode":"auto","prevScroll":[0,0],"_FontSize":9,"owner":{"__isSmartRef__":true,"id":2592},"priorExtent":{"__isSmartRef__":true,"id":2788},"lastSyntaxHighlightTime":1334827282769,"renderContextTable":{"__isSmartRef__":true,"id":2789},"eventHandler":{"__isSmartRef__":true,"id":2790},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":840.6764200688274,"_MinTextHeight":null,"previousSelection":[168,168],"distanceToDragEvent":{"__isSmartRef__":true,"id":2791},"isBeingDragged":false,"derivationIds":[209,"04D0F127-514D-4BED-841E-6A4CEF4FFDDA","D40D5739-DE56-49F4-B02A-A4ED75AF054A","42528900-D082-4C7A-8E70-1E67923301D9","5167B7DC-8F45-4AD0-96D7-947FF3EE0BB7","D0BFE91E-6EF1-4165-A42C-CC81C9CD2050","04C1BABF-5514-417C-AE67-882A1252EB67","8B053B4D-76D1-4DCB-8E89-8E7ABA3EF3D1","CB2FFA38-BC16-4D98-A807-722CCCC26062","D19D6343-8887-4386-8B87-4560230A5D11","2FFE6CC8-A851-44E9-B6B7-9D9370DEB9C9","A1509C4A-C98B-44CF-ACF8-DA444E7A9B75"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2792},"__LivelyClassName__":"lively.morphic.Text"},"2727":{"position":{"__isSmartRef__":true,"id":2728},"_Extent":{"__isSmartRef__":true,"id":2729},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2597},"_Fill":{"__isSmartRef__":true,"id":2730},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2731},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":2732},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2728":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2729":{"x":845.6764200688274,"y":195.7127101296919,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2730":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2731":{"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"},"2732":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2733":{"x":10,"y":230,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2734":{"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false},"2735":{"style":{"__isSmartRef__":true,"id":2736},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"// changes here only affect runtime","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2736":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2737":{"r":0,"g":0.5019607843137255,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2738":{"style":{"__isSmartRef__":true,"id":2739},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2739":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2740":{"style":{"__isSmartRef__":true,"id":2741},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2741":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2742":{"r":0,"g":0,"b":0.5019607843137255,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2743":{"style":{"__isSmartRef__":true,"id":2744},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":".","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2744":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2745":{"style":{"__isSmartRef__":true,"id":2746},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"addMethods","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2746":{"color":{"__isSmartRef__":true,"id":2747},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2747":{"r":0.5019607843137255,"g":0.5019607843137255,"b":0.5019607843137255,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2748":{"style":{"__isSmartRef__":true,"id":2749},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"(","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2749":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2750":{"style":{"__isSmartRef__":true,"id":2751},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2751":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2752":{"style":{"__isSmartRef__":true,"id":2753},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2753":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2754":{"style":{"__isSmartRef__":true,"id":2755},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"insertAtCursor","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2755":{"color":{"__isSmartRef__":true,"id":2756},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2756":{"r":0.8,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2757":{"style":{"__isSmartRef__":true,"id":2758},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":":","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2758":{"color":{"__isSmartRef__":true,"id":2759},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2759":{"r":0.5450980392156862,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2760":{"style":{"__isSmartRef__":true,"id":2761},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2761":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2762":{"style":{"__isSmartRef__":true,"id":2763},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"function","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2763":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2764":{"r":0,"g":0,"b":0.5450980392156862,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2765":{"style":{"__isSmartRef__":true,"id":2766},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":" (string, selectIt, overwriteSelection) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2766":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2767":{"style":{"__isSmartRef__":true,"id":2768},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2768":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2769":{"style":{"__isSmartRef__":true,"id":2770},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2770":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2771":{"style":{"__isSmartRef__":true,"id":2772},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2772":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2773":{"style":{"__isSmartRef__":true,"id":2774},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":".insertElementAtCursor(NodeFactory.createText(","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2774":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2775":{"style":{"__isSmartRef__":true,"id":2776},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"String","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2776":{"color":{"__isSmartRef__":true,"id":2777},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2777":{"r":1,"g":0.0784313725490196,"b":0.5764705882352941,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2778":{"style":{"__isSmartRef__":true,"id":2779},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"(string)), selectIt, overwriteSelection);\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2779":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2780":{"style":{"__isSmartRef__":true,"id":2781},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2781":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2782":{"style":{"__isSmartRef__":true,"id":2783},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2783":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2784":{"style":{"__isSmartRef__":true,"id":2785},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2785":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2786":{"style":{"__isSmartRef__":true,"id":2787},"chunkOwner":{"__isSmartRef__":true,"id":2726},"storedString":");","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2787":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2788":{"x":850.9484727040478,"y":197.97423635202387,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2789":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2790":{"morph":{"__isSmartRef__":true,"id":2726},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2791":{"x":582.0068382418127,"y":-20.48073201899024,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2792":{"doSave":{"__isSmartRef__":true,"id":2793},"getDoitContext":{"__isSmartRef__":true,"id":2800}},"2793":{"varMapping":{"__isSmartRef__":true,"id":2794},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":2799},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2794":{"this":{"__isSmartRef__":true,"id":2726},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2795}},"2795":{"$super":{"__isSmartRef__":true,"id":2796}},"2796":{"varMapping":{"__isSmartRef__":true,"id":2797},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":2798},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2797":{"obj":{"__isSmartRef__":true,"id":2726},"name":"doSave"},"2798":{},"2799":{},"2800":{"varMapping":{"__isSmartRef__":true,"id":2801},"source":"function getDoitContext() {\n\treturn this.owner.targetObject\n}","funcProperties":{"__isSmartRef__":true,"id":2806},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2801":{"this":{"__isSmartRef__":true,"id":2726},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2802}},"2802":{"$super":{"__isSmartRef__":true,"id":2803}},"2803":{"varMapping":{"__isSmartRef__":true,"id":2804},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":2805},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2804":{"obj":{"__isSmartRef__":true,"id":2726},"name":"getDoitContext"},"2805":{},"2806":{},"2807":{"submorphs":[],"scripts":[],"id":"F29BE78B-C6A3-4460-81DE-345887C370A8","shape":{"__isSmartRef__":true,"id":2808},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2814},"_MaxTextWidth":841.6764200688274,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":2815},"charsReplaced":"","lastFindLoc":697,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"infoText","savedTextString":"// MethodFinder (this)\n\n// ** MethodFinder's Scripts **\nthis.addScript(function browse(fileFragment) {\n\tfileFragment && fileFragment.browseIt()\n});\n\nthis.addScript(function reset() {\n\tthis.get('searchResultList').updateList([]);\n\tthis.get('searchResultList').setSelection(null);\n\tthis.get('searchText').setTextString('enter search term here');\n});\n\n\nthis.addScript(function search(searchString) {\n\tvar finds = [];\n\tvar re = new RegExp(searchString)\n\tvar i=0;\n\tvar time = Functions.timeToRun(function() {\n\tGlobal.classes(true).forEach(function(eaClass) {\n\t\tFunctions.own(eaClass.prototype)\n\t\t\t.forEach(function(eaMethod) {\n\t\t\t\ti++;\n\t\t\t\tif (eaMethod.match(re)){\n\t\t\t\t\tfinds.push([eaClass, eaMethod])\n\t\t\t\t}\t\n\t\t\t})\t\n\t})})\n\talert(\"search \" + i + \" methods, found \" + finds.length + \" methods in \" + time + \"ms\")\n\n\tvar items = finds.collect(function(ea) {\n\t\treturn {\n\t\t\tisListItem: true,\n\t\t\tvalue: ea,\n\t\t\tstring: ea[0].name + \": \" + ea[1],\n\t\t}\n\t})\n\tthis.get('searchResultList').updateList(items);\n});","textChunks":[{"__isSmartRef__":true,"id":2816}],"priorSelectionRange":[37,37],"_ClipMode":"hidden","prevScroll":[0,0],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":2818},"owner":{"__isSmartRef__":true,"id":2592},"renderContextTable":{"__isSmartRef__":true,"id":2819},"eventHandler":{"__isSmartRef__":true,"id":2820},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":841.6764200688274,"_MinTextHeight":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":2821},"derivationIds":[210,"E20B9061-6128-4BD4-BE8B-4B50F9BC8EA1","FFFED58E-70A3-4945-A7C8-19E2C0754BB7","1B69878E-8E43-4E25-BAE7-3D64CAE35839","2770B759-8971-45F4-8291-6DA85EBD1155","B0E0F94A-1BB3-405B-87BB-3C1199A8EB79","8EF852C4-A375-4F84-873C-4277F9A99D52","AA10C5AE-8C29-45DA-8CA5-A0E286F80E82","4B3576CB-50DD-49DF-913C-88D34002B5DC","B9692647-A99C-4A20-9C6C-3DF722D48DDE","109C8B5F-DBAA-490E-A061-CB3004CD8634","6494496E-CBF0-4256-ACA4-D7E7B674F7CE"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2808":{"position":{"__isSmartRef__":true,"id":2809},"_Extent":{"__isSmartRef__":true,"id":2810},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2597},"_Fill":{"__isSmartRef__":true,"id":2811},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2812},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2813},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2809":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2810":{"x":845.6764200688274,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2811":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2812":{"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"},"2813":{"x":2,"y":1,"width":-2,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2814":{"x":10,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2815":{"resizeWidth":true,"resizeHeight":false,"moveVertical":false,"moveHorizontal":false},"2816":{"style":{"__isSmartRef__":true,"id":2817},"chunkOwner":{"__isSmartRef__":true,"id":2807},"storedString":"module(Global.lively.morphic.TextCore)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2817":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2818":{"x":850.9484727040478,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2819":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2820":{"morph":{"__isSmartRef__":true,"id":2807},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2821":{"x":587.0068382418127,"y":-13.480732018990238,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2822":{"submorphs":[{"__isSmartRef__":true,"id":2823}],"scripts":[],"id":"ECF26F70-9B6F-41EE-9356-A27615471889","shape":{"__isSmartRef__":true,"id":2838},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2841},"lighterFill":{"__isSmartRef__":true,"id":2853},"label":{"__isSmartRef__":true,"id":2823},"showsHalos":false,"name":"browse","partsBinMetaInfo":{"__isSmartRef__":true,"id":2862},"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[{"__isSmartRef__":true,"id":2863}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":2864},"renderContextTable":{"__isSmartRef__":true,"id":2865},"eventHandler":{"__isSmartRef__":true,"id":2866},"distanceToDragEvent":{"__isSmartRef__":true,"id":2867},"_Position":{"__isSmartRef__":true,"id":2868},"owner":{"__isSmartRef__":true,"id":2592},"derivationIds":[211,"72C2FBB1-F169-43CC-AC8A-C0889FCB1663","8CF07460-17AC-4EC3-83C4-E31D52336E14","BE09102D-553E-4BB6-84A6-4D428731DD1B","2D43F043-9567-4765-A19C-7C922F0DFFE7","A77836E8-3C83-4A1D-B37A-7DDBA7FE13DE","13EB973D-FF17-4A76-AD4B-13347D80B1A9","8A92D97E-6965-49F7-B2B0-8842FB9ADCDF","662F4742-3BD8-4D39-88CB-EE97BC2306D6","8F15DC2D-892E-4B0F-83CB-8E7012281BEB","57A38C48-8036-4D85-91C8-9F60FE72DACE","5F6BEEC4-A021-4428-AC2A-14F8A4F9B68C"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"2823":{"submorphs":[],"scripts":[],"id":"DB9218C7-C2D1-4AB6-BB2A-F365F3188C4F","shape":{"__isSmartRef__":true,"id":2824},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2830},"_MaxTextWidth":78,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":2831},"_Padding":{"__isSmartRef__":true,"id":2832},"owner":{"__isSmartRef__":true,"id":2822},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":2833}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":2835},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":2836},"eventHandler":{"__isSmartRef__":true,"id":2837},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":78,"_MinTextHeight":null,"derivationIds":[212,"054FD83F-508D-488D-A011-8769DCB647DF","834D337A-5619-4055-B103-7BDAA88CD7A9","3C85FBE2-5C85-4CCF-B86A-25E65015429B","001D6261-96E2-4ACC-880A-8540815DC8D3","90FFCC86-B995-4F2F-872F-55A8A74FC99E","766B1A00-7692-4CAB-B106-01876B4D5F77","C36FA883-C0F4-47DA-B1A9-CB8D82C1C6E4","91BD5A6B-4A46-43EA-8FA0-2A5C4EFDD1A7","B8CDD839-4085-4D54-B360-5F4DAC2DD83C","C25AEC86-A78F-4355-A843-3CACF03215A8","B28C6DEB-10EF-40BF-BA3F-3BFA8EB2B14D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2824":{"position":{"__isSmartRef__":true,"id":2825},"_Extent":{"__isSmartRef__":true,"id":2826},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2827},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2828},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2829},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2825":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2826":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2827":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2828":{"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"},"2829":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2830":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2831":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2832":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2833":{"style":{"__isSmartRef__":true,"id":2834},"morph":{"__isSmartRef__":true,"id":2823},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":2823},"storedString":"browse","__LivelyClassName__":"lively.morphic.TextChunk"},"2834":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2835":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2836":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2837":{"morph":{"__isSmartRef__":true,"id":2823},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2838":{"position":{"__isSmartRef__":true,"id":2839},"_Extent":{"__isSmartRef__":true,"id":2840},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2629},"_Fill":{"__isSmartRef__":true,"id":2841},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2851},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2852},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2839":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2840":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2841":{"stops":[{"__isSmartRef__":true,"id":2842},{"__isSmartRef__":true,"id":2844},{"__isSmartRef__":true,"id":2846},{"__isSmartRef__":true,"id":2848}],"vector":{"__isSmartRef__":true,"id":2850},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2842":{"offset":0,"color":{"__isSmartRef__":true,"id":2843}},"2843":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2844":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2845}},"2845":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2846":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2847}},"2847":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2848":{"offset":1,"color":{"__isSmartRef__":true,"id":2849}},"2849":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2850":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2851":{"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"},"2852":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2853":{"stops":[{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2858},{"__isSmartRef__":true,"id":2860}],"vector":{"__isSmartRef__":true,"id":2850},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2854":{"offset":0,"color":{"__isSmartRef__":true,"id":2855}},"2855":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2856":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2857}},"2857":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2858":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2859}},"2859":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2860":{"offset":1,"color":{"__isSmartRef__":true,"id":2861}},"2861":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2862":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2863":{"sourceObj":{"__isSmartRef__":true,"id":2822},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2592},"targetMethodName":"browseMethod","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2864":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2865":{"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"},"2866":{"morph":{"__isSmartRef__":true,"id":2822},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2867":{"x":53.66458745330033,"y":-17.22490844717396,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2868":{"x":400,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2869":{"submorphs":[{"__isSmartRef__":true,"id":2870}],"scripts":[],"id":"EB5A5954-1870-4DD1-8545-705E6C2F9F02","shape":{"__isSmartRef__":true,"id":2885},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2888},"lighterFill":{"__isSmartRef__":true,"id":2900},"label":{"__isSmartRef__":true,"id":2870},"name":"Button1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2909},"attributeConnections":[{"__isSmartRef__":true,"id":2910}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":2946},"renderContextTable":{"__isSmartRef__":true,"id":2947},"eventHandler":{"__isSmartRef__":true,"id":2948},"distanceToDragEvent":{"__isSmartRef__":true,"id":2949},"prevScroll":[0,0],"_Position":{"__isSmartRef__":true,"id":2950},"owner":{"__isSmartRef__":true,"id":2592},"layout":{"__isSmartRef__":true,"id":2951},"derivationIds":[213,"EC7B60B8-A81F-4F24-A467-A661149CA045","DF2DEFBB-9271-4448-98A1-D2137526C2C3","EBFAF287-C65D-425B-910E-D6ADC7FA9D02","7F2E684F-7CC3-4CC4-8B18-920427491622","F7E9C68E-814B-4197-9D5B-556DCF0EC4F6","3DC305C0-5A87-4ED4-B263-5E5333B947FB","A8805225-9530-403B-977E-A2929A077DD0","0BF85746-8777-4195-949A-8733B4D79B02","8E485E0B-1832-4C7C-A5B1-D14057A7F5E3","4793FFDA-8803-44C7-97D4-27DE49B5D8D0","3FDA3264-B677-48AF-95D0-46DDD933EFBF"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"2870":{"submorphs":[],"scripts":[],"id":"8D18E896-12B3-40FD-AD49-03C6258E5E81","shape":{"__isSmartRef__":true,"id":2871},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2877},"_MaxTextWidth":157.05605605605615,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":2878},"_Padding":{"__isSmartRef__":true,"id":2879},"owner":{"__isSmartRef__":true,"id":2869},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":2880},"textChunks":[{"__isSmartRef__":true,"id":2881}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":2883},"eventHandler":{"__isSmartRef__":true,"id":2884},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":157.05605605605615,"_MinTextHeight":null,"derivationIds":[214,"D88E1591-8BE5-4F54-AEB5-71BC24E2014D","FE6955F2-3796-4030-BD54-73604562225B","0F07A5A7-E04B-412A-8D91-2AA448965A0E","634A262F-940F-4590-8DB1-0738A6DF355A","221F164E-FD6F-40ED-8E18-E055A638CE93","1320C4DD-9213-40AA-A107-5EF8EBE9B22A","098E1029-F36B-4434-B20F-A2100DCCBB9A","39D48D5A-BB94-40BA-AB93-09B3B787EC3D","27F752E4-9705-4F8B-9CC4-6E5131892552","78776F49-7628-4F29-81F1-7AFC77BDAFE0","5ACE871C-A220-4C51-A9E1-9315BE30BB0A"],"__LivelyClassName__":"lively.morphic.Text"},"2871":{"position":{"__isSmartRef__":true,"id":2872},"_Extent":{"__isSmartRef__":true,"id":2873},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2874},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2875},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2876},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2872":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2873":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2874":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2875":{"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"},"2876":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2877":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2878":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2879":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2880":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2881":{"style":{"__isSmartRef__":true,"id":2882},"chunkOwner":{"__isSmartRef__":true,"id":2870},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"search on server","__LivelyClassName__":"lively.morphic.TextChunk"},"2882":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2883":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2884":{"morph":{"__isSmartRef__":true,"id":2870},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2885":{"position":{"__isSmartRef__":true,"id":2886},"_Extent":{"__isSmartRef__":true,"id":2887},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":2629},"_Fill":{"__isSmartRef__":true,"id":2888},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2899},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2886":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2887":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2888":{"stops":[{"__isSmartRef__":true,"id":2889},{"__isSmartRef__":true,"id":2891},{"__isSmartRef__":true,"id":2893},{"__isSmartRef__":true,"id":2895}],"vector":{"__isSmartRef__":true,"id":2897},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2889":{"offset":0,"color":{"__isSmartRef__":true,"id":2890}},"2890":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2891":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2892}},"2892":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2893":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2894}},"2894":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2895":{"offset":1,"color":{"__isSmartRef__":true,"id":2896}},"2896":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2897":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2898":{"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"},"2899":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2900":{"stops":[{"__isSmartRef__":true,"id":2901},{"__isSmartRef__":true,"id":2903},{"__isSmartRef__":true,"id":2905},{"__isSmartRef__":true,"id":2907}],"vector":{"__isSmartRef__":true,"id":2897},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2901":{"offset":0,"color":{"__isSmartRef__":true,"id":2902}},"2902":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2903":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2904}},"2904":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2905":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2906}},"2906":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2907":{"offset":1,"color":{"__isSmartRef__":true,"id":2908}},"2908":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2909":{"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"},"2910":{"sourceObj":{"__isSmartRef__":true,"id":2869},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2592},"targetMethodName":"searchOnServer","visualConnector":{"__isSmartRef__":true,"id":2911},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2911":{"submorphs":[{"__isSmartRef__":true,"id":2912}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2927},"id":865,"renderContextTable":{"__isSmartRef__":true,"id":2934},"eventHandler":{"__isSmartRef__":true,"id":2935},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":2936},{"__isSmartRef__":true,"id":2937}],"con":{"__isSmartRef__":true,"id":2910},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2938},"__LivelyClassName__":"lively.morphic.Path"},"2912":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2913},"id":866,"renderContextTable":{"__isSmartRef__":true,"id":2924},"eventHandler":{"__isSmartRef__":true,"id":2925},"__layered_droppingEnabled__":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2926},"owner":{"__isSmartRef__":true,"id":2911},"_Rotation":-3.113822016996372,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"2913":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2914},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2916},{"__isSmartRef__":true,"id":2917}],"renderContextTable":{"__isSmartRef__":true,"id":2918},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":2919},"_Extent":{"__isSmartRef__":true,"id":2920},"_Padding":{"__isSmartRef__":true,"id":2921},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2922},"_Fill":{"__isSmartRef__":true,"id":2923},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2914":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2915":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2916":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2917":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2918":{"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"},"2919":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2920":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2921":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2922":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2923":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2924":{"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"},"2925":{"morph":{"__isSmartRef__":true,"id":2912},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2926":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2927":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2928},{"__isSmartRef__":true,"id":2929}],"renderContextTable":{"__isSmartRef__":true,"id":2930},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":2931},"_Extent":{"__isSmartRef__":true,"id":2932},"_Padding":{"__isSmartRef__":true,"id":2933},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2922},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2928":{"isAbsolute":true,"x":719.9999999999999,"y":20,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2929":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2930":{"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"},"2931":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2932":{"x":721,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2933":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2934":{"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"},"2935":{"morph":{"__isSmartRef__":true,"id":2911},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2936":{"morph":{"__isSmartRef__":true,"id":2911},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2937":{"morph":{"__isSmartRef__":true,"id":2911},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":2912},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2938":{"morphMenuItems":{"__isSmartRef__":true,"id":2939}},"2939":{"varMapping":{"__isSmartRef__":true,"id":2940},"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":2945},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2940":{"this":{"__isSmartRef__":true,"id":2911},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2941}},"2941":{"$super":{"__isSmartRef__":true,"id":2942}},"2942":{"varMapping":{"__isSmartRef__":true,"id":2943},"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":2944},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2943":{"obj":{"__isSmartRef__":true,"id":2911},"name":"morphMenuItems"},"2944":{},"2945":{},"2946":{"x":159.05805805805812,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2947":{"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"},"2948":{"morph":{"__isSmartRef__":true,"id":2869},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2949":{"x":111.36105352154709,"y":-11.352025158627953,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2950":{"x":490,"y":19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2951":{"moveHorizontal":false},"2952":{"submorphs":[{"__isSmartRef__":true,"id":2953}],"scripts":[],"id":"57A4A056-C329-44CB-BCD3-530C59868EA5","shape":{"__isSmartRef__":true,"id":2968},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2983},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2971},"lighterFill":{"__isSmartRef__":true,"id":2984},"label":{"__isSmartRef__":true,"id":2953},"name":"ScriptableButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2993},"attributeConnections":[{"__isSmartRef__":true,"id":2994}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":2995},"renderContextTable":{"__isSmartRef__":true,"id":2996},"eventHandler":{"__isSmartRef__":true,"id":2997},"derivationIds":[2588,"8DA01C71-0A84-4A5A-8027-121F4684BB04","2F4904A6-2C6F-4A39-8C69-7C1E943F91B4","7F6F4EE1-856E-477B-8578-D99400031DBA","374C68BB-3D86-4DA0-9616-2B5320585D0E","23336C67-2F65-4D9F-9380-304876DC628F","8E57191F-E38B-4526-95AA-8D530FAC8156"],"owner":{"__isSmartRef__":true,"id":2592},"distanceToDragEvent":{"__isSmartRef__":true,"id":2998},"_Rotation":0,"_Scale":1.002003004005006,"layout":{"__isSmartRef__":true,"id":2999},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3000},"__LivelyClassName__":"lively.morphic.Button"},"2953":{"submorphs":[],"scripts":[],"id":"2D738F04-F3BE-45D4-BC3D-2AF5FC8A32F8","shape":{"__isSmartRef__":true,"id":2954},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2960},"_MaxTextWidth":20,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":2961},"_Padding":{"__isSmartRef__":true,"id":2962},"owner":{"__isSmartRef__":true,"id":2952},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":2963},"textChunks":[{"__isSmartRef__":true,"id":2964}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":2966},"eventHandler":{"__isSmartRef__":true,"id":2967},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"784F6E71-6365-4235-A0B6-69F992BB532B","54335D65-DB12-4322-84D0-BA8B85E7ED2F","2EF9D95D-4705-44B3-8D3C-446FEDC6346B","07108773-133C-4F4A-A740-33175849E789","E58C564E-D8F3-481A-821D-447F7C7556D8","D92DDD8E-7733-4909-A5E9-049EC55E90C0"],"_MinTextWidth":20,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"2954":{"position":{"__isSmartRef__":true,"id":2955},"_Extent":{"__isSmartRef__":true,"id":2956},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2957},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2958},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2955":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2956":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2957":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2958":{"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"},"2959":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2960":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2961":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2962":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2963":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2964":{"style":{"__isSmartRef__":true,"id":2965},"chunkOwner":{"__isSmartRef__":true,"id":2953},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"x","__LivelyClassName__":"lively.morphic.TextChunk"},"2965":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2966":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2967":{"morph":{"__isSmartRef__":true,"id":2953},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2968":{"position":{"__isSmartRef__":true,"id":2969},"_Extent":{"__isSmartRef__":true,"id":2970},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":2629},"_Fill":{"__isSmartRef__":true,"id":2971},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2981},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2982},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2969":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2970":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2971":{"stops":[{"__isSmartRef__":true,"id":2972},{"__isSmartRef__":true,"id":2974},{"__isSmartRef__":true,"id":2976},{"__isSmartRef__":true,"id":2978}],"vector":{"__isSmartRef__":true,"id":2980},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2972":{"offset":0,"color":{"__isSmartRef__":true,"id":2973}},"2973":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2974":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2975}},"2975":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2976":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2977}},"2977":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2978":{"offset":1,"color":{"__isSmartRef__":true,"id":2979}},"2979":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2980":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2981":{"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"},"2982":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2983":{"x":836.8179038849663,"y":20.973229619022163,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2984":{"stops":[{"__isSmartRef__":true,"id":2985},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":2989},{"__isSmartRef__":true,"id":2991}],"vector":{"__isSmartRef__":true,"id":2980},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2985":{"offset":0,"color":{"__isSmartRef__":true,"id":2986}},"2986":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2987":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2988}},"2988":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2989":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2990}},"2990":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2991":{"offset":1,"color":{"__isSmartRef__":true,"id":2992}},"2992":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2993":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2994":{"sourceObj":{"__isSmartRef__":true,"id":2952},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2952},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2995":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2996":{"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"},"2997":{"morph":{"__isSmartRef__":true,"id":2952},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2998":{"x":34.37010312407733,"y":-11.180760580820959,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2999":{"moveHorizontal":true},"3000":{"onFire":{"__isSmartRef__":true,"id":3001}},"3001":{"varMapping":{"__isSmartRef__":true,"id":3002},"source":"function onFire() {\n var tab = this.owner.owner.tab\n var toolPane = this.get('ToolTabPane')\n toolPane.tabBar.removeTab(tab)\n if(toolPane.tabBar.getTabs().length == 0) {\n if (toolPane.owner instanceof lively.morphic.Window)\n toolPane.owner.remove();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3003},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3002":{"this":{"__isSmartRef__":true,"id":2952}},"3003":{"timestamp":{"__isSmartRef__":true,"id":3004},"user":"undefined","tags":[]},"3004":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:32:27 GMT+0100 (Mitteleuropäische Zeit)"},"3005":{"position":{"__isSmartRef__":true,"id":3006},"_Extent":{"__isSmartRef__":true,"id":3007},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3008},"_Fill":{"__isSmartRef__":true,"id":3009},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3010},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3011},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3006":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3007":{"x":872.0934621532042,"y":440.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3008":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3009":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3010":{"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"},"3011":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3012":{"partsSpaceName":"PartsBin/Dialogs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"requiredModules":["lively.ide"],"partName":"MethodFinderPane","comment":"Pane for new ToolTabs","changes":[{"__isSmartRef__":true,"id":3013},{"__isSmartRef__":true,"id":3015},{"__isSmartRef__":true,"id":3017},{"__isSmartRef__":true,"id":3019},{"__isSmartRef__":true,"id":3021},{"__isSmartRef__":true,"id":3023},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":3027}],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"revisionOnLoad":148699,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3013":{"date":{"__isSmartRef__":true,"id":3014},"author":"jenslincke","message":"- fixed browse Global definitions","id":"7DE86114-1D7E-4551-BC8F-E12A980A8EE9"},"3014":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:27:56 GMT+0100 (Mitteleuropäische Zeit)"},"3015":{"date":{"__isSmartRef__":true,"id":3016},"author":"athomschke","message":"adjusted close button","id":"9EBA6297-7908-4B02-81F5-2B86B2E4B73D"},"3016":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:57:09 GMT+0100 (Mitteleuropäische Zeit)"},"3017":{"date":{"__isSmartRef__":true,"id":3018},"author":"undefined","message":"","id":"47289007-8CB3-4B03-B9D1-3A8717E85DCB"},"3018":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:36:31 GMT+0100 (Mitteleuropäische Zeit)"},"3019":{"date":{"__isSmartRef__":true,"id":3020},"author":"undefined","message":"- close button behavior","id":"0AD4C501-1DC4-4DD3-AFDC-A46F4ACD2CE1"},"3020":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:32:48 GMT+0100 (Mitteleuropäische Zeit)"},"3021":{"date":{"__isSmartRef__":true,"id":3022},"author":"undefined","message":"","id":"CA16FEC1-49E5-4310-BDB6-F744F413F7EF"},"3022":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:48:35 GMT+0100 (Mitteleuropäische Zeit)"},"3023":{"date":{"__isSmartRef__":true,"id":3024},"author":"undefined","message":"","id":"73F39208-58C9-4040-9948-516A104E5049"},"3024":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:42:18 GMT+0100 (Mitteleuropäische Zeit)"},"3025":{"date":{"__isSmartRef__":true,"id":3026},"author":"undefined","message":"","id":"7A744B14-C057-4944-AFDD-CC78A910B35F"},"3026":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:40:30 GMT+0100 (Mitteleuropäische Zeit)"},"3027":{"date":{"__isSmartRef__":true,"id":3028},"author":"undefined","message":"some style adjustments","id":"DA3EFD12-8A45-454C-993B-DB12847BEF94"},"3028":{"isSerializedDate":true,"string":"Mon Mar 26 2012 13:16:30 GMT+0200 (Mitteleuropäische Sommerzeit)"},"3029":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"3030":{"x":872.0934621532042,"y":440.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3031":{"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"},"3032":{"morph":{"__isSmartRef__":true,"id":2592},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3033":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3034":{"x":583.4236186029176,"y":-13.858684727694055,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3035":{"search":{"__isSmartRef__":true,"id":3036},"browse":{"__isSmartRef__":true,"id":3040},"reset":{"__isSmartRef__":true,"id":3044},"setSearch":{"__isSmartRef__":true,"id":3048},"emphasizeStringIn":{"__isSmartRef__":true,"id":3051},"withAllMethodsDo":{"__isSmartRef__":true,"id":3054},"itemsFromFinds":{"__isSmartRef__":true,"id":3058},"browseMethod":{"__isSmartRef__":true,"id":3062},"openMethodInSystemBrowser":{"__isSmartRef__":true,"id":3066},"findSourceModule":{"__isSmartRef__":true,"id":3070},"searchOnServer":{"__isSmartRef__":true,"id":3074},"showLayerDefinition":{"__isSmartRef__":true,"id":3078}},"3036":{"varMapping":{"__isSmartRef__":true,"id":3037},"source":"function search(searchString) { \n this.get('searchResultList').updateList([]);\n this.get('sourceText').setTextString('');\n if (!searchString || (searchString.length < 2)) {\n this.get('sourceText').setTextString('\"' + searchString + '\" is to short');\n return;\n }\n var finds = [];\n var i=0;\n var matches = function(s) {\n return s.include(searchString)\n } \n\n // var re = new RegExp(searchString)\n var time = Functions.timeToRun(function() {\n this.withAllMethodsDo(function(object, eaMethod, type, optParent) {\n i++;\n var name;\n if (!object) return;\n\n if (object.constructor.prototype == object)\n name = object.constructor.name\n\n if (object.name) name = object.name;\n if (object.namespaceIdentifier)\n name = object.namespaceIdentifier\n\n if (object.constructor.prototype != object)\n name = name + \"(object)\"\n\n if ((object.constructor.prototype != object) && (object instanceof Morph))\n name = object.name + \"(\" + object.id + \")\"\n\n if (object === Global)\n name = \" \";\n\n if (type == \"layered\") {\n \n name = object._layered_object.constructor.type \n + \" (\" + optParent.name + \")\" \n \n }\n\n var string = name + \": \" + eaMethod; \n var item = {object: object, method: eaMethod, string: string, type: type};\n if (type == \"layered\") {\n item.layerName = optParent.name\n }\n\n if (matches(eaMethod)) {\n item.search= 'implementor',\n finds.push(item)\n return;\n } \n\n var f = object[eaMethod];\n if (!f || !f.getOriginal) return;\n var source = String(f.getOriginal())\n if (matches(source)){\n item.search = 'sender'\n finds.push(item)\n } \n })\n }.bind(this))\n this.get('sourceText').setTextString(\"search \" + i + \" methods, found \" \n + finds.length + \" methods in \" + time + \"ms\");\n var items = this.itemsFromFinds(finds)\n this.get('searchResultList').updateList(items);\n}","funcProperties":{"__isSmartRef__":true,"id":3038},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3037":{"this":{"__isSmartRef__":true,"id":2592}},"3038":{"timestamp":{"__isSmartRef__":true,"id":3039},"user":"undefined","tags":[]},"3039":{"isSerializedDate":true,"string":"Thu Jan 19 2012 14:46:43 GMT+0100 (Mitteleuropäische Zeit)"},"3040":{"varMapping":{"__isSmartRef__":true,"id":3041},"source":"function browse(methodItem) {\n // methodItem = this.get('searchResultList').selection\n if (! methodItem) return;\n\n // deal with non method findings....\n if (methodItem.type == 'layer') {\n this.showLayerDefinition(methodItem)\n return\n } \n\n // methodItem = this.get('searchResultList').selection\n var methodName = methodItem.method;\n var object = methodItem.object;\n var orgFunc = object[methodName];\n\n if (!orgFunc || !orgFunc.getOriginal) {\n this.get('sourceText').setTextString('no source');\n return\n }\n orgFunc = orgFunc.getOriginal()\n \n this.targetFunction = orgFunc;\n this.targetObject = object;\n\n var source = \"// changes here only affect runtime\\n\", \n tab = lively.morphic.Text.prototype.tab;\n if (methodItem.layerName) {\n var partialMethod = object[methodName];\n source += methodItem.layerName + \".refineClass(\" + \n object._layered_object.constructor.type + \", {\\n\" + \n tab + methodName + \": \" + partialMethod +\"\\n})\";\n } else if (orgFunc.belongsToTrait) {\n source += \"Trait('\" + orgFunc.belongsToTrait.name + \"', {\\n\" \n + tab + methodName + \": \" + orgFunc +\"\\n})\";\n } else if (orgFunc.declaredClass) {\n source += orgFunc.declaredClass + \".addMethods({\\n\" \n + tab + methodName + \": \" \n + orgFunc + \"\\n});\"\n } else if(methodItem.type == 'extend') {\n // perhaps it is a an class object\n source += \"Object.extend(\" + (object.type || object.namespaceIdentifier) \n + \",{\\n\" + tab + methodName + \": \" \n + orgFunc + \"\\n});\"\n } else if(object.isMorph && (object.constructor.prototype !== object) ) {\n // display as script\n source = \"this.addScript(\" + orgFunc + \");\"\n } else if(object === Global) {\n // display as script\n source += \"Object.extend(Global, {\\n\" + tab + methodName + \": \" +\n orgFunc + \"\\n});\"\n }\n\n this.get('sourceText').setTextString(source)\n\n module('lively.ide.SyntaxHighlighting').load(true);\n this.get('sourceText').highlightJavaScriptSyntax();\n\n var searchText = this.get('searchText').textString;\n var m = searchText.match(/[^a-zA-Z0-9_\\.]/g)\n if(m) {\n m.forEach(function (each) {\n var escapedChar = '\\\\' + each;\n var position = searchText.search(\n new RegExp('[^\\\\\\\\]' + '\\\\' + each)) + 1;\n searchText = searchText.substring(0,position) \n + escapedChar + searchText.substr(position + 1);\n });\n }\n this.get('sourceText').emphasizeRegex(new RegExp(searchText, 'g'), {color: Color.red});\n\n var info = '' + this.findSourceModule(orgFunc);\n\n if (orgFunc.belongsToTrait)\n info += ' (' + orgFunc.belongsToTrait + \" in \" + orgFunc.belongsToTrait.sourceModule +\")\";\n\n this.get('infoText').setTextString(info)\n}","funcProperties":{"__isSmartRef__":true,"id":3042},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3041":{"this":{"__isSmartRef__":true,"id":2592}},"3042":{"timestamp":{"__isSmartRef__":true,"id":3043},"user":"undefined","tags":[]},"3043":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:55:34 GMT+0100 (Mitteleuropäische Zeit)"},"3044":{"varMapping":{"__isSmartRef__":true,"id":3045},"source":"function reset() {\n this.doNotSerialize = ['targetFunction', 'targetObject']\n this.get('searchResultList').updateList([]);\n this.get('searchResultList').setSelection(null);\n this.get('searchText').setTextString('enter method name here');\n this.get('sourceText').setTextString('no code');\n this.get('infoText').setTextString('');\n this.targetFunction = null;\n this.targetObject = null;\n}","funcProperties":{"__isSmartRef__":true,"id":3046},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3045":{"this":{"__isSmartRef__":true,"id":2592}},"3046":{"timestamp":{"__isSmartRef__":true,"id":3047},"user":"undefined","tags":[]},"3047":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:30:14 GMT+0100 (Mitteleuropäische Zeit)"},"3048":{"varMapping":{"__isSmartRef__":true,"id":3049},"source":"function setSearch(searchString) {\n this.get('searchText').setTextString(searchString);\n this.search(searchString)\n var list = this.get('searchResultList').getList();\n if (list.length > 0) this.get('searchResultList').setSelection(list[0])\n}","funcProperties":{"__isSmartRef__":true,"id":3050},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3049":{"this":{"__isSmartRef__":true,"id":2592}},"3050":{},"3051":{"varMapping":{"__isSmartRef__":true,"id":3052},"source":"function emphasizeStringIn(morph, string, style) {\n var m;\n var re = new RegExp(string, \"g\");\n while(m = re.exec(morph.textString)) {\n var from = m.index,\n to = m.index + m[0].length;\n morph.emphasize(style, from, to)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3053},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3052":{"this":{"__isSmartRef__":true,"id":2592}},"3053":{},"3054":{"varMapping":{"__isSmartRef__":true,"id":3055},"source":"function withAllMethodsDo(func) {\n var visited = [];\n\n cop.allLayers().forEach(function(layer) {\n func(eval(layer.namespaceName), layer.name, 'layer')\n layer.layeredObjects().forEach(function(obj) {\n var layerDef = cop.getLayerDefinitionForObject(layer, obj)\n Functions.own(layerDef).forEach(function(eaMethod) {\n func(layerDef, eaMethod, 'layered', layer)\n });\n });\n }); \n\n\n Functions.own(Global).forEach(function(eaMethod) {\n func(Global, eaMethod, 'global')\n }); \n\n this.world().withAllSubmorphsDo(function(ea) {\n Functions.own(ea).forEach(function(eaMethod) {\n func(ea, eaMethod, 'script')\n }); \n });\n\n Global.subNamespaces(true).forEach(function(ea) {\n Functions.own(ea).forEach(function(eaMethod) {\n func(ea, eaMethod, 'extend')\n }); \n });\n\n Global.classes(true).uniq().forEach(function(eaClass) {\n Functions.own(eaClass).forEach(function(eaMethod) {\n func(eaClass, eaMethod, 'extend')\n }); \n\n Functions.own(eaClass.prototype).forEach(function(eaMethod) {\n func(eaClass.prototype, eaMethod, 'class')\n }) \n })\n}","funcProperties":{"__isSmartRef__":true,"id":3056},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3055":{"this":{"__isSmartRef__":true,"id":2592}},"3056":{"timestamp":{"__isSmartRef__":true,"id":3057},"user":"undefined","tags":[]},"3057":{"isSerializedDate":true,"string":"Thu Jan 19 2012 14:41:57 GMT+0100 (Mitteleuropäische Zeit)"},"3058":{"varMapping":{"__isSmartRef__":true,"id":3059},"source":"function itemsFromFinds(finds) {\n var searchString = this.get('searchText').textString;\n var items = finds.collect(function(ea) {\n var pref = \"\" + ea.type + \" \";\n if (ea.search == \"sender\") pref += \"full: \"\n if (ea.search == \"implementor\") pref += \"name: \"\n var string = pref + ea.string;\n var func = ea.object[ea.method];\n if (func.belongsToTrait) \n string += ' / ' + func.belongsToTrait + '' \n\n var result = {\n isListItem: true,\n value: ea,\n string: string,\n doNotSerialize: ['value'],\n priority: {implementor: \"B\", sender: \"C\"}[ea.search] || \"D\",\n };\n if (ea.method == searchString) result.priority = \"A\"\n return result\n })\n items = items.sortBy(function(ea) {return ea.priority + ea.string})\n return items\n}","funcProperties":{"__isSmartRef__":true,"id":3060},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3059":{"this":{"__isSmartRef__":true,"id":2592}},"3060":{"timestamp":{"__isSmartRef__":true,"id":3061},"user":"undefined","tags":[]},"3061":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:31:52 GMT+0100 (Mitteleuropäische Zeit)"},"3062":{"varMapping":{"__isSmartRef__":true,"id":3063},"source":"function browseMethod() {\n alertOK('browseMethod')\n var methodItem = this.get('searchResultList').selection;\n if (methodItem.type == 'layer') {\n var layer = methodItem.object[methodItem.method];\n this.openMethodInSystemBrowser(methodItem.method, \n undefined, layer.sourceModule);\n return\n }\n\n if (!this.targetFunction) return;\n var methodName = this.targetFunction.methodName || this.targetFunction.displayName; \n if(this.targetFunction.declaredClass) {\n var classObj = eval(this.targetFunction.declaredClass)\n this.openMethodInSystemBrowser(classObj.type, methodName);\n return;\n }\n if(this.targetFunction.belongsToTrait) {\n this.openMethodInSystemBrowser(this.targetFunction.belongsToTrait.name, methodName);\n return;\n }\n if(Class.isClass(this.targetObject)) {\n this.openMethodInSystemBrowser(this.targetObject.type, methodName);\n return;\n }\n if(this.targetObject.namespaceIdentifier) {\n this.openMethodInSystemBrowser(this.targetObject.namespaceIdentifier, methodName);\n return;\n }\n if(this.targetObject instanceof lively.morphic.Morph) {\n var editor = this.world().openObjectEditorFor(this.targetObject);\n editor.align(editor.bounds().center(), this.world().visibleBounds().center());\n return;\n }\n if (Class.isClass(this.targetFunction)) {\n // constructor\n this.openMethodInSystemBrowser(this.targetFunction.displayName);\n return;\n }\n \n alertOK('not implemented yet for ' + this.targetFunction)\n}","funcProperties":{"__isSmartRef__":true,"id":3064},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3063":{"this":{"__isSmartRef__":true,"id":2592}},"3064":{"timestamp":{"__isSmartRef__":true,"id":3065},"user":"undefined","tags":[]},"3065":{"isSerializedDate":true,"string":"Thu Jan 19 2012 16:54:12 GMT+0100 (Mitteleuropäische Zeit)"},"3066":{"varMapping":{"__isSmartRef__":true,"id":3067},"source":"function openMethodInSystemBrowser(objectName, methodName, optSourceModule) {\n if (objectName)\n objectName = objectName.replace(/^Global\\./,\"\");\n // alertOK(\"browse \" + objectName + \":\" + methodName)\n // objectName = 'SelectionMorphTrait', methodName = 'onDrag'\n var sourceModule = optSourceModule ||\n this.findSourceModule(this.targetFunction);\n if (!sourceModule) \n alert('could not browse, since no source module found!')\n var uri = new URL(sourceModule.uri()),\n relative = uri.relativePathFrom(new URL(Config.codeBase)),\n moduleNode = lively.ide.startSourceControl().addModule(relative),\n rootNode = moduleNode.ast();\n\n var fileFragments = rootNode.subElements(10).select(function(ea) {\n var path = ea.getOwnerNamePath()\n if (objectName == \"Global\")\n return path.include(methodName);\n return path.include(objectName) && (!methodName || path.include(methodName)) \n });\n \n\n\n // alertOK(\"found following places to browse: \" + fileFragments)\n if (fileFragments.length > 0) {\n fileFragments[0].browseIt()\n } else {\n alert(\"browse failed. Nothing found for \" + objectName + \">>\" + methodName + \" in \" + sourceModule.uri());\n rootNode.browseIt();\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":3068},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3067":{"this":{"__isSmartRef__":true,"id":2592}},"3068":{"timestamp":{"__isSmartRef__":true,"id":3069},"user":"jenslincke","tags":[]},"3069":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:27:23 GMT+0100 (Mitteleuropäische Zeit)"},"3070":{"varMapping":{"__isSmartRef__":true,"id":3071},"source":"function findSourceModule(funcObj) {\n if (this.targetFunction.belongsToTrait) \n return this.targetFunction.belongsToTrait.sourceModule\n if (funcObj.sourceModule)\n return funcObj.sourceModule;\n // look in the class\n if (!funcObj.sourceModule && funcObj.declaredClass) {\n var classObj = eval(funcObj.declaredClass)\n return classObj.sourceModule\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3072},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3071":{"this":{"__isSmartRef__":true,"id":2592}},"3072":{"user":"jenslincke","timestamp":{"__isSmartRef__":true,"id":3073}},"3073":{"isSerializedDate":true,"string":"Fri Nov 04 2011 15:27:13 GMT+0100 (Mitteleuropäische Zeit)"},"3074":{"varMapping":{"__isSmartRef__":true,"id":3075},"source":"function searchOnServer() {\n var serverSearch = this.world().openPartItem('ServerSearch', 'PartsBin/Tools'); \n serverSearch.setSearch(this.get('searchText').textString)\n}","funcProperties":{"__isSmartRef__":true,"id":3076},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3075":{"this":{"__isSmartRef__":true,"id":2592}},"3076":{"timestamp":{"__isSmartRef__":true,"id":3077},"user":"jenslincke","categories":[]},"3077":{"isSerializedDate":true,"string":"Fri Nov 18 2011 11:40:23 GMT+0100 (Mitteleuropäische Zeit)"},"3078":{"varMapping":{"__isSmartRef__":true,"id":3079},"source":"function showLayerDefinition(methodItem) {\n var info = \"layer definition\" \n var source = \"TODO: print layer def here...\"\n this.get('infoText').setTextString(info)\n this.get('sourceText').setTextString(source)\n}","funcProperties":{"__isSmartRef__":true,"id":3080},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3079":{"this":{"__isSmartRef__":true,"id":2592}},"3080":{"timestamp":{"__isSmartRef__":true,"id":3081},"user":"undefined","tags":[]},"3081":{"isSerializedDate":true,"string":"Thu Jan 19 2012 15:30:43 GMT+0100 (Mitteleuropäische Zeit)"},"3082":{"_Position":{"__isSmartRef__":true,"id":3083},"renderContextTable":{"__isSmartRef__":true,"id":3084},"_Extent":{"__isSmartRef__":true,"id":3007},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":3085},"_Fill":{"__isSmartRef__":true,"id":3086},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2588},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3083":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3084":{"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"},"3085":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3086":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3087":{"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"},"3088":{"morph":{"__isSmartRef__":true,"id":2591},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3089":{"x":872.0934621532042,"y":440.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3090":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"3091":{"x":0,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3092":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3093":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3094":{"submorphs":[{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3105}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3135},"derivationIds":[null],"id":"BEC54199-EF48-4871-9B71-C3B9277A7D04","renderContextTable":{"__isSmartRef__":true,"id":3141},"eventHandler":{"__isSmartRef__":true,"id":3142},"droppingEnabled":true,"halosEnabled":true,"tabBar":{"__isSmartRef__":true,"id":2527},"tabBarOffset":90,"pane":{"__isSmartRef__":true,"id":3143},"label":{"__isSmartRef__":true,"id":3095},"name":"S:insertElementAtCursor","grabbingEnabled":false,"draggingEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":3769},"closeButton":{"__isSmartRef__":true,"id":3105},"owner":{"__isSmartRef__":true,"id":2527},"_Position":{"__isSmartRef__":true,"id":3770},"isActive":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Tab"},"3095":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3096},"derivationIds":[null],"id":"00920191-5BD5-4CC4-9E36-725D02783109","renderContextTable":{"__isSmartRef__":true,"id":3100},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3101}],"eventHandler":{"__isSmartRef__":true,"id":3103},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_Position":{"__isSmartRef__":true,"id":3104},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"eventsAreDisabled":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":3094},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"3096":{"_Position":{"__isSmartRef__":true,"id":3097},"renderContextTable":{"__isSmartRef__":true,"id":3098},"_Extent":{"__isSmartRef__":true,"id":3099},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2534},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3097":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3098":{"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"},"3099":{"x":80,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3100":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3101":{"style":{"__isSmartRef__":true,"id":3102},"chunkOwner":{"__isSmartRef__":true,"id":3095},"storedString":"S:insertElementAtCursor","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3102":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3103":{"morph":{"__isSmartRef__":true,"id":3095},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3104":{"x":5,"y":5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3105":{"submorphs":[{"__isSmartRef__":true,"id":3106}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3117},"derivationIds":[null],"id":"709FD660-32E2-4158-8038-425A146FDF7D","renderContextTable":{"__isSmartRef__":true,"id":3121},"eventHandler":{"__isSmartRef__":true,"id":3122},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2558},"lighterFill":{"__isSmartRef__":true,"id":3123},"label":{"__isSmartRef__":true,"id":3106},"priorExtent":{"__isSmartRef__":true,"id":3116},"owner":{"__isSmartRef__":true,"id":3094},"_Position":{"__isSmartRef__":true,"id":3132},"attributeConnections":[{"__isSmartRef__":true,"id":3133}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Button"},"3106":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3107},"derivationIds":[null],"id":"6A6D3063-80BC-4435-96E8-2D29CA1083D9","renderContextTable":{"__isSmartRef__":true,"id":3112},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3113}],"eventHandler":{"__isSmartRef__":true,"id":3115},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3105},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":2535},"_Align":"center","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":3116},"_MaxTextWidth":20,"_MinTextWidth":20,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"3107":{"_Position":{"__isSmartRef__":true,"id":3108},"renderContextTable":{"__isSmartRef__":true,"id":3109},"_Extent":{"__isSmartRef__":true,"id":3110},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3111},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3108":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3109":{"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"},"3110":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3111":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3112":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3113":{"style":{"__isSmartRef__":true,"id":3114},"chunkOwner":{"__isSmartRef__":true,"id":3106},"storedString":"X","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3114":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3115":{"morph":{"__isSmartRef__":true,"id":3106},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3116":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3117":{"_Position":{"__isSmartRef__":true,"id":3118},"renderContextTable":{"__isSmartRef__":true,"id":3119},"_Extent":{"__isSmartRef__":true,"id":3110},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3120},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2557},"_Fill":{"__isSmartRef__":true,"id":2558},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3118":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3119":{"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"},"3120":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3121":{"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"},"3122":{"morph":{"__isSmartRef__":true,"id":3105},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3123":{"stops":[{"__isSmartRef__":true,"id":3124},{"__isSmartRef__":true,"id":3126},{"__isSmartRef__":true,"id":3128},{"__isSmartRef__":true,"id":3130}],"vector":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3124":{"offset":0,"color":{"__isSmartRef__":true,"id":3125}},"3125":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3126":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3127}},"3127":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3128":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3129}},"3129":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3130":{"offset":1,"color":{"__isSmartRef__":true,"id":3131}},"3131":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3132":{"x":67,"y":6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3133":{"sourceObj":{"__isSmartRef__":true,"id":3105},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3094},"targetMethodName":"closeTab","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3134},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3134":{"source":{"__isSmartRef__":true,"id":3105},"target":{"__isSmartRef__":true,"id":3094}},"3135":{"_Position":{"__isSmartRef__":true,"id":3136},"renderContextTable":{"__isSmartRef__":true,"id":3137},"_Extent":{"__isSmartRef__":true,"id":3138},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3139},"_Fill":{"__isSmartRef__":true,"id":3140},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2588},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3136":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3137":{"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"},"3138":{"x":90,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3139":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3140":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3141":{"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"},"3142":{"morph":{"__isSmartRef__":true,"id":3094},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3143":{"submorphs":[{"__isSmartRef__":true,"id":3144}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3759},"derivationIds":[null],"id":"55AD3A31-5CA5-47D8-B159-306AEB290259","renderContextTable":{"__isSmartRef__":true,"id":3764},"eventHandler":{"__isSmartRef__":true,"id":3765},"droppingEnabled":true,"halosEnabled":true,"tab":{"__isSmartRef__":true,"id":3094},"tabBar":{"__isSmartRef__":true,"id":2527},"priorExtent":{"__isSmartRef__":true,"id":3766},"_ClipMode":"scroll","grabbingEnabled":false,"draggingEnabled":false,"name":"S:insertElementAtCursor - Pane","layout":{"__isSmartRef__":true,"id":3767},"owner":{"__isSmartRef__":true,"id":2526},"_Position":{"__isSmartRef__":true,"id":3768},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.TabPane"},"3144":{"submorphs":[{"__isSmartRef__":true,"id":3145},{"__isSmartRef__":true,"id":3162},{"__isSmartRef__":true,"id":3210},{"__isSmartRef__":true,"id":3230},{"__isSmartRef__":true,"id":3485},{"__isSmartRef__":true,"id":3500},{"__isSmartRef__":true,"id":3547},{"__isSmartRef__":true,"id":3630}],"scripts":[],"id":"34D73331-D93C-4D70-9F23-80D7DEDFF3B8","shape":{"__isSmartRef__":true,"id":3683},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"MethodFinderPane1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3689},"__SourceModuleName__":"Global.lively.morphic.Core","isCopyMorphRef":true,"morphRefId":1,"layout":{"__isSmartRef__":true,"id":3706},"priorExtent":{"__isSmartRef__":true,"id":3707},"renderContextTable":{"__isSmartRef__":true,"id":3708},"eventHandler":{"__isSmartRef__":true,"id":3709},"attributeConnections":[],"doNotSerialize":["targetFunction","targetObject"],"doNotCopyProperties":[],"prevScroll":[0,0],"isBeingDragged":false,"_Position":{"__isSmartRef__":true,"id":3710},"derivationIds":[204,"90F6ED76-D56E-436C-96E7-CBFE7106283E","53162F18-6DD1-4230-B30F-EC4BA7B7A9ED","73F374A9-9CEE-4D2E-8BA6-030971E02396","0859BA09-FE36-4B7E-85B5-A141B84A252C","AB402971-988F-4D01-AE49-87C1AFEAA1C3","A80F8C19-12D2-49AF-941A-2454433D2A59","9370F962-CBB6-42C0-8F15-79D0F66045FD","2F24C0FF-1360-4C35-BE22-B5DE5FFAB3F4","81FC43AC-A19A-48A5-B854-601A302E5585","BBF2876B-A928-4012-A9BD-A39052E30483","3E2C739C-3BA6-4C2C-B7FB-A726AA7015BB"],"distanceToDragEvent":{"__isSmartRef__":true,"id":3711},"moved":true,"_Rotation":0,"_Scale":0.9880657804942092,"owner":{"__isSmartRef__":true,"id":3143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3712},"__LivelyClassName__":"lively.morphic.Box"},"3145":{"submorphs":[],"scripts":[],"id":"53F904D4-4CB2-40DA-A27D-880AE5A12074","shape":{"__isSmartRef__":true,"id":3146},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3152},"_MaxTextWidth":287,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3153},"showsHalos":false,"_FontSize":13,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"searchText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3154},"owner":{"__isSmartRef__":true,"id":3144},"charsReplaced":"enter method name here","lastFindLoc":22,"attributeConnections":[{"__isSmartRef__":true,"id":3155}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"isInputLine":true,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"textChunks":[{"__isSmartRef__":true,"id":3156}],"priorSelectionRange":[0,22],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3158},"lastSearchString":"prev","renderContextTable":{"__isSmartRef__":true,"id":3159},"eventHandler":{"__isSmartRef__":true,"id":3160},"_MinTextWidth":287,"_MinTextHeight":null,"previousSelection":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":3161},"isBeingDragged":false,"derivationIds":[205,"63CD6525-ECE4-4F52-A84B-27633C22F3F9","D7B775A2-513B-4768-AB24-6718580E61A9","FE8FA703-C984-4702-8139-2C4E9353FB41","2C124317-773E-498D-BB6D-9BEC99637AF3","BFDC0BE7-0289-4FA0-A2EC-14EF2BA09445","E16771FE-0062-4803-9678-9625DB0CFBFA","B9D2EC7D-E050-4D3D-8ABC-52D8ACA55936","196DC9F1-78FF-488F-80AB-8129A171A1C9","F2FB3FCC-8AE2-4DFB-AD6F-3DE2513762B0","4897081D-DCA7-4D33-B262-00412C9821FD","9DEE84F9-6727-4802-BD51-456C40E212F1"],"savedTextString":"bla","_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3146":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3147},"_Extent":{"__isSmartRef__":true,"id":3148},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3149},"renderContextTable":{"__isSmartRef__":true,"id":3150},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3151},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3147":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3148":{"x":292,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3149":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3150":{"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"},"3151":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3152":{"x":10,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3153":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3154":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3155":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3144},"targetMethodName":"search","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3156":{"style":{"__isSmartRef__":true,"id":3157},"chunkOwner":{"__isSmartRef__":true,"id":3145},"storedString":"insertElementAtCursor","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3157":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3158":{"x":292,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3159":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3160":{"morph":{"__isSmartRef__":true,"id":3145},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3161":{"x":199.7085210421884,"y":-15.498997494989453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3162":{"submorphs":[{"__isSmartRef__":true,"id":3163}],"scripts":[],"id":"5F533526-E500-4961-B37B-73B5D4C423A8","shape":{"__isSmartRef__":true,"id":3178},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3194},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":3182},"lighterFill":{"__isSmartRef__":true,"id":3195},"label":{"__isSmartRef__":true,"id":3163},"showsHalos":false,"name":"searchButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":3204},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":3144},"attributeConnections":[{"__isSmartRef__":true,"id":3205}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":3206},"renderContextTable":{"__isSmartRef__":true,"id":3207},"eventHandler":{"__isSmartRef__":true,"id":3208},"distanceToDragEvent":{"__isSmartRef__":true,"id":3209},"derivationIds":[206,"CB9026E7-BAD5-49AB-B6E0-88B46D561743","C2FEDA8A-ABCE-426D-BB39-F8B4C0CCBE5F","21DC60CF-D1A0-4B54-9B91-F82A50CF8D3A","6E0B3DCD-9AD6-4AAF-A854-252E628FC222","457022C0-0CD0-426F-89B8-DAA8E3AA15C0","AE87A8FC-A7FF-40D5-B8B3-351194957A1B","0107A29A-C954-43A8-82FD-CEE77E946A25","E82E1B35-1C20-4BE4-A5CB-0936E7D4AD20","7485F277-13B5-4FF4-9B90-10385A227006","216A87FA-4CA8-4657-886E-D2EE1398E86F","051E1CDB-3E9B-41A7-89A7-24E539E5FA37"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"3163":{"submorphs":[],"scripts":[],"id":"B8CF69F3-BE44-4ABC-ADAA-4CE911D67D6D","shape":{"__isSmartRef__":true,"id":3164},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3170},"_MaxTextWidth":77,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":3171},"_Padding":{"__isSmartRef__":true,"id":3172},"owner":{"__isSmartRef__":true,"id":3162},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":3173}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3175},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3176},"eventHandler":{"__isSmartRef__":true,"id":3177},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":77,"_MinTextHeight":null,"derivationIds":[207,"9A623BA1-A240-454B-B0DD-53932A371FB3","9E828467-210E-44D4-8E3D-17C5F92B1AAE","75AF52F1-0E7E-419A-BC00-5CCC0D52CEDC","F3C81240-9550-45C3-8B7A-8A3C0ED15BE6","70D8CC33-5AEE-45B5-AC0B-B9A6350C7F51","C80D2176-BA4F-4DCF-88D8-540ADE03E6B9","CB9FE42C-61BF-409D-9CC7-1F1B094C61FA","BF7D1270-418D-46A3-95E5-991F82DAD8C6","CDA433D8-442B-4D3A-A58E-F9C5FCED9086","039DDED5-FFAA-423A-99F2-2236BB594511","E618043F-74DF-4D4A-991F-5AA47FD766F8"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3164":{"position":{"__isSmartRef__":true,"id":3165},"_Extent":{"__isSmartRef__":true,"id":3166},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3167},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3168},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3169},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3165":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3166":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3167":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3168":{"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"},"3169":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3170":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3171":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3172":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3173":{"style":{"__isSmartRef__":true,"id":3174},"morph":{"__isSmartRef__":true,"id":3163},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":3163},"storedString":"search","__LivelyClassName__":"lively.morphic.TextChunk"},"3174":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3175":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3176":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3177":{"morph":{"__isSmartRef__":true,"id":3163},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3178":{"position":{"__isSmartRef__":true,"id":3179},"_Extent":{"__isSmartRef__":true,"id":3180},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3181},"_Fill":{"__isSmartRef__":true,"id":3182},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3192},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3193},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3180":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3181":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3182":{"stops":[{"__isSmartRef__":true,"id":3183},{"__isSmartRef__":true,"id":3185},{"__isSmartRef__":true,"id":3187},{"__isSmartRef__":true,"id":3189}],"vector":{"__isSmartRef__":true,"id":3191},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3183":{"offset":0,"color":{"__isSmartRef__":true,"id":3184}},"3184":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3185":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3186}},"3186":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3187":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3188}},"3188":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3189":{"offset":1,"color":{"__isSmartRef__":true,"id":3190}},"3190":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3191":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3192":{"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"},"3193":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3194":{"x":310,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3195":{"stops":[{"__isSmartRef__":true,"id":3196},{"__isSmartRef__":true,"id":3198},{"__isSmartRef__":true,"id":3200},{"__isSmartRef__":true,"id":3202}],"vector":{"__isSmartRef__":true,"id":3191},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3196":{"offset":0,"color":{"__isSmartRef__":true,"id":3197}},"3197":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3198":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3199}},"3199":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3200":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3201}},"3201":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3202":{"offset":1,"color":{"__isSmartRef__":true,"id":3203}},"3203":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3204":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3205":{"sourceObj":{"__isSmartRef__":true,"id":3162},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3145},"targetMethodName":"doSave","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3206":{"x":77,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3207":{"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"},"3208":{"morph":{"__isSmartRef__":true,"id":3162},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3209":{"x":53.70852104218841,"y":-21.498997494989453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3210":{"submorphs":[],"scripts":[],"id":"FBC7DD2C-090F-4623-809B-4E0467164528","shape":{"__isSmartRef__":true,"id":3211},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3218},"itemList":[{"__isSmartRef__":true,"id":3219},{"__isSmartRef__":true,"id":3220},{"__isSmartRef__":true,"id":3221}],"showsHalos":false,"name":"searchResultList","partsBinMetaInfo":{"__isSmartRef__":true,"id":3222},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":3144},"attributeConnections":[{"__isSmartRef__":true,"id":3223}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,192],"resizeHeight":true,"resizeWidth":true,"layout":{"__isSmartRef__":true,"id":3224},"priorExtent":{"__isSmartRef__":true,"id":3225},"renderContextTable":{"__isSmartRef__":true,"id":3226},"eventHandler":{"__isSmartRef__":true,"id":3227},"distanceToDragEvent":{"__isSmartRef__":true,"id":3228},"isBeingDragged":false,"derivationIds":[208,"884F3C31-F47F-4325-B01C-55796601323C","AF542C45-CFC5-475A-B28E-37B7FC51E468","C6B09735-9683-446C-A39C-E4924083B282","7860DCD2-EC25-4F34-B79B-18C47FBEE925","7ACC50AB-EE77-4AD9-8731-20150C616D1C","6A21BD7F-EC45-467D-BDA4-F218B9407920","0B0BFDF5-91C4-4369-AB7F-07CDAE8813BF","0D9A4870-E562-4C17-A057-3DB8D1C9234C","854096E7-42E2-48F4-B656-D1AE606FAEBF","659ABB8A-3E6D-4E1C-864B-CE8459AD730A","1A73ECB5-B976-457C-8138-8385DBD45070"],"_Rotation":0,"_Scale":1,"selection":{"__isSmartRef__":true,"id":3229},"selectedLineNo":0,"__LivelyClassName__":"lively.morphic.List"},"3211":{"position":{"__isSmartRef__":true,"id":3212},"_Extent":{"__isSmartRef__":true,"id":3213},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3214},"_Fill":{"__isSmartRef__":true,"id":3215},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3216},"_Padding":{"__isSmartRef__":true,"id":3217},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3212":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3213":{"x":845.6764200688274,"y":140,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3214":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3215":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3216":{"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"},"3217":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3218":{"x":10,"y":50,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3219":{"isListItem":true,"string":"class name: Text: insertElementAtCursor","doNotSerialize":["value"],"priority":"A"},"3220":{"isListItem":true,"string":"class full: Text: insertAtCursor","doNotSerialize":["value"],"priority":"C"},"3221":{"isListItem":true,"string":"script full: MethodFinderPane(EA0B0DCC-6B9B-4A9E-92F9-D2C69DCB83BD): targetFunction","doNotSerialize":["value"],"priority":"C"},"3222":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3223":{"sourceObj":{"__isSmartRef__":true,"id":3210},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":3144},"targetMethodName":"browse","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3224":{"resizeWidth":true},"3225":{"x":850.9484727040478,"y":140,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3226":{"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","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"},"3227":{"morph":{"__isSmartRef__":true,"id":3210},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3228":{"x":589.7085210421884,"y":-14.498997494989453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3229":{"object":{"__isSmartRef__":true,"id":2687},"method":"insertElementAtCursor","string":"Text: insertElementAtCursor","type":"class","search":"implementor"},"3230":{"submorphs":[],"scripts":[],"id":"C80DBDC6-3969-46EA-9A8F-CA725A57F9C1","shape":{"__isSmartRef__":true,"id":3231},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3237},"_MaxTextWidth":825.6764200688274,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":3238},"doitContext":{"__isSmartRef__":true,"id":3144},"charsReplaced":"","lastFindLoc":130,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"sourceText","savedTextString":"// changes here only affect runtime\nObject.extend(lively.morphic.Morph,{\n\tmakeLine:function (verts, lineWidth, lineColor) {\n\t\tif (verts.length < 2) return null;\n\t\tif (verts.length > 2) {\n\t\t\t// Polylines become a mere blob for now...\n\t\t\tvar morph = this.makeRectangle(Rectangle.unionPts(verts));\n\t\t\tmorph.setBorderWidth(lineWidth);\n\t\t\tmorph.setBorderColor(lineColor);\n\t\t\tmorph.setFill(null);\n\t\t\treturn morph;\n\t\t} \n\t\t// Okay, it's a simple line...\n\t\tvar p1 = verts[0]; var p2 = verts[1];\n\t\tvar v = p2.subPt(p1);\n \n\t\t// First make a horizontal line of the same length with origin at (0, 0)\n\t\tvar morph = this.makeRectangle(Rectangle.unionPts([pt(0, -lineWidth/2), Point.polar(v.r(), 0).addXY(0, lineWidth/2)]));\n\n\t\t// *** Not right, but we want to make position and center of rot = (0, 0):\n\t\t// morph._Position = pt(0, 0);\n\n\t\tmorph.setBorderWidth(0);\n\t\tmorph.setFill(lineColor);\n\n\t\t// Then move and rotate, with first vertex being the rotation center\n\t\tmorph.moveBy(p1);\n\t\tmorph.setOrigin(pt(0, lineWidth/2));\n\t\tmorph.isLine = true;\n\t\treturn morph.rotateBy(v.theta());\n\t}\n});","textChunks":[{"__isSmartRef__":true,"id":3239},{"__isSmartRef__":true,"id":3241},{"__isSmartRef__":true,"id":3243},{"__isSmartRef__":true,"id":3245},{"__isSmartRef__":true,"id":3247},{"__isSmartRef__":true,"id":3249},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":3253},{"__isSmartRef__":true,"id":3255},{"__isSmartRef__":true,"id":3257},{"__isSmartRef__":true,"id":3259},{"__isSmartRef__":true,"id":3261},{"__isSmartRef__":true,"id":3263},{"__isSmartRef__":true,"id":3265},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":3269},{"__isSmartRef__":true,"id":3271},{"__isSmartRef__":true,"id":3273},{"__isSmartRef__":true,"id":3275},{"__isSmartRef__":true,"id":3277},{"__isSmartRef__":true,"id":3279},{"__isSmartRef__":true,"id":3281},{"__isSmartRef__":true,"id":3283},{"__isSmartRef__":true,"id":3285},{"__isSmartRef__":true,"id":3287},{"__isSmartRef__":true,"id":3289},{"__isSmartRef__":true,"id":3291},{"__isSmartRef__":true,"id":3293},{"__isSmartRef__":true,"id":3295},{"__isSmartRef__":true,"id":3297},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3301},{"__isSmartRef__":true,"id":3303},{"__isSmartRef__":true,"id":3305},{"__isSmartRef__":true,"id":3307},{"__isSmartRef__":true,"id":3309},{"__isSmartRef__":true,"id":3311},{"__isSmartRef__":true,"id":3313},{"__isSmartRef__":true,"id":3315},{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3320},{"__isSmartRef__":true,"id":3322},{"__isSmartRef__":true,"id":3324},{"__isSmartRef__":true,"id":3326},{"__isSmartRef__":true,"id":3328},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3332},{"__isSmartRef__":true,"id":3334},{"__isSmartRef__":true,"id":3336},{"__isSmartRef__":true,"id":3338},{"__isSmartRef__":true,"id":3340},{"__isSmartRef__":true,"id":3342},{"__isSmartRef__":true,"id":3344},{"__isSmartRef__":true,"id":3346},{"__isSmartRef__":true,"id":3348},{"__isSmartRef__":true,"id":3350},{"__isSmartRef__":true,"id":3352},{"__isSmartRef__":true,"id":3354},{"__isSmartRef__":true,"id":3356},{"__isSmartRef__":true,"id":3358},{"__isSmartRef__":true,"id":3360},{"__isSmartRef__":true,"id":3362},{"__isSmartRef__":true,"id":3364},{"__isSmartRef__":true,"id":3366},{"__isSmartRef__":true,"id":3368},{"__isSmartRef__":true,"id":3370},{"__isSmartRef__":true,"id":3372},{"__isSmartRef__":true,"id":3374},{"__isSmartRef__":true,"id":3376},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":3380},{"__isSmartRef__":true,"id":3382},{"__isSmartRef__":true,"id":3384},{"__isSmartRef__":true,"id":3386},{"__isSmartRef__":true,"id":3388},{"__isSmartRef__":true,"id":3390},{"__isSmartRef__":true,"id":3392},{"__isSmartRef__":true,"id":3394},{"__isSmartRef__":true,"id":3396},{"__isSmartRef__":true,"id":3398},{"__isSmartRef__":true,"id":3400},{"__isSmartRef__":true,"id":3402},{"__isSmartRef__":true,"id":3404},{"__isSmartRef__":true,"id":3406},{"__isSmartRef__":true,"id":3408},{"__isSmartRef__":true,"id":3410},{"__isSmartRef__":true,"id":3412},{"__isSmartRef__":true,"id":3414},{"__isSmartRef__":true,"id":3416},{"__isSmartRef__":true,"id":3418},{"__isSmartRef__":true,"id":3420},{"__isSmartRef__":true,"id":3422},{"__isSmartRef__":true,"id":3424},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3428},{"__isSmartRef__":true,"id":3430},{"__isSmartRef__":true,"id":3432},{"__isSmartRef__":true,"id":3434},{"__isSmartRef__":true,"id":3436},{"__isSmartRef__":true,"id":3438},{"__isSmartRef__":true,"id":3440},{"__isSmartRef__":true,"id":3442},{"__isSmartRef__":true,"id":3444},{"__isSmartRef__":true,"id":3446},{"__isSmartRef__":true,"id":3448},{"__isSmartRef__":true,"id":3450},{"__isSmartRef__":true,"id":3452},{"__isSmartRef__":true,"id":3454},{"__isSmartRef__":true,"id":3456},{"__isSmartRef__":true,"id":3458},{"__isSmartRef__":true,"id":3460},{"__isSmartRef__":true,"id":3462},{"__isSmartRef__":true,"id":3464}],"priorSelectionRange":[353,365],"_ClipMode":"auto","prevScroll":[0,0],"_FontSize":9,"owner":{"__isSmartRef__":true,"id":3144},"priorExtent":{"__isSmartRef__":true,"id":3466},"lastSyntaxHighlightTime":1334827289812,"renderContextTable":{"__isSmartRef__":true,"id":3467},"eventHandler":{"__isSmartRef__":true,"id":3468},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":825.6764200688274,"_MinTextHeight":null,"previousSelection":[360,360],"distanceToDragEvent":{"__isSmartRef__":true,"id":3469},"isBeingDragged":false,"derivationIds":[209,"04D0F127-514D-4BED-841E-6A4CEF4FFDDA","D40D5739-DE56-49F4-B02A-A4ED75AF054A","42528900-D082-4C7A-8E70-1E67923301D9","5167B7DC-8F45-4AD0-96D7-947FF3EE0BB7","D0BFE91E-6EF1-4165-A42C-CC81C9CD2050","04C1BABF-5514-417C-AE67-882A1252EB67","8B053B4D-76D1-4DCB-8E89-8E7ABA3EF3D1","CB2FFA38-BC16-4D98-A807-722CCCC26062","D19D6343-8887-4386-8B87-4560230A5D11","2FFE6CC8-A851-44E9-B6B7-9D9370DEB9C9","A1509C4A-C98B-44CF-ACF8-DA444E7A9B75"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3470},"__LivelyClassName__":"lively.morphic.Text"},"3231":{"position":{"__isSmartRef__":true,"id":3232},"_Extent":{"__isSmartRef__":true,"id":3233},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3149},"_Fill":{"__isSmartRef__":true,"id":3234},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3235},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":3236},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3232":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3233":{"x":845.6764200688274,"y":195.7127101296919,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3234":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3235":{"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"},"3236":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3237":{"x":10,"y":230,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3238":{"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false},"3239":{"style":{"__isSmartRef__":true,"id":3240},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// changes here only affect runtime","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3240":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3241":{"style":{"__isSmartRef__":true,"id":3242},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3242":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3243":{"style":{"__isSmartRef__":true,"id":3244},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3244":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3245":{"style":{"__isSmartRef__":true,"id":3246},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3246":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3247":{"style":{"__isSmartRef__":true,"id":3248},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"addMethods","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3248":{"color":{"__isSmartRef__":true,"id":2747},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3249":{"style":{"__isSmartRef__":true,"id":3250},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"(","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3250":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3251":{"style":{"__isSmartRef__":true,"id":3252},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3252":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3253":{"style":{"__isSmartRef__":true,"id":3254},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3254":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3255":{"style":{"__isSmartRef__":true,"id":3256},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"insertElementAtCursor","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3256":{"color":{"__isSmartRef__":true,"id":2756},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3257":{"style":{"__isSmartRef__":true,"id":3258},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":":","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3258":{"color":{"__isSmartRef__":true,"id":2759},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3259":{"style":{"__isSmartRef__":true,"id":3260},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3260":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3261":{"style":{"__isSmartRef__":true,"id":3262},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"function","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3262":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3263":{"style":{"__isSmartRef__":true,"id":3264},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" (element, selectIt, overwriteSelection, replacementTextChunks) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3264":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3265":{"style":{"__isSmartRef__":true,"id":3266},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3266":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3267":{"style":{"__isSmartRef__":true,"id":3268},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3268":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3269":{"style":{"__isSmartRef__":true,"id":3270},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"//console.log('Text>>","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3270":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3271":{"style":{"__isSmartRef__":true,"id":3272},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"insertElementAtCursor","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3272":{"color":{"__isSmartRef__":true,"id":2756},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3273":{"style":{"__isSmartRef__":true,"id":3274},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"');","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3274":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3275":{"style":{"__isSmartRef__":true,"id":3276},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3276":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3277":{"style":{"__isSmartRef__":true,"id":3278},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// FIXME refactor!!!","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3278":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3279":{"style":{"__isSmartRef__":true,"id":3280},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3280":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3281":{"style":{"__isSmartRef__":true,"id":3282},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"var","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3282":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3283":{"style":{"__isSmartRef__":true,"id":3284},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" node = element,\n selRange = ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3284":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3285":{"style":{"__isSmartRef__":true,"id":3286},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3286":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3287":{"style":{"__isSmartRef__":true,"id":3288},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".getSelectionRange(),\n sel = ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3288":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3289":{"style":{"__isSmartRef__":true,"id":3290},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3290":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3291":{"style":{"__isSmartRef__":true,"id":3292},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".domSelection(),\n range;\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3292":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3293":{"style":{"__isSmartRef__":true,"id":3294},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3294":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3295":{"style":{"__isSmartRef__":true,"id":3296},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" (!sel) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3296":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3297":{"style":{"__isSmartRef__":true,"id":3298},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3298":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3299":{"style":{"__isSmartRef__":true,"id":3300},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3300":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3301":{"style":{"__isSmartRef__":true,"id":3302},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// FIXME: This fixes the empty workspace bug. What else is needed?","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3302":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3303":{"style":{"__isSmartRef__":true,"id":3304},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3304":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3305":{"style":{"__isSmartRef__":true,"id":3306},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3306":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3307":{"style":{"__isSmartRef__":true,"id":3308},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".renderContext().textNode.appendChild(element);\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3308":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3309":{"style":{"__isSmartRef__":true,"id":3310},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"return","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3310":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3311":{"style":{"__isSmartRef__":true,"id":3312},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":";\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3312":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3313":{"style":{"__isSmartRef__":true,"id":3314},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3314":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3315":{"style":{"__isSmartRef__":true,"id":3316},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n range = sel.getRangeAt(","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3316":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3317":{"style":{"__isSmartRef__":true,"id":3318},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"0","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3318":{"color":{"__isSmartRef__":true,"id":3319},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3319":{"r":0,"g":0,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3320":{"style":{"__isSmartRef__":true,"id":3321},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":");\n\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3321":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3322":{"style":{"__isSmartRef__":true,"id":3323},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3323":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3324":{"style":{"__isSmartRef__":true,"id":3325},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" (overwriteSelection) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3325":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3326":{"style":{"__isSmartRef__":true,"id":3327},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3327":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3328":{"style":{"__isSmartRef__":true,"id":3329},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3329":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3330":{"style":{"__isSmartRef__":true,"id":3331},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// save info for 'More' command","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3331":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3332":{"style":{"__isSmartRef__":true,"id":3333},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3333":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3334":{"style":{"__isSmartRef__":true,"id":3335},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3335":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3336":{"style":{"__isSmartRef__":true,"id":3337},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".charsReplaced = range.toString();\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3337":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3338":{"style":{"__isSmartRef__":true,"id":3339},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3339":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3340":{"style":{"__isSmartRef__":true,"id":3341},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".lastFindLoc = ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3341":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3342":{"style":{"__isSmartRef__":true,"id":3343},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3343":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3344":{"style":{"__isSmartRef__":true,"id":3345},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".getSelectionRange()[","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3345":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3346":{"style":{"__isSmartRef__":true,"id":3347},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"0","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3347":{"color":{"__isSmartRef__":true,"id":3319},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3348":{"style":{"__isSmartRef__":true,"id":3349},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"] + element.textContent.length;\n range.deleteContents();\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3349":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3350":{"style":{"__isSmartRef__":true,"id":3351},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"var","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3351":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3352":{"style":{"__isSmartRef__":true,"id":3353},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" selPosAfterOverwrite = ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3353":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3354":{"style":{"__isSmartRef__":true,"id":3355},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"Math","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3355":{"color":{"__isSmartRef__":true,"id":2777},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3356":{"style":{"__isSmartRef__":true,"id":3357},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".min(selRange[","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3357":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3358":{"style":{"__isSmartRef__":true,"id":3359},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"0","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3359":{"color":{"__isSmartRef__":true,"id":3319},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3360":{"style":{"__isSmartRef__":true,"id":3361},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"],selRange[","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3361":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3362":{"style":{"__isSmartRef__":true,"id":3363},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"1","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3363":{"color":{"__isSmartRef__":true,"id":3319},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3364":{"style":{"__isSmartRef__":true,"id":3365},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"]);\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3365":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3366":{"style":{"__isSmartRef__":true,"id":3367},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3367":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3368":{"style":{"__isSmartRef__":true,"id":3369},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".setSelectionRange(selPosAfterOverwrite, selPosAfterOverwrite)\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3369":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3370":{"style":{"__isSmartRef__":true,"id":3371},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3371":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3372":{"style":{"__isSmartRef__":true,"id":3373},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3373":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3374":{"style":{"__isSmartRef__":true,"id":3375},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"else","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3375":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3376":{"style":{"__isSmartRef__":true,"id":3377},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3377":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3378":{"style":{"__isSmartRef__":true,"id":3379},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3379":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3380":{"style":{"__isSmartRef__":true,"id":3381},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3381":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3382":{"style":{"__isSmartRef__":true,"id":3383},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// insert new node after current selection","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3383":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3384":{"style":{"__isSmartRef__":true,"id":3385},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3385":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3386":{"style":{"__isSmartRef__":true,"id":3387},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// after current selection depends on selection direction","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3387":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3388":{"style":{"__isSmartRef__":true,"id":3389},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3389":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3390":{"style":{"__isSmartRef__":true,"id":3391},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// either focusNode or anchorNode","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3391":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3392":{"style":{"__isSmartRef__":true,"id":3393},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3393":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3394":{"style":{"__isSmartRef__":true,"id":3395},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3395":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3396":{"style":{"__isSmartRef__":true,"id":3397},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" (selRange[","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3397":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3398":{"style":{"__isSmartRef__":true,"id":3399},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"0","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3399":{"color":{"__isSmartRef__":true,"id":3319},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3400":{"style":{"__isSmartRef__":true,"id":3401},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"] < selRange[","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3401":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3402":{"style":{"__isSmartRef__":true,"id":3403},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"1","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3403":{"color":{"__isSmartRef__":true,"id":3319},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3404":{"style":{"__isSmartRef__":true,"id":3405},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"])\n range.setStart(sel.focusNode, sel.focusOffset);\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3405":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3406":{"style":{"__isSmartRef__":true,"id":3407},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"else","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3407":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3408":{"style":{"__isSmartRef__":true,"id":3409},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n range.setStart(sel.anchorNode, sel.anchorOffset);\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3409":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3410":{"style":{"__isSmartRef__":true,"id":3411},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3411":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3412":{"style":{"__isSmartRef__":true,"id":3413},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n range.insertNode(node);\n sel.removeAllRanges();\n\n range = document.createRange()\n\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3413":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3414":{"style":{"__isSmartRef__":true,"id":3415},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3415":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3416":{"style":{"__isSmartRef__":true,"id":3417},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" (selectIt) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3417":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3418":{"style":{"__isSmartRef__":true,"id":3419},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3419":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3420":{"style":{"__isSmartRef__":true,"id":3421},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n range.selectNode(node)\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3421":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3422":{"style":{"__isSmartRef__":true,"id":3423},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3423":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3424":{"style":{"__isSmartRef__":true,"id":3425},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3425":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3426":{"style":{"__isSmartRef__":true,"id":3427},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"else","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3427":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3428":{"style":{"__isSmartRef__":true,"id":3429},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3429":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3430":{"style":{"__isSmartRef__":true,"id":3431},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3431":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3432":{"style":{"__isSmartRef__":true,"id":3433},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3433":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3434":{"style":{"__isSmartRef__":true,"id":3435},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// no real selection but set cursor, FIXME use setCursor or something","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3435":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3436":{"style":{"__isSmartRef__":true,"id":3437},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n range.setStartAfter(node)\n range.setEndAfter(node)\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3437":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3438":{"style":{"__isSmartRef__":true,"id":3439},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3439":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3440":{"style":{"__isSmartRef__":true,"id":3441},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n\n sel.addRange(range);\n\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3441":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3442":{"style":{"__isSmartRef__":true,"id":3443},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// string has changed, removed cached version","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3443":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3444":{"style":{"__isSmartRef__":true,"id":3445},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3445":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3446":{"style":{"__isSmartRef__":true,"id":3447},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3447":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3448":{"style":{"__isSmartRef__":true,"id":3449},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".cachedTextString = null;\n\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3449":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3450":{"style":{"__isSmartRef__":true,"id":3451},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"// inconsistent nodes could have been added...","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3451":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3452":{"style":{"__isSmartRef__":true,"id":3453},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3453":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3454":{"style":{"__isSmartRef__":true,"id":3455},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3455":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3456":{"style":{"__isSmartRef__":true,"id":3457},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":".fixChunks()\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3457":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3458":{"style":{"__isSmartRef__":true,"id":3459},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3459":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3460":{"style":{"__isSmartRef__":true,"id":3461},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3461":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3462":{"style":{"__isSmartRef__":true,"id":3463},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3463":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3464":{"style":{"__isSmartRef__":true,"id":3465},"chunkOwner":{"__isSmartRef__":true,"id":3230},"storedString":");","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3465":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3466":{"x":845.6764200688274,"y":195.7127101296919,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3467":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3468":{"morph":{"__isSmartRef__":true,"id":3230},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3469":{"x":582.0068382418127,"y":-20.48073201899024,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3470":{"doSave":{"__isSmartRef__":true,"id":3471},"getDoitContext":{"__isSmartRef__":true,"id":3478}},"3471":{"varMapping":{"__isSmartRef__":true,"id":3472},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":3477},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3472":{"this":{"__isSmartRef__":true,"id":3230},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3473}},"3473":{"$super":{"__isSmartRef__":true,"id":3474}},"3474":{"varMapping":{"__isSmartRef__":true,"id":3475},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":3476},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3475":{"obj":{"__isSmartRef__":true,"id":3230},"name":"doSave"},"3476":{},"3477":{},"3478":{"varMapping":{"__isSmartRef__":true,"id":3479},"source":"function getDoitContext() {\n\treturn this.owner.targetObject\n}","funcProperties":{"__isSmartRef__":true,"id":3484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3479":{"this":{"__isSmartRef__":true,"id":3230},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3480}},"3480":{"$super":{"__isSmartRef__":true,"id":3481}},"3481":{"varMapping":{"__isSmartRef__":true,"id":3482},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":3483},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3482":{"obj":{"__isSmartRef__":true,"id":3230},"name":"getDoitContext"},"3483":{},"3484":{},"3485":{"submorphs":[],"scripts":[],"id":"2D617749-484A-488B-AD74-2BF331EE32D3","shape":{"__isSmartRef__":true,"id":3486},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3492},"_MaxTextWidth":841.6764200688274,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":3493},"charsReplaced":"","lastFindLoc":697,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"infoText","savedTextString":"// MethodFinder (this)\n\n// ** MethodFinder's Scripts **\nthis.addScript(function browse(fileFragment) {\n\tfileFragment && fileFragment.browseIt()\n});\n\nthis.addScript(function reset() {\n\tthis.get('searchResultList').updateList([]);\n\tthis.get('searchResultList').setSelection(null);\n\tthis.get('searchText').setTextString('enter search term here');\n});\n\n\nthis.addScript(function search(searchString) {\n\tvar finds = [];\n\tvar re = new RegExp(searchString)\n\tvar i=0;\n\tvar time = Functions.timeToRun(function() {\n\tGlobal.classes(true).forEach(function(eaClass) {\n\t\tFunctions.own(eaClass.prototype)\n\t\t\t.forEach(function(eaMethod) {\n\t\t\t\ti++;\n\t\t\t\tif (eaMethod.match(re)){\n\t\t\t\t\tfinds.push([eaClass, eaMethod])\n\t\t\t\t}\t\n\t\t\t})\t\n\t})})\n\talert(\"search \" + i + \" methods, found \" + finds.length + \" methods in \" + time + \"ms\")\n\n\tvar items = finds.collect(function(ea) {\n\t\treturn {\n\t\t\tisListItem: true,\n\t\t\tvalue: ea,\n\t\t\tstring: ea[0].name + \": \" + ea[1],\n\t\t}\n\t})\n\tthis.get('searchResultList').updateList(items);\n});","textChunks":[{"__isSmartRef__":true,"id":3494}],"priorSelectionRange":[37,37],"_ClipMode":"hidden","prevScroll":[0,0],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":3496},"owner":{"__isSmartRef__":true,"id":3144},"renderContextTable":{"__isSmartRef__":true,"id":3497},"eventHandler":{"__isSmartRef__":true,"id":3498},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":841.6764200688274,"_MinTextHeight":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":3499},"derivationIds":[210,"E20B9061-6128-4BD4-BE8B-4B50F9BC8EA1","FFFED58E-70A3-4945-A7C8-19E2C0754BB7","1B69878E-8E43-4E25-BAE7-3D64CAE35839","2770B759-8971-45F4-8291-6DA85EBD1155","B0E0F94A-1BB3-405B-87BB-3C1199A8EB79","8EF852C4-A375-4F84-873C-4277F9A99D52","AA10C5AE-8C29-45DA-8CA5-A0E286F80E82","4B3576CB-50DD-49DF-913C-88D34002B5DC","B9692647-A99C-4A20-9C6C-3DF722D48DDE","109C8B5F-DBAA-490E-A061-CB3004CD8634","6494496E-CBF0-4256-ACA4-D7E7B674F7CE"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3486":{"position":{"__isSmartRef__":true,"id":3487},"_Extent":{"__isSmartRef__":true,"id":3488},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3149},"_Fill":{"__isSmartRef__":true,"id":3489},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3490},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3491},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3487":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3488":{"x":845.6764200688274,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3489":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3490":{"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"},"3491":{"x":2,"y":1,"width":-2,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3492":{"x":10,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3493":{"resizeWidth":true,"resizeHeight":false,"moveVertical":false,"moveHorizontal":false},"3494":{"style":{"__isSmartRef__":true,"id":3495},"chunkOwner":{"__isSmartRef__":true,"id":3485},"storedString":"module(Global.lively.morphic.TextCore)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3495":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3496":{"x":850.9484727040478,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3497":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3498":{"morph":{"__isSmartRef__":true,"id":3485},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3499":{"x":587.0068382418127,"y":-13.480732018990238,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3500":{"submorphs":[{"__isSmartRef__":true,"id":3501}],"scripts":[],"id":"C76340EB-05BE-4623-9074-F57358602641","shape":{"__isSmartRef__":true,"id":3516},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":3519},"lighterFill":{"__isSmartRef__":true,"id":3531},"label":{"__isSmartRef__":true,"id":3501},"showsHalos":false,"name":"browse","partsBinMetaInfo":{"__isSmartRef__":true,"id":3540},"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[{"__isSmartRef__":true,"id":3541}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":3542},"renderContextTable":{"__isSmartRef__":true,"id":3543},"eventHandler":{"__isSmartRef__":true,"id":3544},"distanceToDragEvent":{"__isSmartRef__":true,"id":3545},"_Position":{"__isSmartRef__":true,"id":3546},"owner":{"__isSmartRef__":true,"id":3144},"derivationIds":[211,"72C2FBB1-F169-43CC-AC8A-C0889FCB1663","8CF07460-17AC-4EC3-83C4-E31D52336E14","BE09102D-553E-4BB6-84A6-4D428731DD1B","2D43F043-9567-4765-A19C-7C922F0DFFE7","A77836E8-3C83-4A1D-B37A-7DDBA7FE13DE","13EB973D-FF17-4A76-AD4B-13347D80B1A9","8A92D97E-6965-49F7-B2B0-8842FB9ADCDF","662F4742-3BD8-4D39-88CB-EE97BC2306D6","8F15DC2D-892E-4B0F-83CB-8E7012281BEB","57A38C48-8036-4D85-91C8-9F60FE72DACE","5F6BEEC4-A021-4428-AC2A-14F8A4F9B68C"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"3501":{"submorphs":[],"scripts":[],"id":"F94B68A0-F65F-4B40-B848-CCF7DAC8D6C9","shape":{"__isSmartRef__":true,"id":3502},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3508},"_MaxTextWidth":78,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":3509},"_Padding":{"__isSmartRef__":true,"id":3510},"owner":{"__isSmartRef__":true,"id":3500},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":3511}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3513},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3514},"eventHandler":{"__isSmartRef__":true,"id":3515},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":78,"_MinTextHeight":null,"derivationIds":[212,"054FD83F-508D-488D-A011-8769DCB647DF","834D337A-5619-4055-B103-7BDAA88CD7A9","3C85FBE2-5C85-4CCF-B86A-25E65015429B","001D6261-96E2-4ACC-880A-8540815DC8D3","90FFCC86-B995-4F2F-872F-55A8A74FC99E","766B1A00-7692-4CAB-B106-01876B4D5F77","C36FA883-C0F4-47DA-B1A9-CB8D82C1C6E4","91BD5A6B-4A46-43EA-8FA0-2A5C4EFDD1A7","B8CDD839-4085-4D54-B360-5F4DAC2DD83C","C25AEC86-A78F-4355-A843-3CACF03215A8","B28C6DEB-10EF-40BF-BA3F-3BFA8EB2B14D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3502":{"position":{"__isSmartRef__":true,"id":3503},"_Extent":{"__isSmartRef__":true,"id":3504},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3505},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3506},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3507},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3503":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3504":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3505":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3506":{"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"},"3507":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3508":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3509":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3510":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3511":{"style":{"__isSmartRef__":true,"id":3512},"morph":{"__isSmartRef__":true,"id":3501},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":3501},"storedString":"browse","__LivelyClassName__":"lively.morphic.TextChunk"},"3512":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3513":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3514":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3515":{"morph":{"__isSmartRef__":true,"id":3501},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3516":{"position":{"__isSmartRef__":true,"id":3517},"_Extent":{"__isSmartRef__":true,"id":3518},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3181},"_Fill":{"__isSmartRef__":true,"id":3519},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3529},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3530},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3517":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3518":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3519":{"stops":[{"__isSmartRef__":true,"id":3520},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3524},{"__isSmartRef__":true,"id":3526}],"vector":{"__isSmartRef__":true,"id":3528},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3520":{"offset":0,"color":{"__isSmartRef__":true,"id":3521}},"3521":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3522":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3523}},"3523":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3524":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3525}},"3525":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3526":{"offset":1,"color":{"__isSmartRef__":true,"id":3527}},"3527":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3528":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3529":{"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"},"3530":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3531":{"stops":[{"__isSmartRef__":true,"id":3532},{"__isSmartRef__":true,"id":3534},{"__isSmartRef__":true,"id":3536},{"__isSmartRef__":true,"id":3538}],"vector":{"__isSmartRef__":true,"id":3528},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3532":{"offset":0,"color":{"__isSmartRef__":true,"id":3533}},"3533":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3534":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3535}},"3535":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3536":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3537}},"3537":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3538":{"offset":1,"color":{"__isSmartRef__":true,"id":3539}},"3539":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3540":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3541":{"sourceObj":{"__isSmartRef__":true,"id":3500},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3144},"targetMethodName":"browseMethod","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3542":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3543":{"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"},"3544":{"morph":{"__isSmartRef__":true,"id":3500},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3545":{"x":53.66458745330033,"y":-17.22490844717396,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3546":{"x":400,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3547":{"submorphs":[{"__isSmartRef__":true,"id":3548}],"scripts":[],"id":"F506310C-F681-41D1-963F-78D19F275450","shape":{"__isSmartRef__":true,"id":3563},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":3566},"lighterFill":{"__isSmartRef__":true,"id":3578},"label":{"__isSmartRef__":true,"id":3548},"name":"Button1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3587},"attributeConnections":[{"__isSmartRef__":true,"id":3588}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":3624},"renderContextTable":{"__isSmartRef__":true,"id":3625},"eventHandler":{"__isSmartRef__":true,"id":3626},"distanceToDragEvent":{"__isSmartRef__":true,"id":3627},"prevScroll":[0,0],"_Position":{"__isSmartRef__":true,"id":3628},"owner":{"__isSmartRef__":true,"id":3144},"layout":{"__isSmartRef__":true,"id":3629},"derivationIds":[213,"EC7B60B8-A81F-4F24-A467-A661149CA045","DF2DEFBB-9271-4448-98A1-D2137526C2C3","EBFAF287-C65D-425B-910E-D6ADC7FA9D02","7F2E684F-7CC3-4CC4-8B18-920427491622","F7E9C68E-814B-4197-9D5B-556DCF0EC4F6","3DC305C0-5A87-4ED4-B263-5E5333B947FB","A8805225-9530-403B-977E-A2929A077DD0","0BF85746-8777-4195-949A-8733B4D79B02","8E485E0B-1832-4C7C-A5B1-D14057A7F5E3","4793FFDA-8803-44C7-97D4-27DE49B5D8D0","3FDA3264-B677-48AF-95D0-46DDD933EFBF"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"3548":{"submorphs":[],"scripts":[],"id":"14B913A6-7836-4C01-8AA2-865A16EBCF13","shape":{"__isSmartRef__":true,"id":3549},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3555},"_MaxTextWidth":157.05605605605615,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":3556},"_Padding":{"__isSmartRef__":true,"id":3557},"owner":{"__isSmartRef__":true,"id":3547},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3558},"textChunks":[{"__isSmartRef__":true,"id":3559}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3561},"eventHandler":{"__isSmartRef__":true,"id":3562},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":157.05605605605615,"_MinTextHeight":null,"derivationIds":[214,"D88E1591-8BE5-4F54-AEB5-71BC24E2014D","FE6955F2-3796-4030-BD54-73604562225B","0F07A5A7-E04B-412A-8D91-2AA448965A0E","634A262F-940F-4590-8DB1-0738A6DF355A","221F164E-FD6F-40ED-8E18-E055A638CE93","1320C4DD-9213-40AA-A107-5EF8EBE9B22A","098E1029-F36B-4434-B20F-A2100DCCBB9A","39D48D5A-BB94-40BA-AB93-09B3B787EC3D","27F752E4-9705-4F8B-9CC4-6E5131892552","78776F49-7628-4F29-81F1-7AFC77BDAFE0","5ACE871C-A220-4C51-A9E1-9315BE30BB0A"],"__LivelyClassName__":"lively.morphic.Text"},"3549":{"position":{"__isSmartRef__":true,"id":3550},"_Extent":{"__isSmartRef__":true,"id":3551},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3552},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3553},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3554},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3550":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3551":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3552":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3553":{"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"},"3554":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3555":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3556":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3557":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3558":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3559":{"style":{"__isSmartRef__":true,"id":3560},"chunkOwner":{"__isSmartRef__":true,"id":3548},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"search on server","__LivelyClassName__":"lively.morphic.TextChunk"},"3560":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3561":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3562":{"morph":{"__isSmartRef__":true,"id":3548},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3563":{"position":{"__isSmartRef__":true,"id":3564},"_Extent":{"__isSmartRef__":true,"id":3565},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":3181},"_Fill":{"__isSmartRef__":true,"id":3566},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3576},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3577},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3564":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3565":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3566":{"stops":[{"__isSmartRef__":true,"id":3567},{"__isSmartRef__":true,"id":3569},{"__isSmartRef__":true,"id":3571},{"__isSmartRef__":true,"id":3573}],"vector":{"__isSmartRef__":true,"id":3575},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3567":{"offset":0,"color":{"__isSmartRef__":true,"id":3568}},"3568":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3569":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3570}},"3570":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3571":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3572}},"3572":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3573":{"offset":1,"color":{"__isSmartRef__":true,"id":3574}},"3574":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3575":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3576":{"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"},"3577":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3578":{"stops":[{"__isSmartRef__":true,"id":3579},{"__isSmartRef__":true,"id":3581},{"__isSmartRef__":true,"id":3583},{"__isSmartRef__":true,"id":3585}],"vector":{"__isSmartRef__":true,"id":3575},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3579":{"offset":0,"color":{"__isSmartRef__":true,"id":3580}},"3580":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3581":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3582}},"3582":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3583":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3584}},"3584":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3585":{"offset":1,"color":{"__isSmartRef__":true,"id":3586}},"3586":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3587":{"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"},"3588":{"sourceObj":{"__isSmartRef__":true,"id":3547},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3144},"targetMethodName":"searchOnServer","visualConnector":{"__isSmartRef__":true,"id":3589},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3589":{"submorphs":[{"__isSmartRef__":true,"id":3590}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3605},"id":865,"renderContextTable":{"__isSmartRef__":true,"id":3612},"eventHandler":{"__isSmartRef__":true,"id":3613},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":3614},{"__isSmartRef__":true,"id":3615}],"con":{"__isSmartRef__":true,"id":3588},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3616},"__LivelyClassName__":"lively.morphic.Path"},"3590":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3591},"id":866,"renderContextTable":{"__isSmartRef__":true,"id":3602},"eventHandler":{"__isSmartRef__":true,"id":3603},"__layered_droppingEnabled__":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3604},"owner":{"__isSmartRef__":true,"id":3589},"_Rotation":-3.113822016996372,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"3591":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3592},{"__isSmartRef__":true,"id":3593},{"__isSmartRef__":true,"id":3594},{"__isSmartRef__":true,"id":3595}],"renderContextTable":{"__isSmartRef__":true,"id":3596},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":3597},"_Extent":{"__isSmartRef__":true,"id":3598},"_Padding":{"__isSmartRef__":true,"id":3599},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3600},"_Fill":{"__isSmartRef__":true,"id":3601},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"3592":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"3593":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"3594":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"3595":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"3596":{"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"},"3597":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3598":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3599":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3600":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3601":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3602":{"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"},"3603":{"morph":{"__isSmartRef__":true,"id":3590},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3604":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3605":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3606},{"__isSmartRef__":true,"id":3607}],"renderContextTable":{"__isSmartRef__":true,"id":3608},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":3609},"_Extent":{"__isSmartRef__":true,"id":3610},"_Padding":{"__isSmartRef__":true,"id":3611},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3600},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"3606":{"isAbsolute":true,"x":719.9999999999999,"y":20,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"3607":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"3608":{"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"},"3609":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3610":{"x":721,"y":21,"__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","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":3589},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3614":{"morph":{"__isSmartRef__":true,"id":3589},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"3615":{"morph":{"__isSmartRef__":true,"id":3589},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":3590},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"3616":{"morphMenuItems":{"__isSmartRef__":true,"id":3617}},"3617":{"varMapping":{"__isSmartRef__":true,"id":3618},"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":3623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3618":{"this":{"__isSmartRef__":true,"id":3589},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3619}},"3619":{"$super":{"__isSmartRef__":true,"id":3620}},"3620":{"varMapping":{"__isSmartRef__":true,"id":3621},"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":3622},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3621":{"obj":{"__isSmartRef__":true,"id":3589},"name":"morphMenuItems"},"3622":{},"3623":{},"3624":{"x":159.05805805805812,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3625":{"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"},"3626":{"morph":{"__isSmartRef__":true,"id":3547},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3627":{"x":111.36105352154709,"y":-11.352025158627953,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3628":{"x":490,"y":19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3629":{"moveHorizontal":false},"3630":{"submorphs":[{"__isSmartRef__":true,"id":3631}],"scripts":[],"id":"AE1CEFD2-449C-4FAC-9300-A0829A0D43B7","shape":{"__isSmartRef__":true,"id":3646},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3661},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":3649},"lighterFill":{"__isSmartRef__":true,"id":3662},"label":{"__isSmartRef__":true,"id":3631},"name":"ScriptableButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3671},"attributeConnections":[{"__isSmartRef__":true,"id":3672}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":3673},"renderContextTable":{"__isSmartRef__":true,"id":3674},"eventHandler":{"__isSmartRef__":true,"id":3675},"derivationIds":[2588,"8DA01C71-0A84-4A5A-8027-121F4684BB04","2F4904A6-2C6F-4A39-8C69-7C1E943F91B4","7F6F4EE1-856E-477B-8578-D99400031DBA","374C68BB-3D86-4DA0-9616-2B5320585D0E","23336C67-2F65-4D9F-9380-304876DC628F","8E57191F-E38B-4526-95AA-8D530FAC8156"],"owner":{"__isSmartRef__":true,"id":3144},"distanceToDragEvent":{"__isSmartRef__":true,"id":3676},"_Rotation":0,"_Scale":1.002003004005006,"layout":{"__isSmartRef__":true,"id":3677},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3678},"__LivelyClassName__":"lively.morphic.Button"},"3631":{"submorphs":[],"scripts":[],"id":"8CBF3C0B-1CFB-434E-AB4F-FA1B2B969D1B","shape":{"__isSmartRef__":true,"id":3632},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3638},"_MaxTextWidth":20,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":3639},"_Padding":{"__isSmartRef__":true,"id":3640},"owner":{"__isSmartRef__":true,"id":3630},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3641},"textChunks":[{"__isSmartRef__":true,"id":3642}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3644},"eventHandler":{"__isSmartRef__":true,"id":3645},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"784F6E71-6365-4235-A0B6-69F992BB532B","54335D65-DB12-4322-84D0-BA8B85E7ED2F","2EF9D95D-4705-44B3-8D3C-446FEDC6346B","07108773-133C-4F4A-A740-33175849E789","E58C564E-D8F3-481A-821D-447F7C7556D8","D92DDD8E-7733-4909-A5E9-049EC55E90C0"],"_MinTextWidth":20,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"3632":{"position":{"__isSmartRef__":true,"id":3633},"_Extent":{"__isSmartRef__":true,"id":3634},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3635},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3636},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3637},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3633":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3634":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3635":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3636":{"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"},"3637":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3638":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3639":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3640":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3641":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3642":{"style":{"__isSmartRef__":true,"id":3643},"chunkOwner":{"__isSmartRef__":true,"id":3631},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"x","__LivelyClassName__":"lively.morphic.TextChunk"},"3643":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3644":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3645":{"morph":{"__isSmartRef__":true,"id":3631},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3646":{"position":{"__isSmartRef__":true,"id":3647},"_Extent":{"__isSmartRef__":true,"id":3648},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":3181},"_Fill":{"__isSmartRef__":true,"id":3649},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3659},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3660},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3647":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3648":{"x":20,"y":20,"__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":3658},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3650":{"offset":0,"color":{"__isSmartRef__":true,"id":3651}},"3651":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3652":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3653}},"3653":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3654":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3655}},"3655":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3656":{"offset":1,"color":{"__isSmartRef__":true,"id":3657}},"3657":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3658":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3659":{"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"},"3660":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3661":{"x":836.8179038849663,"y":20.973229619022163,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3662":{"stops":[{"__isSmartRef__":true,"id":3663},{"__isSmartRef__":true,"id":3665},{"__isSmartRef__":true,"id":3667},{"__isSmartRef__":true,"id":3669}],"vector":{"__isSmartRef__":true,"id":3658},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3663":{"offset":0,"color":{"__isSmartRef__":true,"id":3664}},"3664":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3665":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3666}},"3666":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3667":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3668}},"3668":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3669":{"offset":1,"color":{"__isSmartRef__":true,"id":3670}},"3670":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3671":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3672":{"sourceObj":{"__isSmartRef__":true,"id":3630},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3630},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3673":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3674":{"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"},"3675":{"morph":{"__isSmartRef__":true,"id":3630},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3676":{"x":34.37010312407733,"y":-11.180760580820959,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3677":{"moveHorizontal":true},"3678":{"onFire":{"__isSmartRef__":true,"id":3679}},"3679":{"varMapping":{"__isSmartRef__":true,"id":3680},"source":"function onFire() {\n var tab = this.owner.owner.tab\n var toolPane = this.get('ToolTabPane')\n toolPane.tabBar.removeTab(tab)\n if(toolPane.tabBar.getTabs().length == 0) {\n if (toolPane.owner instanceof lively.morphic.Window)\n toolPane.owner.remove();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3681},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3680":{"this":{"__isSmartRef__":true,"id":3630}},"3681":{"timestamp":{"__isSmartRef__":true,"id":3682},"user":"undefined","tags":[]},"3682":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:32:27 GMT+0100 (Mitteleuropäische Zeit)"},"3683":{"position":{"__isSmartRef__":true,"id":3684},"_Extent":{"__isSmartRef__":true,"id":3007},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3685},"_Fill":{"__isSmartRef__":true,"id":3686},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3687},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3688},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3684":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3685":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3686":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3687":{"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"},"3688":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3689":{"partsSpaceName":"PartsBin/Dialogs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"requiredModules":["lively.ide"],"partName":"MethodFinderPane","comment":"Pane for new ToolTabs","changes":[{"__isSmartRef__":true,"id":3690},{"__isSmartRef__":true,"id":3692},{"__isSmartRef__":true,"id":3694},{"__isSmartRef__":true,"id":3696},{"__isSmartRef__":true,"id":3698},{"__isSmartRef__":true,"id":3700},{"__isSmartRef__":true,"id":3702},{"__isSmartRef__":true,"id":3704}],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"revisionOnLoad":148699,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3690":{"date":{"__isSmartRef__":true,"id":3691},"author":"jenslincke","message":"- fixed browse Global definitions","id":"7DE86114-1D7E-4551-BC8F-E12A980A8EE9"},"3691":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:27:56 GMT+0100 (Mitteleuropäische Zeit)"},"3692":{"date":{"__isSmartRef__":true,"id":3693},"author":"athomschke","message":"adjusted close button","id":"9EBA6297-7908-4B02-81F5-2B86B2E4B73D"},"3693":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:57:09 GMT+0100 (Mitteleuropäische Zeit)"},"3694":{"date":{"__isSmartRef__":true,"id":3695},"author":"undefined","message":"","id":"47289007-8CB3-4B03-B9D1-3A8717E85DCB"},"3695":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:36:31 GMT+0100 (Mitteleuropäische Zeit)"},"3696":{"date":{"__isSmartRef__":true,"id":3697},"author":"undefined","message":"- close button behavior","id":"0AD4C501-1DC4-4DD3-AFDC-A46F4ACD2CE1"},"3697":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:32:48 GMT+0100 (Mitteleuropäische Zeit)"},"3698":{"date":{"__isSmartRef__":true,"id":3699},"author":"undefined","message":"","id":"CA16FEC1-49E5-4310-BDB6-F744F413F7EF"},"3699":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:48:35 GMT+0100 (Mitteleuropäische Zeit)"},"3700":{"date":{"__isSmartRef__":true,"id":3701},"author":"undefined","message":"","id":"73F39208-58C9-4040-9948-516A104E5049"},"3701":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:42:18 GMT+0100 (Mitteleuropäische Zeit)"},"3702":{"date":{"__isSmartRef__":true,"id":3703},"author":"undefined","message":"","id":"7A744B14-C057-4944-AFDD-CC78A910B35F"},"3703":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:40:30 GMT+0100 (Mitteleuropäische Zeit)"},"3704":{"date":{"__isSmartRef__":true,"id":3705},"author":"undefined","message":"some style adjustments","id":"DA3EFD12-8A45-454C-993B-DB12847BEF94"},"3705":{"isSerializedDate":true,"string":"Mon Mar 26 2012 13:16:30 GMT+0200 (Mitteleuropäische Sommerzeit)"},"3706":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"3707":{"x":872.0934621532042,"y":440.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3708":{"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"},"3709":{"morph":{"__isSmartRef__":true,"id":3144},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3710":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3711":{"x":583.4236186029176,"y":-13.858684727694055,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3712":{"search":{"__isSmartRef__":true,"id":3713},"browse":{"__isSmartRef__":true,"id":3717},"reset":{"__isSmartRef__":true,"id":3721},"setSearch":{"__isSmartRef__":true,"id":3725},"emphasizeStringIn":{"__isSmartRef__":true,"id":3728},"withAllMethodsDo":{"__isSmartRef__":true,"id":3731},"itemsFromFinds":{"__isSmartRef__":true,"id":3735},"browseMethod":{"__isSmartRef__":true,"id":3739},"openMethodInSystemBrowser":{"__isSmartRef__":true,"id":3743},"findSourceModule":{"__isSmartRef__":true,"id":3747},"searchOnServer":{"__isSmartRef__":true,"id":3751},"showLayerDefinition":{"__isSmartRef__":true,"id":3755}},"3713":{"varMapping":{"__isSmartRef__":true,"id":3714},"source":"function search(searchString) { \n this.get('searchResultList').updateList([]);\n this.get('sourceText').setTextString('');\n if (!searchString || (searchString.length < 2)) {\n this.get('sourceText').setTextString('\"' + searchString + '\" is to short');\n return;\n }\n var finds = [];\n var i=0;\n var matches = function(s) {\n return s.include(searchString)\n } \n\n // var re = new RegExp(searchString)\n var time = Functions.timeToRun(function() {\n this.withAllMethodsDo(function(object, eaMethod, type, optParent) {\n i++;\n var name;\n if (!object) return;\n\n if (object.constructor.prototype == object)\n name = object.constructor.name\n\n if (object.name) name = object.name;\n if (object.namespaceIdentifier)\n name = object.namespaceIdentifier\n\n if (object.constructor.prototype != object)\n name = name + \"(object)\"\n\n if ((object.constructor.prototype != object) && (object instanceof Morph))\n name = object.name + \"(\" + object.id + \")\"\n\n if (object === Global)\n name = \" \";\n\n if (type == \"layered\") {\n \n name = object._layered_object.constructor.type \n + \" (\" + optParent.name + \")\" \n \n }\n\n var string = name + \": \" + eaMethod; \n var item = {object: object, method: eaMethod, string: string, type: type};\n if (type == \"layered\") {\n item.layerName = optParent.name\n }\n\n if (matches(eaMethod)) {\n item.search= 'implementor',\n finds.push(item)\n return;\n } \n\n var f = object[eaMethod];\n if (!f || !f.getOriginal) return;\n var source = String(f.getOriginal())\n if (matches(source)){\n item.search = 'sender'\n finds.push(item)\n } \n })\n }.bind(this))\n this.get('sourceText').setTextString(\"search \" + i + \" methods, found \" \n + finds.length + \" methods in \" + time + \"ms\");\n var items = this.itemsFromFinds(finds)\n this.get('searchResultList').updateList(items);\n}","funcProperties":{"__isSmartRef__":true,"id":3715},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3714":{"this":{"__isSmartRef__":true,"id":3144}},"3715":{"timestamp":{"__isSmartRef__":true,"id":3716},"user":"undefined","tags":[]},"3716":{"isSerializedDate":true,"string":"Thu Jan 19 2012 14:46:43 GMT+0100 (Mitteleuropäische Zeit)"},"3717":{"varMapping":{"__isSmartRef__":true,"id":3718},"source":"function browse(methodItem) {\n // methodItem = this.get('searchResultList').selection\n if (! methodItem) return;\n\n // deal with non method findings....\n if (methodItem.type == 'layer') {\n this.showLayerDefinition(methodItem)\n return\n } \n\n // methodItem = this.get('searchResultList').selection\n var methodName = methodItem.method;\n var object = methodItem.object;\n var orgFunc = object[methodName];\n\n if (!orgFunc || !orgFunc.getOriginal) {\n this.get('sourceText').setTextString('no source');\n return\n }\n orgFunc = orgFunc.getOriginal()\n \n this.targetFunction = orgFunc;\n this.targetObject = object;\n\n var source = \"// changes here only affect runtime\\n\", \n tab = lively.morphic.Text.prototype.tab;\n if (methodItem.layerName) {\n var partialMethod = object[methodName];\n source += methodItem.layerName + \".refineClass(\" + \n object._layered_object.constructor.type + \", {\\n\" + \n tab + methodName + \": \" + partialMethod +\"\\n})\";\n } else if (orgFunc.belongsToTrait) {\n source += \"Trait('\" + orgFunc.belongsToTrait.name + \"', {\\n\" \n + tab + methodName + \": \" + orgFunc +\"\\n})\";\n } else if (orgFunc.declaredClass) {\n source += orgFunc.declaredClass + \".addMethods({\\n\" \n + tab + methodName + \": \" \n + orgFunc + \"\\n});\"\n } else if(methodItem.type == 'extend') {\n // perhaps it is a an class object\n source += \"Object.extend(\" + (object.type || object.namespaceIdentifier) \n + \",{\\n\" + tab + methodName + \": \" \n + orgFunc + \"\\n});\"\n } else if(object.isMorph && (object.constructor.prototype !== object) ) {\n // display as script\n source = \"this.addScript(\" + orgFunc + \");\"\n } else if(object === Global) {\n // display as script\n source += \"Object.extend(Global, {\\n\" + tab + methodName + \": \" +\n orgFunc + \"\\n});\"\n }\n\n this.get('sourceText').setTextString(source)\n\n module('lively.ide.SyntaxHighlighting').load(true);\n this.get('sourceText').highlightJavaScriptSyntax();\n\n var searchText = this.get('searchText').textString;\n var m = searchText.match(/[^a-zA-Z0-9_\\.]/g)\n if(m) {\n m.forEach(function (each) {\n var escapedChar = '\\\\' + each;\n var position = searchText.search(\n new RegExp('[^\\\\\\\\]' + '\\\\' + each)) + 1;\n searchText = searchText.substring(0,position) \n + escapedChar + searchText.substr(position + 1);\n });\n }\n this.get('sourceText').emphasizeRegex(new RegExp(searchText, 'g'), {color: Color.red});\n\n var info = '' + this.findSourceModule(orgFunc);\n\n if (orgFunc.belongsToTrait)\n info += ' (' + orgFunc.belongsToTrait + \" in \" + orgFunc.belongsToTrait.sourceModule +\")\";\n\n this.get('infoText').setTextString(info)\n}","funcProperties":{"__isSmartRef__":true,"id":3719},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3718":{"this":{"__isSmartRef__":true,"id":3144}},"3719":{"timestamp":{"__isSmartRef__":true,"id":3720},"user":"undefined","tags":[]},"3720":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:55:34 GMT+0100 (Mitteleuropäische Zeit)"},"3721":{"varMapping":{"__isSmartRef__":true,"id":3722},"source":"function reset() {\n this.doNotSerialize = ['targetFunction', 'targetObject']\n this.get('searchResultList').updateList([]);\n this.get('searchResultList').setSelection(null);\n this.get('searchText').setTextString('enter method name here');\n this.get('sourceText').setTextString('no code');\n this.get('infoText').setTextString('');\n this.targetFunction = null;\n this.targetObject = null;\n}","funcProperties":{"__isSmartRef__":true,"id":3723},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3722":{"this":{"__isSmartRef__":true,"id":3144}},"3723":{"timestamp":{"__isSmartRef__":true,"id":3724},"user":"undefined","tags":[]},"3724":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:30:14 GMT+0100 (Mitteleuropäische Zeit)"},"3725":{"varMapping":{"__isSmartRef__":true,"id":3726},"source":"function setSearch(searchString) {\n this.get('searchText').setTextString(searchString);\n this.search(searchString)\n var list = this.get('searchResultList').getList();\n if (list.length > 0) this.get('searchResultList').setSelection(list[0])\n}","funcProperties":{"__isSmartRef__":true,"id":3727},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3726":{"this":{"__isSmartRef__":true,"id":3144}},"3727":{},"3728":{"varMapping":{"__isSmartRef__":true,"id":3729},"source":"function emphasizeStringIn(morph, string, style) {\n var m;\n var re = new RegExp(string, \"g\");\n while(m = re.exec(morph.textString)) {\n var from = m.index,\n to = m.index + m[0].length;\n morph.emphasize(style, from, to)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3730},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3729":{"this":{"__isSmartRef__":true,"id":3144}},"3730":{},"3731":{"varMapping":{"__isSmartRef__":true,"id":3732},"source":"function withAllMethodsDo(func) {\n var visited = [];\n\n cop.allLayers().forEach(function(layer) {\n func(eval(layer.namespaceName), layer.name, 'layer')\n layer.layeredObjects().forEach(function(obj) {\n var layerDef = cop.getLayerDefinitionForObject(layer, obj)\n Functions.own(layerDef).forEach(function(eaMethod) {\n func(layerDef, eaMethod, 'layered', layer)\n });\n });\n }); \n\n\n Functions.own(Global).forEach(function(eaMethod) {\n func(Global, eaMethod, 'global')\n }); \n\n this.world().withAllSubmorphsDo(function(ea) {\n Functions.own(ea).forEach(function(eaMethod) {\n func(ea, eaMethod, 'script')\n }); \n });\n\n Global.subNamespaces(true).forEach(function(ea) {\n Functions.own(ea).forEach(function(eaMethod) {\n func(ea, eaMethod, 'extend')\n }); \n });\n\n Global.classes(true).uniq().forEach(function(eaClass) {\n Functions.own(eaClass).forEach(function(eaMethod) {\n func(eaClass, eaMethod, 'extend')\n }); \n\n Functions.own(eaClass.prototype).forEach(function(eaMethod) {\n func(eaClass.prototype, eaMethod, 'class')\n }) \n })\n}","funcProperties":{"__isSmartRef__":true,"id":3733},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3732":{"this":{"__isSmartRef__":true,"id":3144}},"3733":{"timestamp":{"__isSmartRef__":true,"id":3734},"user":"undefined","tags":[]},"3734":{"isSerializedDate":true,"string":"Thu Jan 19 2012 14:41:57 GMT+0100 (Mitteleuropäische Zeit)"},"3735":{"varMapping":{"__isSmartRef__":true,"id":3736},"source":"function itemsFromFinds(finds) {\n var searchString = this.get('searchText').textString;\n var items = finds.collect(function(ea) {\n var pref = \"\" + ea.type + \" \";\n if (ea.search == \"sender\") pref += \"full: \"\n if (ea.search == \"implementor\") pref += \"name: \"\n var string = pref + ea.string;\n var func = ea.object[ea.method];\n if (func.belongsToTrait) \n string += ' / ' + func.belongsToTrait + '' \n\n var result = {\n isListItem: true,\n value: ea,\n string: string,\n doNotSerialize: ['value'],\n priority: {implementor: \"B\", sender: \"C\"}[ea.search] || \"D\",\n };\n if (ea.method == searchString) result.priority = \"A\"\n return result\n })\n items = items.sortBy(function(ea) {return ea.priority + ea.string})\n return items\n}","funcProperties":{"__isSmartRef__":true,"id":3737},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3736":{"this":{"__isSmartRef__":true,"id":3144}},"3737":{"timestamp":{"__isSmartRef__":true,"id":3738},"user":"undefined","tags":[]},"3738":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:31:52 GMT+0100 (Mitteleuropäische Zeit)"},"3739":{"varMapping":{"__isSmartRef__":true,"id":3740},"source":"function browseMethod() {\n alertOK('browseMethod')\n var methodItem = this.get('searchResultList').selection;\n if (methodItem.type == 'layer') {\n var layer = methodItem.object[methodItem.method];\n this.openMethodInSystemBrowser(methodItem.method, \n undefined, layer.sourceModule);\n return\n }\n\n if (!this.targetFunction) return;\n var methodName = this.targetFunction.methodName || this.targetFunction.displayName; \n if(this.targetFunction.declaredClass) {\n var classObj = eval(this.targetFunction.declaredClass)\n this.openMethodInSystemBrowser(classObj.type, methodName);\n return;\n }\n if(this.targetFunction.belongsToTrait) {\n this.openMethodInSystemBrowser(this.targetFunction.belongsToTrait.name, methodName);\n return;\n }\n if(Class.isClass(this.targetObject)) {\n this.openMethodInSystemBrowser(this.targetObject.type, methodName);\n return;\n }\n if(this.targetObject.namespaceIdentifier) {\n this.openMethodInSystemBrowser(this.targetObject.namespaceIdentifier, methodName);\n return;\n }\n if(this.targetObject instanceof lively.morphic.Morph) {\n var editor = this.world().openObjectEditorFor(this.targetObject);\n editor.align(editor.bounds().center(), this.world().visibleBounds().center());\n return;\n }\n if (Class.isClass(this.targetFunction)) {\n // constructor\n this.openMethodInSystemBrowser(this.targetFunction.displayName);\n return;\n }\n \n alertOK('not implemented yet for ' + this.targetFunction)\n}","funcProperties":{"__isSmartRef__":true,"id":3741},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3740":{"this":{"__isSmartRef__":true,"id":3144}},"3741":{"timestamp":{"__isSmartRef__":true,"id":3742},"user":"undefined","tags":[]},"3742":{"isSerializedDate":true,"string":"Thu Jan 19 2012 16:54:12 GMT+0100 (Mitteleuropäische Zeit)"},"3743":{"varMapping":{"__isSmartRef__":true,"id":3744},"source":"function openMethodInSystemBrowser(objectName, methodName, optSourceModule) {\n if (objectName)\n objectName = objectName.replace(/^Global\\./,\"\");\n // alertOK(\"browse \" + objectName + \":\" + methodName)\n // objectName = 'SelectionMorphTrait', methodName = 'onDrag'\n var sourceModule = optSourceModule ||\n this.findSourceModule(this.targetFunction);\n if (!sourceModule) \n alert('could not browse, since no source module found!')\n var uri = new URL(sourceModule.uri()),\n relative = uri.relativePathFrom(new URL(Config.codeBase)),\n moduleNode = lively.ide.startSourceControl().addModule(relative),\n rootNode = moduleNode.ast();\n\n var fileFragments = rootNode.subElements(10).select(function(ea) {\n var path = ea.getOwnerNamePath()\n if (objectName == \"Global\")\n return path.include(methodName);\n return path.include(objectName) && (!methodName || path.include(methodName)) \n });\n \n\n\n // alertOK(\"found following places to browse: \" + fileFragments)\n if (fileFragments.length > 0) {\n fileFragments[0].browseIt()\n } else {\n alert(\"browse failed. Nothing found for \" + objectName + \">>\" + methodName + \" in \" + sourceModule.uri());\n rootNode.browseIt();\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":3745},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3744":{"this":{"__isSmartRef__":true,"id":3144}},"3745":{"timestamp":{"__isSmartRef__":true,"id":3746},"user":"jenslincke","tags":[]},"3746":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:27:23 GMT+0100 (Mitteleuropäische Zeit)"},"3747":{"varMapping":{"__isSmartRef__":true,"id":3748},"source":"function findSourceModule(funcObj) {\n if (this.targetFunction.belongsToTrait) \n return this.targetFunction.belongsToTrait.sourceModule\n if (funcObj.sourceModule)\n return funcObj.sourceModule;\n // look in the class\n if (!funcObj.sourceModule && funcObj.declaredClass) {\n var classObj = eval(funcObj.declaredClass)\n return classObj.sourceModule\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3749},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3748":{"this":{"__isSmartRef__":true,"id":3144}},"3749":{"user":"jenslincke","timestamp":{"__isSmartRef__":true,"id":3750}},"3750":{"isSerializedDate":true,"string":"Fri Nov 04 2011 15:27:13 GMT+0100 (Mitteleuropäische Zeit)"},"3751":{"varMapping":{"__isSmartRef__":true,"id":3752},"source":"function searchOnServer() {\n var serverSearch = this.world().openPartItem('ServerSearch', 'PartsBin/Tools'); \n serverSearch.setSearch(this.get('searchText').textString)\n}","funcProperties":{"__isSmartRef__":true,"id":3753},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3752":{"this":{"__isSmartRef__":true,"id":3144}},"3753":{"timestamp":{"__isSmartRef__":true,"id":3754},"user":"jenslincke","categories":[]},"3754":{"isSerializedDate":true,"string":"Fri Nov 18 2011 11:40:23 GMT+0100 (Mitteleuropäische Zeit)"},"3755":{"varMapping":{"__isSmartRef__":true,"id":3756},"source":"function showLayerDefinition(methodItem) {\n var info = \"layer definition\" \n var source = \"TODO: print layer def here...\"\n this.get('infoText').setTextString(info)\n this.get('sourceText').setTextString(source)\n}","funcProperties":{"__isSmartRef__":true,"id":3757},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3756":{"this":{"__isSmartRef__":true,"id":3144}},"3757":{"timestamp":{"__isSmartRef__":true,"id":3758},"user":"undefined","tags":[]},"3758":{"isSerializedDate":true,"string":"Thu Jan 19 2012 15:30:43 GMT+0100 (Mitteleuropäische Zeit)"},"3759":{"_Position":{"__isSmartRef__":true,"id":3760},"renderContextTable":{"__isSmartRef__":true,"id":3761},"_Extent":{"__isSmartRef__":true,"id":3007},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":3762},"_Fill":{"__isSmartRef__":true,"id":3763},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2588},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3760":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3761":{"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"},"3762":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3763":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3764":{"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"},"3765":{"morph":{"__isSmartRef__":true,"id":3143},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3766":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3767":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"3768":{"x":0,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3769":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3770":{"x":90,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3771":{"submorphs":[{"__isSmartRef__":true,"id":3772},{"__isSmartRef__":true,"id":3782}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3812},"derivationIds":[null],"id":"15E43864-4C7B-41F1-AAAB-482388BF79D8","renderContextTable":{"__isSmartRef__":true,"id":3818},"eventHandler":{"__isSmartRef__":true,"id":3819},"droppingEnabled":true,"halosEnabled":true,"tabBar":{"__isSmartRef__":true,"id":2527},"tabBarOffset":180,"pane":{"__isSmartRef__":true,"id":3820},"label":{"__isSmartRef__":true,"id":3772},"name":"S:domSelection","grabbingEnabled":false,"draggingEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":4339},"closeButton":{"__isSmartRef__":true,"id":3782},"owner":{"__isSmartRef__":true,"id":2527},"_Position":{"__isSmartRef__":true,"id":4340},"isActive":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Tab"},"3772":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3773},"derivationIds":[null],"id":"6E47E84E-0B76-422F-9C68-376A218D9E22","renderContextTable":{"__isSmartRef__":true,"id":3777},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3778}],"eventHandler":{"__isSmartRef__":true,"id":3780},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_Position":{"__isSmartRef__":true,"id":3781},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"eventsAreDisabled":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":3771},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"3773":{"_Position":{"__isSmartRef__":true,"id":3774},"renderContextTable":{"__isSmartRef__":true,"id":3775},"_Extent":{"__isSmartRef__":true,"id":3776},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2534},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3774":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3775":{"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"},"3776":{"x":80,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3777":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3778":{"style":{"__isSmartRef__":true,"id":3779},"chunkOwner":{"__isSmartRef__":true,"id":3772},"storedString":"S:domSelection","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3779":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3780":{"morph":{"__isSmartRef__":true,"id":3772},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3781":{"x":5,"y":5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3782":{"submorphs":[{"__isSmartRef__":true,"id":3783}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3794},"derivationIds":[null],"id":"80581D71-150C-4682-8F9C-B0351E580090","renderContextTable":{"__isSmartRef__":true,"id":3798},"eventHandler":{"__isSmartRef__":true,"id":3799},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2558},"lighterFill":{"__isSmartRef__":true,"id":3800},"label":{"__isSmartRef__":true,"id":3783},"priorExtent":{"__isSmartRef__":true,"id":3793},"owner":{"__isSmartRef__":true,"id":3771},"_Position":{"__isSmartRef__":true,"id":3809},"attributeConnections":[{"__isSmartRef__":true,"id":3810}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Button"},"3783":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3784},"derivationIds":[null],"id":"3DCF0B40-C32D-4166-B146-1BB9032129A5","renderContextTable":{"__isSmartRef__":true,"id":3789},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3790}],"eventHandler":{"__isSmartRef__":true,"id":3792},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3782},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":2535},"_Align":"center","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":3793},"_MaxTextWidth":20,"_MinTextWidth":20,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"3784":{"_Position":{"__isSmartRef__":true,"id":3785},"renderContextTable":{"__isSmartRef__":true,"id":3786},"_Extent":{"__isSmartRef__":true,"id":3787},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3788},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3785":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3786":{"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"},"3787":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3788":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3789":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3790":{"style":{"__isSmartRef__":true,"id":3791},"chunkOwner":{"__isSmartRef__":true,"id":3783},"storedString":"X","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3791":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3792":{"morph":{"__isSmartRef__":true,"id":3783},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3793":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3794":{"_Position":{"__isSmartRef__":true,"id":3795},"renderContextTable":{"__isSmartRef__":true,"id":3796},"_Extent":{"__isSmartRef__":true,"id":3787},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3797},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2557},"_Fill":{"__isSmartRef__":true,"id":2558},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3795":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3796":{"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"},"3797":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3798":{"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"},"3799":{"morph":{"__isSmartRef__":true,"id":3782},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3800":{"stops":[{"__isSmartRef__":true,"id":3801},{"__isSmartRef__":true,"id":3803},{"__isSmartRef__":true,"id":3805},{"__isSmartRef__":true,"id":3807}],"vector":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3801":{"offset":0,"color":{"__isSmartRef__":true,"id":3802}},"3802":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3803":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3804}},"3804":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3805":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3806}},"3806":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3807":{"offset":1,"color":{"__isSmartRef__":true,"id":3808}},"3808":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3809":{"x":67,"y":6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3810":{"sourceObj":{"__isSmartRef__":true,"id":3782},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3771},"targetMethodName":"closeTab","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":3811},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3811":{"source":{"__isSmartRef__":true,"id":3782},"target":{"__isSmartRef__":true,"id":3771}},"3812":{"_Position":{"__isSmartRef__":true,"id":3813},"renderContextTable":{"__isSmartRef__":true,"id":3814},"_Extent":{"__isSmartRef__":true,"id":3815},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3816},"_Fill":{"__isSmartRef__":true,"id":3817},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2588},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3813":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3814":{"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"},"3815":{"x":90,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3816":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3817":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3818":{"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"},"3819":{"morph":{"__isSmartRef__":true,"id":3771},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3820":{"submorphs":[{"__isSmartRef__":true,"id":3821}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4329},"derivationIds":[null],"id":"A152DE64-E85F-45F3-B7CC-32083104DF6F","renderContextTable":{"__isSmartRef__":true,"id":4334},"eventHandler":{"__isSmartRef__":true,"id":4335},"droppingEnabled":true,"halosEnabled":true,"tab":{"__isSmartRef__":true,"id":3771},"tabBar":{"__isSmartRef__":true,"id":2527},"priorExtent":{"__isSmartRef__":true,"id":4336},"_ClipMode":"scroll","grabbingEnabled":false,"draggingEnabled":false,"name":"S:domSelection - Pane","layout":{"__isSmartRef__":true,"id":4337},"owner":{"__isSmartRef__":true,"id":2526},"_Position":{"__isSmartRef__":true,"id":4338},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.TabPane"},"3821":{"submorphs":[{"__isSmartRef__":true,"id":3822},{"__isSmartRef__":true,"id":3839},{"__isSmartRef__":true,"id":3887},{"__isSmartRef__":true,"id":3917},{"__isSmartRef__":true,"id":4055},{"__isSmartRef__":true,"id":4070},{"__isSmartRef__":true,"id":4117},{"__isSmartRef__":true,"id":4200}],"scripts":[],"id":"EA0F7EB7-4A96-4A10-95EF-42048FDAFD57","shape":{"__isSmartRef__":true,"id":4253},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"MethodFinderPane2","partsBinMetaInfo":{"__isSmartRef__":true,"id":4259},"__SourceModuleName__":"Global.lively.morphic.Core","isCopyMorphRef":true,"morphRefId":1,"layout":{"__isSmartRef__":true,"id":4276},"priorExtent":{"__isSmartRef__":true,"id":4277},"renderContextTable":{"__isSmartRef__":true,"id":4278},"eventHandler":{"__isSmartRef__":true,"id":4279},"attributeConnections":[],"doNotSerialize":["targetFunction","targetObject"],"doNotCopyProperties":[],"prevScroll":[0,0],"isBeingDragged":false,"_Position":{"__isSmartRef__":true,"id":4280},"derivationIds":[204,"90F6ED76-D56E-436C-96E7-CBFE7106283E","53162F18-6DD1-4230-B30F-EC4BA7B7A9ED","73F374A9-9CEE-4D2E-8BA6-030971E02396","0859BA09-FE36-4B7E-85B5-A141B84A252C","AB402971-988F-4D01-AE49-87C1AFEAA1C3","A80F8C19-12D2-49AF-941A-2454433D2A59","9370F962-CBB6-42C0-8F15-79D0F66045FD","2F24C0FF-1360-4C35-BE22-B5DE5FFAB3F4","81FC43AC-A19A-48A5-B854-601A302E5585","BBF2876B-A928-4012-A9BD-A39052E30483","3E2C739C-3BA6-4C2C-B7FB-A726AA7015BB"],"distanceToDragEvent":{"__isSmartRef__":true,"id":4281},"moved":true,"_Rotation":0,"_Scale":0.9880657804942092,"owner":{"__isSmartRef__":true,"id":3820},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4282},"__LivelyClassName__":"lively.morphic.Box"},"3822":{"submorphs":[],"scripts":[],"id":"418190BB-F008-4985-A62D-D2DD0E8098C2","shape":{"__isSmartRef__":true,"id":3823},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3829},"_MaxTextWidth":287,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3830},"showsHalos":false,"_FontSize":13,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"searchText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3831},"owner":{"__isSmartRef__":true,"id":3821},"charsReplaced":"enter method name here","lastFindLoc":22,"attributeConnections":[{"__isSmartRef__":true,"id":3832}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"isInputLine":true,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"textChunks":[{"__isSmartRef__":true,"id":3833}],"priorSelectionRange":[0,22],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3835},"lastSearchString":"prev","renderContextTable":{"__isSmartRef__":true,"id":3836},"eventHandler":{"__isSmartRef__":true,"id":3837},"_MinTextWidth":287,"_MinTextHeight":null,"previousSelection":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":3838},"isBeingDragged":false,"derivationIds":[205,"63CD6525-ECE4-4F52-A84B-27633C22F3F9","D7B775A2-513B-4768-AB24-6718580E61A9","FE8FA703-C984-4702-8139-2C4E9353FB41","2C124317-773E-498D-BB6D-9BEC99637AF3","BFDC0BE7-0289-4FA0-A2EC-14EF2BA09445","E16771FE-0062-4803-9678-9625DB0CFBFA","B9D2EC7D-E050-4D3D-8ABC-52D8ACA55936","196DC9F1-78FF-488F-80AB-8129A171A1C9","F2FB3FCC-8AE2-4DFB-AD6F-3DE2513762B0","4897081D-DCA7-4D33-B262-00412C9821FD","9DEE84F9-6727-4802-BD51-456C40E212F1"],"savedTextString":"bla","_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3823":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3824},"_Extent":{"__isSmartRef__":true,"id":3825},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3826},"renderContextTable":{"__isSmartRef__":true,"id":3827},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3828},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3824":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3825":{"x":292,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3826":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3827":{"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"},"3828":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3829":{"x":10,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3830":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3831":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3832":{"sourceObj":{"__isSmartRef__":true,"id":3822},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3821},"targetMethodName":"search","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3833":{"style":{"__isSmartRef__":true,"id":3834},"chunkOwner":{"__isSmartRef__":true,"id":3822},"storedString":"domSelection","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3834":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3835":{"x":292,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3836":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3837":{"morph":{"__isSmartRef__":true,"id":3822},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3838":{"x":199.7085210421884,"y":-15.498997494989453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3839":{"submorphs":[{"__isSmartRef__":true,"id":3840}],"scripts":[],"id":"8ACAFA92-B8CF-4E94-B6CE-1839B7F24529","shape":{"__isSmartRef__":true,"id":3855},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3871},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":3859},"lighterFill":{"__isSmartRef__":true,"id":3872},"label":{"__isSmartRef__":true,"id":3840},"showsHalos":false,"name":"searchButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":3881},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":3821},"attributeConnections":[{"__isSmartRef__":true,"id":3882}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":3883},"renderContextTable":{"__isSmartRef__":true,"id":3884},"eventHandler":{"__isSmartRef__":true,"id":3885},"distanceToDragEvent":{"__isSmartRef__":true,"id":3886},"derivationIds":[206,"CB9026E7-BAD5-49AB-B6E0-88B46D561743","C2FEDA8A-ABCE-426D-BB39-F8B4C0CCBE5F","21DC60CF-D1A0-4B54-9B91-F82A50CF8D3A","6E0B3DCD-9AD6-4AAF-A854-252E628FC222","457022C0-0CD0-426F-89B8-DAA8E3AA15C0","AE87A8FC-A7FF-40D5-B8B3-351194957A1B","0107A29A-C954-43A8-82FD-CEE77E946A25","E82E1B35-1C20-4BE4-A5CB-0936E7D4AD20","7485F277-13B5-4FF4-9B90-10385A227006","216A87FA-4CA8-4657-886E-D2EE1398E86F","051E1CDB-3E9B-41A7-89A7-24E539E5FA37"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"3840":{"submorphs":[],"scripts":[],"id":"D9C09524-8F65-42E7-82CA-340E0CAD5883","shape":{"__isSmartRef__":true,"id":3841},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3847},"_MaxTextWidth":77,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":3848},"_Padding":{"__isSmartRef__":true,"id":3849},"owner":{"__isSmartRef__":true,"id":3839},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":3850}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":3852},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":3853},"eventHandler":{"__isSmartRef__":true,"id":3854},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":77,"_MinTextHeight":null,"derivationIds":[207,"9A623BA1-A240-454B-B0DD-53932A371FB3","9E828467-210E-44D4-8E3D-17C5F92B1AAE","75AF52F1-0E7E-419A-BC00-5CCC0D52CEDC","F3C81240-9550-45C3-8B7A-8A3C0ED15BE6","70D8CC33-5AEE-45B5-AC0B-B9A6350C7F51","C80D2176-BA4F-4DCF-88D8-540ADE03E6B9","CB9FE42C-61BF-409D-9CC7-1F1B094C61FA","BF7D1270-418D-46A3-95E5-991F82DAD8C6","CDA433D8-442B-4D3A-A58E-F9C5FCED9086","039DDED5-FFAA-423A-99F2-2236BB594511","E618043F-74DF-4D4A-991F-5AA47FD766F8"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3841":{"position":{"__isSmartRef__":true,"id":3842},"_Extent":{"__isSmartRef__":true,"id":3843},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3844},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3845},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":3846},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3842":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3843":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3844":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3845":{"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"},"3846":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3847":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3848":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3849":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3850":{"style":{"__isSmartRef__":true,"id":3851},"morph":{"__isSmartRef__":true,"id":3840},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":3840},"storedString":"search","__LivelyClassName__":"lively.morphic.TextChunk"},"3851":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3852":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3853":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3854":{"morph":{"__isSmartRef__":true,"id":3840},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3855":{"position":{"__isSmartRef__":true,"id":3856},"_Extent":{"__isSmartRef__":true,"id":3857},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3858},"_Fill":{"__isSmartRef__":true,"id":3859},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3869},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3870},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3856":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3857":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3858":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3859":{"stops":[{"__isSmartRef__":true,"id":3860},{"__isSmartRef__":true,"id":3862},{"__isSmartRef__":true,"id":3864},{"__isSmartRef__":true,"id":3866}],"vector":{"__isSmartRef__":true,"id":3868},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3860":{"offset":0,"color":{"__isSmartRef__":true,"id":3861}},"3861":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3862":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3863}},"3863":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3864":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3865}},"3865":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3866":{"offset":1,"color":{"__isSmartRef__":true,"id":3867}},"3867":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3868":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3869":{"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"},"3870":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3871":{"x":310,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3872":{"stops":[{"__isSmartRef__":true,"id":3873},{"__isSmartRef__":true,"id":3875},{"__isSmartRef__":true,"id":3877},{"__isSmartRef__":true,"id":3879}],"vector":{"__isSmartRef__":true,"id":3868},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"3873":{"offset":0,"color":{"__isSmartRef__":true,"id":3874}},"3874":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3875":{"offset":0.4,"color":{"__isSmartRef__":true,"id":3876}},"3876":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3877":{"offset":0.6,"color":{"__isSmartRef__":true,"id":3878}},"3878":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3879":{"offset":1,"color":{"__isSmartRef__":true,"id":3880}},"3880":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3881":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3882":{"sourceObj":{"__isSmartRef__":true,"id":3839},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3822},"targetMethodName":"doSave","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3883":{"x":77,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3884":{"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"},"3885":{"morph":{"__isSmartRef__":true,"id":3839},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3886":{"x":53.70852104218841,"y":-21.498997494989453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3887":{"submorphs":[],"scripts":[],"id":"DFEB51CF-2595-4362-9FF5-74F968E4917C","shape":{"__isSmartRef__":true,"id":3888},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3895},"itemList":[{"__isSmartRef__":true,"id":3896},{"__isSmartRef__":true,"id":3897},{"__isSmartRef__":true,"id":3898},{"__isSmartRef__":true,"id":3899},{"__isSmartRef__":true,"id":3900},{"__isSmartRef__":true,"id":3901},{"__isSmartRef__":true,"id":3902},{"__isSmartRef__":true,"id":3903},{"__isSmartRef__":true,"id":3904},{"__isSmartRef__":true,"id":3905},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3907},{"__isSmartRef__":true,"id":3908}],"showsHalos":false,"name":"searchResultList","partsBinMetaInfo":{"__isSmartRef__":true,"id":3909},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":3821},"attributeConnections":[{"__isSmartRef__":true,"id":3910}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,192],"resizeHeight":true,"resizeWidth":true,"layout":{"__isSmartRef__":true,"id":3911},"priorExtent":{"__isSmartRef__":true,"id":3912},"renderContextTable":{"__isSmartRef__":true,"id":3913},"eventHandler":{"__isSmartRef__":true,"id":3914},"distanceToDragEvent":{"__isSmartRef__":true,"id":3915},"isBeingDragged":false,"derivationIds":[208,"884F3C31-F47F-4325-B01C-55796601323C","AF542C45-CFC5-475A-B28E-37B7FC51E468","C6B09735-9683-446C-A39C-E4924083B282","7860DCD2-EC25-4F34-B79B-18C47FBEE925","7ACC50AB-EE77-4AD9-8731-20150C616D1C","6A21BD7F-EC45-467D-BDA4-F218B9407920","0B0BFDF5-91C4-4369-AB7F-07CDAE8813BF","0D9A4870-E562-4C17-A057-3DB8D1C9234C","854096E7-42E2-48F4-B656-D1AE606FAEBF","659ABB8A-3E6D-4E1C-864B-CE8459AD730A","1A73ECB5-B976-457C-8138-8385DBD45070"],"_Rotation":0,"_Scale":1,"selection":{"__isSmartRef__":true,"id":3916},"selectedLineNo":0,"__LivelyClassName__":"lively.morphic.List"},"3888":{"position":{"__isSmartRef__":true,"id":3889},"_Extent":{"__isSmartRef__":true,"id":3890},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3891},"_Fill":{"__isSmartRef__":true,"id":3892},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3893},"_Padding":{"__isSmartRef__":true,"id":3894},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3889":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3890":{"x":845.6764200688274,"y":140,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3891":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3892":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3893":{"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"},"3894":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3895":{"x":10,"y":50,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3896":{"isListItem":true,"string":"class name: Text: domSelection","doNotSerialize":["value"],"priority":"A"},"3897":{"isListItem":true,"string":"class full: Text: getGlobalSelectionBounds","doNotSerialize":["value"],"priority":"C"},"3898":{"isListItem":true,"string":"class full: Text: getSelectionBounds","doNotSerialize":["value"],"priority":"C"},"3899":{"isListItem":true,"string":"class full: Text: getSelectionOrLineString","doNotSerialize":["value"],"priority":"C"},"3900":{"isListItem":true,"string":"class full: Text: getSelectionRange","doNotSerialize":["value"],"priority":"C"},"3901":{"isListItem":true,"string":"class full: Text: hasSelection","doNotSerialize":["value"],"priority":"C"},"3902":{"isListItem":true,"string":"class full: Text: insertElementAtCursor","doNotSerialize":["value"],"priority":"C"},"3903":{"isListItem":true,"string":"class full: Text: modifySelection","doNotSerialize":["value"],"priority":"C"},"3904":{"isListItem":true,"string":"class full: Text: selectCurrentLine","doNotSerialize":["value"],"priority":"C"},"3905":{"isListItem":true,"string":"class full: Text: selectionString","doNotSerialize":["value"],"priority":"C"},"3906":{"isListItem":true,"string":"class full: Text: setSelectionRange","doNotSerialize":["value"],"priority":"C"},"3907":{"isListItem":true,"string":"script full: MethodFinderPane1(34D73331-D93C-4D70-9F23-80D7DEDFF3B8): targetFunction","doNotSerialize":["value"],"priority":"C"},"3908":{"isListItem":true,"string":"script full: ObjectEditorAddOpenCurlyBraceButton(152E0534-6EE3-4DF6-A614-BDB6785DFA3D): onMouseDown","doNotSerialize":["value"],"priority":"C"},"3909":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3910":{"sourceObj":{"__isSmartRef__":true,"id":3887},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":3821},"targetMethodName":"browse","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3911":{"resizeWidth":true},"3912":{"x":850.9484727040478,"y":140,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3913":{"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","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"},"3914":{"morph":{"__isSmartRef__":true,"id":3887},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3915":{"x":589.7085210421884,"y":-14.498997494989453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3916":{"object":{"__isSmartRef__":true,"id":2687},"method":"domSelection","string":"Text: domSelection","type":"class","search":"implementor"},"3917":{"submorphs":[],"scripts":[],"id":"D3B22BB3-0D26-4B78-BD80-79AC3A836D70","shape":{"__isSmartRef__":true,"id":3918},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3924},"_MaxTextWidth":840.6764200688274,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":3925},"doitContext":{"__isSmartRef__":true,"id":3821},"charsReplaced":"","lastFindLoc":130,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"sourceText","savedTextString":"// changes here only affect runtime\nObject.extend(lively.morphic.Morph,{\n\tmakeLine:function (verts, lineWidth, lineColor) {\n\t\tif (verts.length < 2) return null;\n\t\tif (verts.length > 2) {\n\t\t\t// Polylines become a mere blob for now...\n\t\t\tvar morph = this.makeRectangle(Rectangle.unionPts(verts));\n\t\t\tmorph.setBorderWidth(lineWidth);\n\t\t\tmorph.setBorderColor(lineColor);\n\t\t\tmorph.setFill(null);\n\t\t\treturn morph;\n\t\t} \n\t\t// Okay, it's a simple line...\n\t\tvar p1 = verts[0]; var p2 = verts[1];\n\t\tvar v = p2.subPt(p1);\n \n\t\t// First make a horizontal line of the same length with origin at (0, 0)\n\t\tvar morph = this.makeRectangle(Rectangle.unionPts([pt(0, -lineWidth/2), Point.polar(v.r(), 0).addXY(0, lineWidth/2)]));\n\n\t\t// *** Not right, but we want to make position and center of rot = (0, 0):\n\t\t// morph._Position = pt(0, 0);\n\n\t\tmorph.setBorderWidth(0);\n\t\tmorph.setFill(lineColor);\n\n\t\t// Then move and rotate, with first vertex being the rotation center\n\t\tmorph.moveBy(p1);\n\t\tmorph.setOrigin(pt(0, lineWidth/2));\n\t\tmorph.isLine = true;\n\t\treturn morph.rotateBy(v.theta());\n\t}\n});","textChunks":[{"__isSmartRef__":true,"id":3926},{"__isSmartRef__":true,"id":3928},{"__isSmartRef__":true,"id":3930},{"__isSmartRef__":true,"id":3932},{"__isSmartRef__":true,"id":3934},{"__isSmartRef__":true,"id":3936},{"__isSmartRef__":true,"id":3938},{"__isSmartRef__":true,"id":3940},{"__isSmartRef__":true,"id":3942},{"__isSmartRef__":true,"id":3944},{"__isSmartRef__":true,"id":3946},{"__isSmartRef__":true,"id":3948},{"__isSmartRef__":true,"id":3950},{"__isSmartRef__":true,"id":3952},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":3956},{"__isSmartRef__":true,"id":3958},{"__isSmartRef__":true,"id":3960},{"__isSmartRef__":true,"id":3962},{"__isSmartRef__":true,"id":3964},{"__isSmartRef__":true,"id":3966},{"__isSmartRef__":true,"id":3968},{"__isSmartRef__":true,"id":3970},{"__isSmartRef__":true,"id":3972},{"__isSmartRef__":true,"id":3974},{"__isSmartRef__":true,"id":3976},{"__isSmartRef__":true,"id":3978},{"__isSmartRef__":true,"id":3980},{"__isSmartRef__":true,"id":3982},{"__isSmartRef__":true,"id":3984},{"__isSmartRef__":true,"id":3986},{"__isSmartRef__":true,"id":3988},{"__isSmartRef__":true,"id":3990},{"__isSmartRef__":true,"id":3992},{"__isSmartRef__":true,"id":3994},{"__isSmartRef__":true,"id":3996},{"__isSmartRef__":true,"id":3998},{"__isSmartRef__":true,"id":4000},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4004},{"__isSmartRef__":true,"id":4006},{"__isSmartRef__":true,"id":4008},{"__isSmartRef__":true,"id":4010},{"__isSmartRef__":true,"id":4012},{"__isSmartRef__":true,"id":4014},{"__isSmartRef__":true,"id":4016},{"__isSmartRef__":true,"id":4018},{"__isSmartRef__":true,"id":4020},{"__isSmartRef__":true,"id":4022},{"__isSmartRef__":true,"id":4024},{"__isSmartRef__":true,"id":4026},{"__isSmartRef__":true,"id":4028},{"__isSmartRef__":true,"id":4030},{"__isSmartRef__":true,"id":4032},{"__isSmartRef__":true,"id":4034}],"priorSelectionRange":[73,64],"_ClipMode":"auto","prevScroll":[0,0],"_FontSize":9,"owner":{"__isSmartRef__":true,"id":3821},"priorExtent":{"__isSmartRef__":true,"id":4036},"lastSyntaxHighlightTime":1334827758417,"renderContextTable":{"__isSmartRef__":true,"id":4037},"eventHandler":{"__isSmartRef__":true,"id":4038},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":840.6764200688274,"_MinTextHeight":null,"previousSelection":[69,69],"distanceToDragEvent":{"__isSmartRef__":true,"id":4039},"isBeingDragged":false,"derivationIds":[209,"04D0F127-514D-4BED-841E-6A4CEF4FFDDA","D40D5739-DE56-49F4-B02A-A4ED75AF054A","42528900-D082-4C7A-8E70-1E67923301D9","5167B7DC-8F45-4AD0-96D7-947FF3EE0BB7","D0BFE91E-6EF1-4165-A42C-CC81C9CD2050","04C1BABF-5514-417C-AE67-882A1252EB67","8B053B4D-76D1-4DCB-8E89-8E7ABA3EF3D1","CB2FFA38-BC16-4D98-A807-722CCCC26062","D19D6343-8887-4386-8B87-4560230A5D11","2FFE6CC8-A851-44E9-B6B7-9D9370DEB9C9","A1509C4A-C98B-44CF-ACF8-DA444E7A9B75"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4040},"__LivelyClassName__":"lively.morphic.Text"},"3918":{"position":{"__isSmartRef__":true,"id":3919},"_Extent":{"__isSmartRef__":true,"id":3920},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3826},"_Fill":{"__isSmartRef__":true,"id":3921},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3922},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":3923},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3919":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3920":{"x":845.6764200688274,"y":195.7127101296919,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3921":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3922":{"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"},"3923":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3924":{"x":10,"y":230,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3925":{"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false},"3926":{"style":{"__isSmartRef__":true,"id":3927},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"// changes here only affect runtime","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3927":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3928":{"style":{"__isSmartRef__":true,"id":3929},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3929":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3930":{"style":{"__isSmartRef__":true,"id":3931},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3931":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3932":{"style":{"__isSmartRef__":true,"id":3933},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":".","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3933":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3934":{"style":{"__isSmartRef__":true,"id":3935},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"addMethods","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3935":{"color":{"__isSmartRef__":true,"id":2747},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3936":{"style":{"__isSmartRef__":true,"id":3937},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"(","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3937":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3938":{"style":{"__isSmartRef__":true,"id":3939},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3939":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3940":{"style":{"__isSmartRef__":true,"id":3941},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3941":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3942":{"style":{"__isSmartRef__":true,"id":3943},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"domSelection","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3943":{"color":{"__isSmartRef__":true,"id":2756},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3944":{"style":{"__isSmartRef__":true,"id":3945},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":":","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3945":{"color":{"__isSmartRef__":true,"id":2759},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3946":{"style":{"__isSmartRef__":true,"id":3947},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3947":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3948":{"style":{"__isSmartRef__":true,"id":3949},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"function","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3949":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3950":{"style":{"__isSmartRef__":true,"id":3951},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" () ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3951":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3952":{"style":{"__isSmartRef__":true,"id":3953},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3953":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3954":{"style":{"__isSmartRef__":true,"id":3955},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3955":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3956":{"style":{"__isSmartRef__":true,"id":3957},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"var","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3957":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3958":{"style":{"__isSmartRef__":true,"id":3959},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" sel = Global.getSelection(),\n textNode = ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3959":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3960":{"style":{"__isSmartRef__":true,"id":3961},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"this","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3961":{"color":{"__isSmartRef__":true,"id":2764},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3962":{"style":{"__isSmartRef__":true,"id":3963},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":".renderContext().textNode;\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3963":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3964":{"style":{"__isSmartRef__":true,"id":3965},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3965":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3966":{"style":{"__isSmartRef__":true,"id":3967},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" (!sel || !sel.focusNode || !textNode) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3967":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3968":{"style":{"__isSmartRef__":true,"id":3969},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3969":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3970":{"style":{"__isSmartRef__":true,"id":3971},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3971":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3972":{"style":{"__isSmartRef__":true,"id":3973},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"return","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3973":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3974":{"style":{"__isSmartRef__":true,"id":3975},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" null;\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3975":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3976":{"style":{"__isSmartRef__":true,"id":3977},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3977":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3978":{"style":{"__isSmartRef__":true,"id":3979},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3979":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3980":{"style":{"__isSmartRef__":true,"id":3981},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3981":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3982":{"style":{"__isSmartRef__":true,"id":3983},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" (!textNode.parentNode) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3983":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3984":{"style":{"__isSmartRef__":true,"id":3985},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3985":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3986":{"style":{"__isSmartRef__":true,"id":3987},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3987":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3988":{"style":{"__isSmartRef__":true,"id":3989},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"// console.log('warning: Text>>","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3989":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3990":{"style":{"__isSmartRef__":true,"id":3991},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"domSelection","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3991":{"color":{"__isSmartRef__":true,"id":2756},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3992":{"style":{"__isSmartRef__":true,"id":3993},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":": textNode is not in DOM');","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3993":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3994":{"style":{"__isSmartRef__":true,"id":3995},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3995":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3996":{"style":{"__isSmartRef__":true,"id":3997},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"return","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3997":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"3998":{"style":{"__isSmartRef__":true,"id":3999},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" null;\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"3999":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4000":{"style":{"__isSmartRef__":true,"id":4001},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4001":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4002":{"style":{"__isSmartRef__":true,"id":4003},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4003":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4004":{"style":{"__isSmartRef__":true,"id":4005},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"if","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4005":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4006":{"style":{"__isSmartRef__":true,"id":4007},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" (sel.focusNode.compareDocumentPosition(textNode.parentNode) &\n Node.DOCUMENT_POSITION_CONTAINS) ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4007":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4008":{"style":{"__isSmartRef__":true,"id":4009},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4009":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4010":{"style":{"__isSmartRef__":true,"id":4011},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4011":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4012":{"style":{"__isSmartRef__":true,"id":4013},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"// textNode's parent contains focused selection's focusNode","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4013":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4014":{"style":{"__isSmartRef__":true,"id":4015},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4015":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4016":{"style":{"__isSmartRef__":true,"id":4017},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"return","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4017":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4018":{"style":{"__isSmartRef__":true,"id":4019},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" sel;\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4019":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4020":{"style":{"__isSmartRef__":true,"id":4021},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4021":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4022":{"style":{"__isSmartRef__":true,"id":4023},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4023":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4024":{"style":{"__isSmartRef__":true,"id":4025},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"return","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4025":{"color":{"__isSmartRef__":true,"id":2742},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4026":{"style":{"__isSmartRef__":true,"id":4027},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":" null;\n ","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4027":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4028":{"style":{"__isSmartRef__":true,"id":4029},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4029":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4030":{"style":{"__isSmartRef__":true,"id":4031},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4031":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4032":{"style":{"__isSmartRef__":true,"id":4033},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4033":{"color":{"__isSmartRef__":true,"id":2737},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4034":{"style":{"__isSmartRef__":true,"id":4035},"chunkOwner":{"__isSmartRef__":true,"id":3917},"storedString":");","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4035":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4036":{"x":850.9484727040478,"y":197.97423635202387,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4037":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4038":{"morph":{"__isSmartRef__":true,"id":3917},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4039":{"x":582.0068382418127,"y":-20.48073201899024,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4040":{"doSave":{"__isSmartRef__":true,"id":4041},"getDoitContext":{"__isSmartRef__":true,"id":4048}},"4041":{"varMapping":{"__isSmartRef__":true,"id":4042},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":4047},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4042":{"this":{"__isSmartRef__":true,"id":3917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4043}},"4043":{"$super":{"__isSmartRef__":true,"id":4044}},"4044":{"varMapping":{"__isSmartRef__":true,"id":4045},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":4046},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4045":{"obj":{"__isSmartRef__":true,"id":3917},"name":"doSave"},"4046":{},"4047":{},"4048":{"varMapping":{"__isSmartRef__":true,"id":4049},"source":"function getDoitContext() {\n\treturn this.owner.targetObject\n}","funcProperties":{"__isSmartRef__":true,"id":4054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4049":{"this":{"__isSmartRef__":true,"id":3917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4050}},"4050":{"$super":{"__isSmartRef__":true,"id":4051}},"4051":{"varMapping":{"__isSmartRef__":true,"id":4052},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":4053},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4052":{"obj":{"__isSmartRef__":true,"id":3917},"name":"getDoitContext"},"4053":{},"4054":{},"4055":{"submorphs":[],"scripts":[],"id":"3839F319-5C38-4998-85D0-506119C84F11","shape":{"__isSmartRef__":true,"id":4056},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4062},"_MaxTextWidth":841.6764200688274,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":4063},"charsReplaced":"","lastFindLoc":697,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"infoText","savedTextString":"// MethodFinder (this)\n\n// ** MethodFinder's Scripts **\nthis.addScript(function browse(fileFragment) {\n\tfileFragment && fileFragment.browseIt()\n});\n\nthis.addScript(function reset() {\n\tthis.get('searchResultList').updateList([]);\n\tthis.get('searchResultList').setSelection(null);\n\tthis.get('searchText').setTextString('enter search term here');\n});\n\n\nthis.addScript(function search(searchString) {\n\tvar finds = [];\n\tvar re = new RegExp(searchString)\n\tvar i=0;\n\tvar time = Functions.timeToRun(function() {\n\tGlobal.classes(true).forEach(function(eaClass) {\n\t\tFunctions.own(eaClass.prototype)\n\t\t\t.forEach(function(eaMethod) {\n\t\t\t\ti++;\n\t\t\t\tif (eaMethod.match(re)){\n\t\t\t\t\tfinds.push([eaClass, eaMethod])\n\t\t\t\t}\t\n\t\t\t})\t\n\t})})\n\talert(\"search \" + i + \" methods, found \" + finds.length + \" methods in \" + time + \"ms\")\n\n\tvar items = finds.collect(function(ea) {\n\t\treturn {\n\t\t\tisListItem: true,\n\t\t\tvalue: ea,\n\t\t\tstring: ea[0].name + \": \" + ea[1],\n\t\t}\n\t})\n\tthis.get('searchResultList').updateList(items);\n});","textChunks":[{"__isSmartRef__":true,"id":4064}],"priorSelectionRange":[37,37],"_ClipMode":"hidden","prevScroll":[0,0],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":4066},"owner":{"__isSmartRef__":true,"id":3821},"renderContextTable":{"__isSmartRef__":true,"id":4067},"eventHandler":{"__isSmartRef__":true,"id":4068},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":841.6764200688274,"_MinTextHeight":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":4069},"derivationIds":[210,"E20B9061-6128-4BD4-BE8B-4B50F9BC8EA1","FFFED58E-70A3-4945-A7C8-19E2C0754BB7","1B69878E-8E43-4E25-BAE7-3D64CAE35839","2770B759-8971-45F4-8291-6DA85EBD1155","B0E0F94A-1BB3-405B-87BB-3C1199A8EB79","8EF852C4-A375-4F84-873C-4277F9A99D52","AA10C5AE-8C29-45DA-8CA5-A0E286F80E82","4B3576CB-50DD-49DF-913C-88D34002B5DC","B9692647-A99C-4A20-9C6C-3DF722D48DDE","109C8B5F-DBAA-490E-A061-CB3004CD8634","6494496E-CBF0-4256-ACA4-D7E7B674F7CE"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4056":{"position":{"__isSmartRef__":true,"id":4057},"_Extent":{"__isSmartRef__":true,"id":4058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3826},"_Fill":{"__isSmartRef__":true,"id":4059},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4060},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4061},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4057":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4058":{"x":845.6764200688274,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4059":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4060":{"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"},"4061":{"x":2,"y":1,"width":-2,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4062":{"x":10,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4063":{"resizeWidth":true,"resizeHeight":false,"moveVertical":false,"moveHorizontal":false},"4064":{"style":{"__isSmartRef__":true,"id":4065},"chunkOwner":{"__isSmartRef__":true,"id":4055},"storedString":"module(Global.lively.morphic.TextCore)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4065":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4066":{"x":850.9484727040478,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4067":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4068":{"morph":{"__isSmartRef__":true,"id":4055},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4069":{"x":587.0068382418127,"y":-13.480732018990238,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4070":{"submorphs":[{"__isSmartRef__":true,"id":4071}],"scripts":[],"id":"8E63E6C5-DACC-482D-9B8E-183606B6E5BA","shape":{"__isSmartRef__":true,"id":4086},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4089},"lighterFill":{"__isSmartRef__":true,"id":4101},"label":{"__isSmartRef__":true,"id":4071},"showsHalos":false,"name":"browse","partsBinMetaInfo":{"__isSmartRef__":true,"id":4110},"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[{"__isSmartRef__":true,"id":4111}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":4112},"renderContextTable":{"__isSmartRef__":true,"id":4113},"eventHandler":{"__isSmartRef__":true,"id":4114},"distanceToDragEvent":{"__isSmartRef__":true,"id":4115},"_Position":{"__isSmartRef__":true,"id":4116},"owner":{"__isSmartRef__":true,"id":3821},"derivationIds":[211,"72C2FBB1-F169-43CC-AC8A-C0889FCB1663","8CF07460-17AC-4EC3-83C4-E31D52336E14","BE09102D-553E-4BB6-84A6-4D428731DD1B","2D43F043-9567-4765-A19C-7C922F0DFFE7","A77836E8-3C83-4A1D-B37A-7DDBA7FE13DE","13EB973D-FF17-4A76-AD4B-13347D80B1A9","8A92D97E-6965-49F7-B2B0-8842FB9ADCDF","662F4742-3BD8-4D39-88CB-EE97BC2306D6","8F15DC2D-892E-4B0F-83CB-8E7012281BEB","57A38C48-8036-4D85-91C8-9F60FE72DACE","5F6BEEC4-A021-4428-AC2A-14F8A4F9B68C"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"4071":{"submorphs":[],"scripts":[],"id":"FBCEC94A-48D2-4E27-A190-B6CEB0C74FC0","shape":{"__isSmartRef__":true,"id":4072},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4078},"_MaxTextWidth":78,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":4079},"_Padding":{"__isSmartRef__":true,"id":4080},"owner":{"__isSmartRef__":true,"id":4070},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":4081}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4083},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4084},"eventHandler":{"__isSmartRef__":true,"id":4085},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":78,"_MinTextHeight":null,"derivationIds":[212,"054FD83F-508D-488D-A011-8769DCB647DF","834D337A-5619-4055-B103-7BDAA88CD7A9","3C85FBE2-5C85-4CCF-B86A-25E65015429B","001D6261-96E2-4ACC-880A-8540815DC8D3","90FFCC86-B995-4F2F-872F-55A8A74FC99E","766B1A00-7692-4CAB-B106-01876B4D5F77","C36FA883-C0F4-47DA-B1A9-CB8D82C1C6E4","91BD5A6B-4A46-43EA-8FA0-2A5C4EFDD1A7","B8CDD839-4085-4D54-B360-5F4DAC2DD83C","C25AEC86-A78F-4355-A843-3CACF03215A8","B28C6DEB-10EF-40BF-BA3F-3BFA8EB2B14D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4072":{"position":{"__isSmartRef__":true,"id":4073},"_Extent":{"__isSmartRef__":true,"id":4074},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4075},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4076},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4077},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4073":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4074":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4075":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4076":{"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"},"4077":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4078":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4079":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4080":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4081":{"style":{"__isSmartRef__":true,"id":4082},"morph":{"__isSmartRef__":true,"id":4071},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":4071},"storedString":"browse","__LivelyClassName__":"lively.morphic.TextChunk"},"4082":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4083":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4084":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4085":{"morph":{"__isSmartRef__":true,"id":4071},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4086":{"position":{"__isSmartRef__":true,"id":4087},"_Extent":{"__isSmartRef__":true,"id":4088},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3858},"_Fill":{"__isSmartRef__":true,"id":4089},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4099},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4100},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4087":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4088":{"x":78,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4089":{"stops":[{"__isSmartRef__":true,"id":4090},{"__isSmartRef__":true,"id":4092},{"__isSmartRef__":true,"id":4094},{"__isSmartRef__":true,"id":4096}],"vector":{"__isSmartRef__":true,"id":4098},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4090":{"offset":0,"color":{"__isSmartRef__":true,"id":4091}},"4091":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4092":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4093}},"4093":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4094":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4095}},"4095":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4096":{"offset":1,"color":{"__isSmartRef__":true,"id":4097}},"4097":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4098":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4099":{"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"},"4100":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4101":{"stops":[{"__isSmartRef__":true,"id":4102},{"__isSmartRef__":true,"id":4104},{"__isSmartRef__":true,"id":4106},{"__isSmartRef__":true,"id":4108}],"vector":{"__isSmartRef__":true,"id":4098},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4102":{"offset":0,"color":{"__isSmartRef__":true,"id":4103}},"4103":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4104":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4105}},"4105":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4106":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4107}},"4107":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4108":{"offset":1,"color":{"__isSmartRef__":true,"id":4109}},"4109":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4110":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4111":{"sourceObj":{"__isSmartRef__":true,"id":4070},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3821},"targetMethodName":"browseMethod","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4112":{"x":77,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4113":{"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"},"4114":{"morph":{"__isSmartRef__":true,"id":4070},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4115":{"x":53.66458745330033,"y":-17.22490844717396,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4116":{"x":400,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4117":{"submorphs":[{"__isSmartRef__":true,"id":4118}],"scripts":[],"id":"DD613549-CF20-4BFD-AE2A-BA183BD01D6A","shape":{"__isSmartRef__":true,"id":4133},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4136},"lighterFill":{"__isSmartRef__":true,"id":4148},"label":{"__isSmartRef__":true,"id":4118},"name":"Button1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4157},"attributeConnections":[{"__isSmartRef__":true,"id":4158}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":4194},"renderContextTable":{"__isSmartRef__":true,"id":4195},"eventHandler":{"__isSmartRef__":true,"id":4196},"distanceToDragEvent":{"__isSmartRef__":true,"id":4197},"prevScroll":[0,0],"_Position":{"__isSmartRef__":true,"id":4198},"owner":{"__isSmartRef__":true,"id":3821},"layout":{"__isSmartRef__":true,"id":4199},"derivationIds":[213,"EC7B60B8-A81F-4F24-A467-A661149CA045","DF2DEFBB-9271-4448-98A1-D2137526C2C3","EBFAF287-C65D-425B-910E-D6ADC7FA9D02","7F2E684F-7CC3-4CC4-8B18-920427491622","F7E9C68E-814B-4197-9D5B-556DCF0EC4F6","3DC305C0-5A87-4ED4-B263-5E5333B947FB","A8805225-9530-403B-977E-A2929A077DD0","0BF85746-8777-4195-949A-8733B4D79B02","8E485E0B-1832-4C7C-A5B1-D14057A7F5E3","4793FFDA-8803-44C7-97D4-27DE49B5D8D0","3FDA3264-B677-48AF-95D0-46DDD933EFBF"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"4118":{"submorphs":[],"scripts":[],"id":"05917C0F-3D66-44FC-8755-273A3F3A4930","shape":{"__isSmartRef__":true,"id":4119},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4125},"_MaxTextWidth":157.05605605605615,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4126},"_Padding":{"__isSmartRef__":true,"id":4127},"owner":{"__isSmartRef__":true,"id":4117},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4128},"textChunks":[{"__isSmartRef__":true,"id":4129}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4131},"eventHandler":{"__isSmartRef__":true,"id":4132},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":157.05605605605615,"_MinTextHeight":null,"derivationIds":[214,"D88E1591-8BE5-4F54-AEB5-71BC24E2014D","FE6955F2-3796-4030-BD54-73604562225B","0F07A5A7-E04B-412A-8D91-2AA448965A0E","634A262F-940F-4590-8DB1-0738A6DF355A","221F164E-FD6F-40ED-8E18-E055A638CE93","1320C4DD-9213-40AA-A107-5EF8EBE9B22A","098E1029-F36B-4434-B20F-A2100DCCBB9A","39D48D5A-BB94-40BA-AB93-09B3B787EC3D","27F752E4-9705-4F8B-9CC4-6E5131892552","78776F49-7628-4F29-81F1-7AFC77BDAFE0","5ACE871C-A220-4C51-A9E1-9315BE30BB0A"],"__LivelyClassName__":"lively.morphic.Text"},"4119":{"position":{"__isSmartRef__":true,"id":4120},"_Extent":{"__isSmartRef__":true,"id":4121},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4122},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4123},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4124},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4120":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4121":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4122":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4123":{"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"},"4124":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4125":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4126":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4127":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4128":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4129":{"style":{"__isSmartRef__":true,"id":4130},"chunkOwner":{"__isSmartRef__":true,"id":4118},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"search on server","__LivelyClassName__":"lively.morphic.TextChunk"},"4130":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4131":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4132":{"morph":{"__isSmartRef__":true,"id":4118},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4133":{"position":{"__isSmartRef__":true,"id":4134},"_Extent":{"__isSmartRef__":true,"id":4135},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":3858},"_Fill":{"__isSmartRef__":true,"id":4136},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4146},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4147},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4134":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4135":{"x":157.05605605605615,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4136":{"stops":[{"__isSmartRef__":true,"id":4137},{"__isSmartRef__":true,"id":4139},{"__isSmartRef__":true,"id":4141},{"__isSmartRef__":true,"id":4143}],"vector":{"__isSmartRef__":true,"id":4145},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4137":{"offset":0,"color":{"__isSmartRef__":true,"id":4138}},"4138":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4139":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4140}},"4140":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4141":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4142}},"4142":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4143":{"offset":1,"color":{"__isSmartRef__":true,"id":4144}},"4144":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4145":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4146":{"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"},"4147":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4148":{"stops":[{"__isSmartRef__":true,"id":4149},{"__isSmartRef__":true,"id":4151},{"__isSmartRef__":true,"id":4153},{"__isSmartRef__":true,"id":4155}],"vector":{"__isSmartRef__":true,"id":4145},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4149":{"offset":0,"color":{"__isSmartRef__":true,"id":4150}},"4150":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4151":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4152}},"4152":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4153":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4154}},"4154":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4155":{"offset":1,"color":{"__isSmartRef__":true,"id":4156}},"4156":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4157":{"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"},"4158":{"sourceObj":{"__isSmartRef__":true,"id":4117},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3821},"targetMethodName":"searchOnServer","visualConnector":{"__isSmartRef__":true,"id":4159},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4159":{"submorphs":[{"__isSmartRef__":true,"id":4160}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4175},"id":865,"renderContextTable":{"__isSmartRef__":true,"id":4182},"eventHandler":{"__isSmartRef__":true,"id":4183},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":4184},{"__isSmartRef__":true,"id":4185}],"con":{"__isSmartRef__":true,"id":4158},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4186},"__LivelyClassName__":"lively.morphic.Path"},"4160":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4161},"id":866,"renderContextTable":{"__isSmartRef__":true,"id":4172},"eventHandler":{"__isSmartRef__":true,"id":4173},"__layered_droppingEnabled__":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4174},"owner":{"__isSmartRef__":true,"id":4159},"_Rotation":-3.113822016996372,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"4161":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4162},{"__isSmartRef__":true,"id":4163},{"__isSmartRef__":true,"id":4164},{"__isSmartRef__":true,"id":4165}],"renderContextTable":{"__isSmartRef__":true,"id":4166},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4167},"_Extent":{"__isSmartRef__":true,"id":4168},"_Padding":{"__isSmartRef__":true,"id":4169},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4170},"_Fill":{"__isSmartRef__":true,"id":4171},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4162":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4163":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4164":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4165":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4166":{"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"},"4167":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4168":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4169":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4170":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4171":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4172":{"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"},"4173":{"morph":{"__isSmartRef__":true,"id":4160},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4174":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4175":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4176},{"__isSmartRef__":true,"id":4177}],"renderContextTable":{"__isSmartRef__":true,"id":4178},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4179},"_Extent":{"__isSmartRef__":true,"id":4180},"_Padding":{"__isSmartRef__":true,"id":4181},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4170},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4176":{"isAbsolute":true,"x":719.9999999999999,"y":20,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4177":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4178":{"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"},"4179":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4180":{"x":721,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4181":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4182":{"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"},"4183":{"morph":{"__isSmartRef__":true,"id":4159},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4184":{"morph":{"__isSmartRef__":true,"id":4159},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4185":{"morph":{"__isSmartRef__":true,"id":4159},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":4160},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4186":{"morphMenuItems":{"__isSmartRef__":true,"id":4187}},"4187":{"varMapping":{"__isSmartRef__":true,"id":4188},"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":4193},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4188":{"this":{"__isSmartRef__":true,"id":4159},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4189}},"4189":{"$super":{"__isSmartRef__":true,"id":4190}},"4190":{"varMapping":{"__isSmartRef__":true,"id":4191},"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":4192},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4191":{"obj":{"__isSmartRef__":true,"id":4159},"name":"morphMenuItems"},"4192":{},"4193":{},"4194":{"x":159.05805805805812,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4195":{"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"},"4196":{"morph":{"__isSmartRef__":true,"id":4117},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4197":{"x":111.36105352154709,"y":-11.352025158627953,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4198":{"x":490,"y":19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4199":{"moveHorizontal":false},"4200":{"submorphs":[{"__isSmartRef__":true,"id":4201}],"scripts":[],"id":"57EF116E-CB1E-4297-9CE6-62CE735BE69E","shape":{"__isSmartRef__":true,"id":4216},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4231},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4219},"lighterFill":{"__isSmartRef__":true,"id":4232},"label":{"__isSmartRef__":true,"id":4201},"name":"ScriptableButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4241},"attributeConnections":[{"__isSmartRef__":true,"id":4242}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":4243},"renderContextTable":{"__isSmartRef__":true,"id":4244},"eventHandler":{"__isSmartRef__":true,"id":4245},"derivationIds":[2588,"8DA01C71-0A84-4A5A-8027-121F4684BB04","2F4904A6-2C6F-4A39-8C69-7C1E943F91B4","7F6F4EE1-856E-477B-8578-D99400031DBA","374C68BB-3D86-4DA0-9616-2B5320585D0E","23336C67-2F65-4D9F-9380-304876DC628F","8E57191F-E38B-4526-95AA-8D530FAC8156"],"owner":{"__isSmartRef__":true,"id":3821},"distanceToDragEvent":{"__isSmartRef__":true,"id":4246},"_Rotation":0,"_Scale":1.002003004005006,"layout":{"__isSmartRef__":true,"id":4247},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4248},"__LivelyClassName__":"lively.morphic.Button"},"4201":{"submorphs":[],"scripts":[],"id":"3CCEFFFC-365F-4989-B32A-A27CD3DF4F7E","shape":{"__isSmartRef__":true,"id":4202},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4208},"_MaxTextWidth":20,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4209},"_Padding":{"__isSmartRef__":true,"id":4210},"owner":{"__isSmartRef__":true,"id":4200},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4211},"textChunks":[{"__isSmartRef__":true,"id":4212}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4214},"eventHandler":{"__isSmartRef__":true,"id":4215},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"784F6E71-6365-4235-A0B6-69F992BB532B","54335D65-DB12-4322-84D0-BA8B85E7ED2F","2EF9D95D-4705-44B3-8D3C-446FEDC6346B","07108773-133C-4F4A-A740-33175849E789","E58C564E-D8F3-481A-821D-447F7C7556D8","D92DDD8E-7733-4909-A5E9-049EC55E90C0"],"_MinTextWidth":20,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"4202":{"position":{"__isSmartRef__":true,"id":4203},"_Extent":{"__isSmartRef__":true,"id":4204},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4205},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4206},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4207},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4203":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4204":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4205":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4206":{"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"},"4207":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4208":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4209":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4210":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4211":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4212":{"style":{"__isSmartRef__":true,"id":4213},"chunkOwner":{"__isSmartRef__":true,"id":4201},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"x","__LivelyClassName__":"lively.morphic.TextChunk"},"4213":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4214":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4215":{"morph":{"__isSmartRef__":true,"id":4201},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4216":{"position":{"__isSmartRef__":true,"id":4217},"_Extent":{"__isSmartRef__":true,"id":4218},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":3858},"_Fill":{"__isSmartRef__":true,"id":4219},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4229},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4230},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4217":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4218":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4219":{"stops":[{"__isSmartRef__":true,"id":4220},{"__isSmartRef__":true,"id":4222},{"__isSmartRef__":true,"id":4224},{"__isSmartRef__":true,"id":4226}],"vector":{"__isSmartRef__":true,"id":4228},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4220":{"offset":0,"color":{"__isSmartRef__":true,"id":4221}},"4221":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4222":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4223}},"4223":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4224":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4225}},"4225":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4226":{"offset":1,"color":{"__isSmartRef__":true,"id":4227}},"4227":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4228":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4229":{"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"},"4230":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4231":{"x":836.8179038849663,"y":20.973229619022163,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4232":{"stops":[{"__isSmartRef__":true,"id":4233},{"__isSmartRef__":true,"id":4235},{"__isSmartRef__":true,"id":4237},{"__isSmartRef__":true,"id":4239}],"vector":{"__isSmartRef__":true,"id":4228},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4233":{"offset":0,"color":{"__isSmartRef__":true,"id":4234}},"4234":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4235":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4236}},"4236":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4237":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4238}},"4238":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4239":{"offset":1,"color":{"__isSmartRef__":true,"id":4240}},"4240":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4241":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4242":{"sourceObj":{"__isSmartRef__":true,"id":4200},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4200},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4243":{"x":20,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4244":{"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"},"4245":{"morph":{"__isSmartRef__":true,"id":4200},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4246":{"x":34.37010312407733,"y":-11.180760580820959,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4247":{"moveHorizontal":true},"4248":{"onFire":{"__isSmartRef__":true,"id":4249}},"4249":{"varMapping":{"__isSmartRef__":true,"id":4250},"source":"function onFire() {\n var tab = this.owner.owner.tab\n var toolPane = this.get('ToolTabPane')\n toolPane.tabBar.removeTab(tab)\n if(toolPane.tabBar.getTabs().length == 0) {\n if (toolPane.owner instanceof lively.morphic.Window)\n toolPane.owner.remove();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4251},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4250":{"this":{"__isSmartRef__":true,"id":4200}},"4251":{"timestamp":{"__isSmartRef__":true,"id":4252},"user":"undefined","tags":[]},"4252":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:32:27 GMT+0100 (Mitteleuropäische Zeit)"},"4253":{"position":{"__isSmartRef__":true,"id":4254},"_Extent":{"__isSmartRef__":true,"id":3007},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4255},"_Fill":{"__isSmartRef__":true,"id":4256},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4258},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4254":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4255":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4256":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4257":{"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"},"4258":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4259":{"partsSpaceName":"PartsBin/Dialogs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"requiredModules":["lively.ide"],"partName":"MethodFinderPane","comment":"Pane for new ToolTabs","changes":[{"__isSmartRef__":true,"id":4260},{"__isSmartRef__":true,"id":4262},{"__isSmartRef__":true,"id":4264},{"__isSmartRef__":true,"id":4266},{"__isSmartRef__":true,"id":4268},{"__isSmartRef__":true,"id":4270},{"__isSmartRef__":true,"id":4272},{"__isSmartRef__":true,"id":4274}],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"revisionOnLoad":148699,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4260":{"date":{"__isSmartRef__":true,"id":4261},"author":"jenslincke","message":"- fixed browse Global definitions","id":"7DE86114-1D7E-4551-BC8F-E12A980A8EE9"},"4261":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:27:56 GMT+0100 (Mitteleuropäische Zeit)"},"4262":{"date":{"__isSmartRef__":true,"id":4263},"author":"athomschke","message":"adjusted close button","id":"9EBA6297-7908-4B02-81F5-2B86B2E4B73D"},"4263":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:57:09 GMT+0100 (Mitteleuropäische Zeit)"},"4264":{"date":{"__isSmartRef__":true,"id":4265},"author":"undefined","message":"","id":"47289007-8CB3-4B03-B9D1-3A8717E85DCB"},"4265":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:36:31 GMT+0100 (Mitteleuropäische Zeit)"},"4266":{"date":{"__isSmartRef__":true,"id":4267},"author":"undefined","message":"- close button behavior","id":"0AD4C501-1DC4-4DD3-AFDC-A46F4ACD2CE1"},"4267":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:32:48 GMT+0100 (Mitteleuropäische Zeit)"},"4268":{"date":{"__isSmartRef__":true,"id":4269},"author":"undefined","message":"","id":"CA16FEC1-49E5-4310-BDB6-F744F413F7EF"},"4269":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:48:35 GMT+0100 (Mitteleuropäische Zeit)"},"4270":{"date":{"__isSmartRef__":true,"id":4271},"author":"undefined","message":"","id":"73F39208-58C9-4040-9948-516A104E5049"},"4271":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:42:18 GMT+0100 (Mitteleuropäische Zeit)"},"4272":{"date":{"__isSmartRef__":true,"id":4273},"author":"undefined","message":"","id":"7A744B14-C057-4944-AFDD-CC78A910B35F"},"4273":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:40:30 GMT+0100 (Mitteleuropäische Zeit)"},"4274":{"date":{"__isSmartRef__":true,"id":4275},"author":"undefined","message":"some style adjustments","id":"DA3EFD12-8A45-454C-993B-DB12847BEF94"},"4275":{"isSerializedDate":true,"string":"Mon Mar 26 2012 13:16:30 GMT+0200 (Mitteleuropäische Sommerzeit)"},"4276":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"4277":{"x":872.0934621532042,"y":440.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4278":{"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"},"4279":{"morph":{"__isSmartRef__":true,"id":3821},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4280":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4281":{"x":583.4236186029176,"y":-13.858684727694055,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4282":{"search":{"__isSmartRef__":true,"id":4283},"browse":{"__isSmartRef__":true,"id":4287},"reset":{"__isSmartRef__":true,"id":4291},"setSearch":{"__isSmartRef__":true,"id":4295},"emphasizeStringIn":{"__isSmartRef__":true,"id":4298},"withAllMethodsDo":{"__isSmartRef__":true,"id":4301},"itemsFromFinds":{"__isSmartRef__":true,"id":4305},"browseMethod":{"__isSmartRef__":true,"id":4309},"openMethodInSystemBrowser":{"__isSmartRef__":true,"id":4313},"findSourceModule":{"__isSmartRef__":true,"id":4317},"searchOnServer":{"__isSmartRef__":true,"id":4321},"showLayerDefinition":{"__isSmartRef__":true,"id":4325}},"4283":{"varMapping":{"__isSmartRef__":true,"id":4284},"source":"function search(searchString) { \n this.get('searchResultList').updateList([]);\n this.get('sourceText').setTextString('');\n if (!searchString || (searchString.length < 2)) {\n this.get('sourceText').setTextString('\"' + searchString + '\" is to short');\n return;\n }\n var finds = [];\n var i=0;\n var matches = function(s) {\n return s.include(searchString)\n } \n\n // var re = new RegExp(searchString)\n var time = Functions.timeToRun(function() {\n this.withAllMethodsDo(function(object, eaMethod, type, optParent) {\n i++;\n var name;\n if (!object) return;\n\n if (object.constructor.prototype == object)\n name = object.constructor.name\n\n if (object.name) name = object.name;\n if (object.namespaceIdentifier)\n name = object.namespaceIdentifier\n\n if (object.constructor.prototype != object)\n name = name + \"(object)\"\n\n if ((object.constructor.prototype != object) && (object instanceof Morph))\n name = object.name + \"(\" + object.id + \")\"\n\n if (object === Global)\n name = \" \";\n\n if (type == \"layered\") {\n \n name = object._layered_object.constructor.type \n + \" (\" + optParent.name + \")\" \n \n }\n\n var string = name + \": \" + eaMethod; \n var item = {object: object, method: eaMethod, string: string, type: type};\n if (type == \"layered\") {\n item.layerName = optParent.name\n }\n\n if (matches(eaMethod)) {\n item.search= 'implementor',\n finds.push(item)\n return;\n } \n\n var f = object[eaMethod];\n if (!f || !f.getOriginal) return;\n var source = String(f.getOriginal())\n if (matches(source)){\n item.search = 'sender'\n finds.push(item)\n } \n })\n }.bind(this))\n this.get('sourceText').setTextString(\"search \" + i + \" methods, found \" \n + finds.length + \" methods in \" + time + \"ms\");\n var items = this.itemsFromFinds(finds)\n this.get('searchResultList').updateList(items);\n}","funcProperties":{"__isSmartRef__":true,"id":4285},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4284":{"this":{"__isSmartRef__":true,"id":3821}},"4285":{"timestamp":{"__isSmartRef__":true,"id":4286},"user":"undefined","tags":[]},"4286":{"isSerializedDate":true,"string":"Thu Jan 19 2012 14:46:43 GMT+0100 (Mitteleuropäische Zeit)"},"4287":{"varMapping":{"__isSmartRef__":true,"id":4288},"source":"function browse(methodItem) {\n // methodItem = this.get('searchResultList').selection\n if (! methodItem) return;\n\n // deal with non method findings....\n if (methodItem.type == 'layer') {\n this.showLayerDefinition(methodItem)\n return\n } \n\n // methodItem = this.get('searchResultList').selection\n var methodName = methodItem.method;\n var object = methodItem.object;\n var orgFunc = object[methodName];\n\n if (!orgFunc || !orgFunc.getOriginal) {\n this.get('sourceText').setTextString('no source');\n return\n }\n orgFunc = orgFunc.getOriginal()\n \n this.targetFunction = orgFunc;\n this.targetObject = object;\n\n var source = \"// changes here only affect runtime\\n\", \n tab = lively.morphic.Text.prototype.tab;\n if (methodItem.layerName) {\n var partialMethod = object[methodName];\n source += methodItem.layerName + \".refineClass(\" + \n object._layered_object.constructor.type + \", {\\n\" + \n tab + methodName + \": \" + partialMethod +\"\\n})\";\n } else if (orgFunc.belongsToTrait) {\n source += \"Trait('\" + orgFunc.belongsToTrait.name + \"', {\\n\" \n + tab + methodName + \": \" + orgFunc +\"\\n})\";\n } else if (orgFunc.declaredClass) {\n source += orgFunc.declaredClass + \".addMethods({\\n\" \n + tab + methodName + \": \" \n + orgFunc + \"\\n});\"\n } else if(methodItem.type == 'extend') {\n // perhaps it is a an class object\n source += \"Object.extend(\" + (object.type || object.namespaceIdentifier) \n + \",{\\n\" + tab + methodName + \": \" \n + orgFunc + \"\\n});\"\n } else if(object.isMorph && (object.constructor.prototype !== object) ) {\n // display as script\n source = \"this.addScript(\" + orgFunc + \");\"\n } else if(object === Global) {\n // display as script\n source += \"Object.extend(Global, {\\n\" + tab + methodName + \": \" +\n orgFunc + \"\\n});\"\n }\n\n this.get('sourceText').setTextString(source)\n\n module('lively.ide.SyntaxHighlighting').load(true);\n this.get('sourceText').highlightJavaScriptSyntax();\n\n var searchText = this.get('searchText').textString;\n var m = searchText.match(/[^a-zA-Z0-9_\\.]/g)\n if(m) {\n m.forEach(function (each) {\n var escapedChar = '\\\\' + each;\n var position = searchText.search(\n new RegExp('[^\\\\\\\\]' + '\\\\' + each)) + 1;\n searchText = searchText.substring(0,position) \n + escapedChar + searchText.substr(position + 1);\n });\n }\n this.get('sourceText').emphasizeRegex(new RegExp(searchText, 'g'), {color: Color.red});\n\n var info = '' + this.findSourceModule(orgFunc);\n\n if (orgFunc.belongsToTrait)\n info += ' (' + orgFunc.belongsToTrait + \" in \" + orgFunc.belongsToTrait.sourceModule +\")\";\n\n this.get('infoText').setTextString(info)\n}","funcProperties":{"__isSmartRef__":true,"id":4289},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4288":{"this":{"__isSmartRef__":true,"id":3821}},"4289":{"timestamp":{"__isSmartRef__":true,"id":4290},"user":"undefined","tags":[]},"4290":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:55:34 GMT+0100 (Mitteleuropäische Zeit)"},"4291":{"varMapping":{"__isSmartRef__":true,"id":4292},"source":"function reset() {\n this.doNotSerialize = ['targetFunction', 'targetObject']\n this.get('searchResultList').updateList([]);\n this.get('searchResultList').setSelection(null);\n this.get('searchText').setTextString('enter method name here');\n this.get('sourceText').setTextString('no code');\n this.get('infoText').setTextString('');\n this.targetFunction = null;\n this.targetObject = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4293},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4292":{"this":{"__isSmartRef__":true,"id":3821}},"4293":{"timestamp":{"__isSmartRef__":true,"id":4294},"user":"undefined","tags":[]},"4294":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:30:14 GMT+0100 (Mitteleuropäische Zeit)"},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"source":"function setSearch(searchString) {\n this.get('searchText').setTextString(searchString);\n this.search(searchString)\n var list = this.get('searchResultList').getList();\n if (list.length > 0) this.get('searchResultList').setSelection(list[0])\n}","funcProperties":{"__isSmartRef__":true,"id":4297},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4296":{"this":{"__isSmartRef__":true,"id":3821}},"4297":{},"4298":{"varMapping":{"__isSmartRef__":true,"id":4299},"source":"function emphasizeStringIn(morph, string, style) {\n var m;\n var re = new RegExp(string, \"g\");\n while(m = re.exec(morph.textString)) {\n var from = m.index,\n to = m.index + m[0].length;\n morph.emphasize(style, from, to)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4300},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4299":{"this":{"__isSmartRef__":true,"id":3821}},"4300":{},"4301":{"varMapping":{"__isSmartRef__":true,"id":4302},"source":"function withAllMethodsDo(func) {\n var visited = [];\n\n cop.allLayers().forEach(function(layer) {\n func(eval(layer.namespaceName), layer.name, 'layer')\n layer.layeredObjects().forEach(function(obj) {\n var layerDef = cop.getLayerDefinitionForObject(layer, obj)\n Functions.own(layerDef).forEach(function(eaMethod) {\n func(layerDef, eaMethod, 'layered', layer)\n });\n });\n }); \n\n\n Functions.own(Global).forEach(function(eaMethod) {\n func(Global, eaMethod, 'global')\n }); \n\n this.world().withAllSubmorphsDo(function(ea) {\n Functions.own(ea).forEach(function(eaMethod) {\n func(ea, eaMethod, 'script')\n }); \n });\n\n Global.subNamespaces(true).forEach(function(ea) {\n Functions.own(ea).forEach(function(eaMethod) {\n func(ea, eaMethod, 'extend')\n }); \n });\n\n Global.classes(true).uniq().forEach(function(eaClass) {\n Functions.own(eaClass).forEach(function(eaMethod) {\n func(eaClass, eaMethod, 'extend')\n }); \n\n Functions.own(eaClass.prototype).forEach(function(eaMethod) {\n func(eaClass.prototype, eaMethod, 'class')\n }) \n })\n}","funcProperties":{"__isSmartRef__":true,"id":4303},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4302":{"this":{"__isSmartRef__":true,"id":3821}},"4303":{"timestamp":{"__isSmartRef__":true,"id":4304},"user":"undefined","tags":[]},"4304":{"isSerializedDate":true,"string":"Thu Jan 19 2012 14:41:57 GMT+0100 (Mitteleuropäische Zeit)"},"4305":{"varMapping":{"__isSmartRef__":true,"id":4306},"source":"function itemsFromFinds(finds) {\n var searchString = this.get('searchText').textString;\n var items = finds.collect(function(ea) {\n var pref = \"\" + ea.type + \" \";\n if (ea.search == \"sender\") pref += \"full: \"\n if (ea.search == \"implementor\") pref += \"name: \"\n var string = pref + ea.string;\n var func = ea.object[ea.method];\n if (func.belongsToTrait) \n string += ' / ' + func.belongsToTrait + '' \n\n var result = {\n isListItem: true,\n value: ea,\n string: string,\n doNotSerialize: ['value'],\n priority: {implementor: \"B\", sender: \"C\"}[ea.search] || \"D\",\n };\n if (ea.method == searchString) result.priority = \"A\"\n return result\n })\n items = items.sortBy(function(ea) {return ea.priority + ea.string})\n return items\n}","funcProperties":{"__isSmartRef__":true,"id":4307},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4306":{"this":{"__isSmartRef__":true,"id":3821}},"4307":{"timestamp":{"__isSmartRef__":true,"id":4308},"user":"undefined","tags":[]},"4308":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:31:52 GMT+0100 (Mitteleuropäische Zeit)"},"4309":{"varMapping":{"__isSmartRef__":true,"id":4310},"source":"function browseMethod() {\n alertOK('browseMethod')\n var methodItem = this.get('searchResultList').selection;\n if (methodItem.type == 'layer') {\n var layer = methodItem.object[methodItem.method];\n this.openMethodInSystemBrowser(methodItem.method, \n undefined, layer.sourceModule);\n return\n }\n\n if (!this.targetFunction) return;\n var methodName = this.targetFunction.methodName || this.targetFunction.displayName; \n if(this.targetFunction.declaredClass) {\n var classObj = eval(this.targetFunction.declaredClass)\n this.openMethodInSystemBrowser(classObj.type, methodName);\n return;\n }\n if(this.targetFunction.belongsToTrait) {\n this.openMethodInSystemBrowser(this.targetFunction.belongsToTrait.name, methodName);\n return;\n }\n if(Class.isClass(this.targetObject)) {\n this.openMethodInSystemBrowser(this.targetObject.type, methodName);\n return;\n }\n if(this.targetObject.namespaceIdentifier) {\n this.openMethodInSystemBrowser(this.targetObject.namespaceIdentifier, methodName);\n return;\n }\n if(this.targetObject instanceof lively.morphic.Morph) {\n var editor = this.world().openObjectEditorFor(this.targetObject);\n editor.align(editor.bounds().center(), this.world().visibleBounds().center());\n return;\n }\n if (Class.isClass(this.targetFunction)) {\n // constructor\n this.openMethodInSystemBrowser(this.targetFunction.displayName);\n return;\n }\n \n alertOK('not implemented yet for ' + this.targetFunction)\n}","funcProperties":{"__isSmartRef__":true,"id":4311},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4310":{"this":{"__isSmartRef__":true,"id":3821}},"4311":{"timestamp":{"__isSmartRef__":true,"id":4312},"user":"undefined","tags":[]},"4312":{"isSerializedDate":true,"string":"Thu Jan 19 2012 16:54:12 GMT+0100 (Mitteleuropäische Zeit)"},"4313":{"varMapping":{"__isSmartRef__":true,"id":4314},"source":"function openMethodInSystemBrowser(objectName, methodName, optSourceModule) {\n if (objectName)\n objectName = objectName.replace(/^Global\\./,\"\");\n // alertOK(\"browse \" + objectName + \":\" + methodName)\n // objectName = 'SelectionMorphTrait', methodName = 'onDrag'\n var sourceModule = optSourceModule ||\n this.findSourceModule(this.targetFunction);\n if (!sourceModule) \n alert('could not browse, since no source module found!')\n var uri = new URL(sourceModule.uri()),\n relative = uri.relativePathFrom(new URL(Config.codeBase)),\n moduleNode = lively.ide.startSourceControl().addModule(relative),\n rootNode = moduleNode.ast();\n\n var fileFragments = rootNode.subElements(10).select(function(ea) {\n var path = ea.getOwnerNamePath()\n if (objectName == \"Global\")\n return path.include(methodName);\n return path.include(objectName) && (!methodName || path.include(methodName)) \n });\n \n\n\n // alertOK(\"found following places to browse: \" + fileFragments)\n if (fileFragments.length > 0) {\n fileFragments[0].browseIt()\n } else {\n alert(\"browse failed. Nothing found for \" + objectName + \">>\" + methodName + \" in \" + sourceModule.uri());\n rootNode.browseIt();\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":4315},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4314":{"this":{"__isSmartRef__":true,"id":3821}},"4315":{"timestamp":{"__isSmartRef__":true,"id":4316},"user":"jenslincke","tags":[]},"4316":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:27:23 GMT+0100 (Mitteleuropäische Zeit)"},"4317":{"varMapping":{"__isSmartRef__":true,"id":4318},"source":"function findSourceModule(funcObj) {\n if (this.targetFunction.belongsToTrait) \n return this.targetFunction.belongsToTrait.sourceModule\n if (funcObj.sourceModule)\n return funcObj.sourceModule;\n // look in the class\n if (!funcObj.sourceModule && funcObj.declaredClass) {\n var classObj = eval(funcObj.declaredClass)\n return classObj.sourceModule\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4319},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4318":{"this":{"__isSmartRef__":true,"id":3821}},"4319":{"user":"jenslincke","timestamp":{"__isSmartRef__":true,"id":4320}},"4320":{"isSerializedDate":true,"string":"Fri Nov 04 2011 15:27:13 GMT+0100 (Mitteleuropäische Zeit)"},"4321":{"varMapping":{"__isSmartRef__":true,"id":4322},"source":"function searchOnServer() {\n var serverSearch = this.world().openPartItem('ServerSearch', 'PartsBin/Tools'); \n serverSearch.setSearch(this.get('searchText').textString)\n}","funcProperties":{"__isSmartRef__":true,"id":4323},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4322":{"this":{"__isSmartRef__":true,"id":3821}},"4323":{"timestamp":{"__isSmartRef__":true,"id":4324},"user":"jenslincke","categories":[]},"4324":{"isSerializedDate":true,"string":"Fri Nov 18 2011 11:40:23 GMT+0100 (Mitteleuropäische Zeit)"},"4325":{"varMapping":{"__isSmartRef__":true,"id":4326},"source":"function showLayerDefinition(methodItem) {\n var info = \"layer definition\" \n var source = \"TODO: print layer def here...\"\n this.get('infoText').setTextString(info)\n this.get('sourceText').setTextString(source)\n}","funcProperties":{"__isSmartRef__":true,"id":4327},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4326":{"this":{"__isSmartRef__":true,"id":3821}},"4327":{"timestamp":{"__isSmartRef__":true,"id":4328},"user":"undefined","tags":[]},"4328":{"isSerializedDate":true,"string":"Thu Jan 19 2012 15:30:43 GMT+0100 (Mitteleuropäische Zeit)"},"4329":{"_Position":{"__isSmartRef__":true,"id":4330},"renderContextTable":{"__isSmartRef__":true,"id":4331},"_Extent":{"__isSmartRef__":true,"id":3007},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":4332},"_Fill":{"__isSmartRef__":true,"id":4333},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2588},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4330":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4331":{"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"},"4332":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4333":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4334":{"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"},"4335":{"morph":{"__isSmartRef__":true,"id":3820},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4336":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4337":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"4338":{"x":0,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4339":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4340":{"x":180,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4341":{"_Position":{"__isSmartRef__":true,"id":4342},"renderContextTable":{"__isSmartRef__":true,"id":4343},"_Extent":{"__isSmartRef__":true,"id":4344},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4345},"_Fill":{"__isSmartRef__":true,"id":4346},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4347},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4342":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4343":{"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"},"4344":{"x":872.0934621532042,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4345":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4346":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4347":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4348":{"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"},"4349":{"morph":{"__isSmartRef__":true,"id":2527},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4350":{"x":872.0934621532042,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4351":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4352":{"resizeWidth":true,"adjustForNewBounds":true},"4353":{"_Position":{"__isSmartRef__":true,"id":4354},"renderContextTable":{"__isSmartRef__":true,"id":4355},"_Extent":{"__isSmartRef__":true,"id":4356},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4357},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4358},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4354":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4355":{"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"},"4356":{"x":872.0934621532042,"y":470.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4357":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4358":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4359":{"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"},"4360":{"morph":{"__isSmartRef__":true,"id":2526},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4361":{"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.TabStrategyTop"},"4362":{"x":872.0934621532042,"y":470.7147151397129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4363":{"requiredModules":[],"partsSpaceName":"PartsBin/Dialogs","comment":"A tabbed tool pane (under development): Supports MethodFinder","changes":[{"__isSmartRef__":true,"id":4364},{"__isSmartRef__":true,"id":4366},{"__isSmartRef__":true,"id":4368},{"__isSmartRef__":true,"id":4370},{"__isSmartRef__":true,"id":4372}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","partName":"ToolTabPane","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"revisionOnLoad":148717,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4364":{"date":{"__isSmartRef__":true,"id":4365},"author":"athomschke","message":"","id":"CADBD788-8F41-4046-BCED-6CF1172CF93D"},"4365":{"isSerializedDate":true,"string":"Thu Feb 09 2012 12:51:59 GMT+0100 (Mitteleuropäische Zeit)"},"4366":{"date":{"__isSmartRef__":true,"id":4367},"author":"fabian","message":"initial","id":"EA1E7C49-D79B-461B-ACD7-126E1902F6FF"},"4367":{"isSerializedDate":true,"string":"Thu Jan 26 2012 08:08:17 GMT+0100 (Mitteleuropäische Zeit)"},"4368":{"date":{"__isSmartRef__":true,"id":4369},"author":"undefined","message":"initial version ","id":"61DC98FC-D0AA-43D7-A579-7649657A81B4"},"4369":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:55:32 GMT+0100 (Mitteleuropäische Zeit)"},"4370":{"date":{"__isSmartRef__":true,"id":4371},"author":"undefined","message":"- white and S:","id":"9CC8444F-8D6A-476B-904F-1BC27EB9F6E4"},"4371":{"isSerializedDate":true,"string":"Fri Feb 03 2012 16:24:10 GMT+0100 (Mitteleuropäische Zeit)"},"4372":{"date":{"__isSmartRef__":true,"id":4373},"author":"undefined","message":"added a resize corner","id":"69E8407B-8700-4E9B-8558-C54AF5D9D65F"},"4373":{"isSerializedDate":true,"string":"Mon Mar 26 2012 12:52:49 GMT+0200 (Mitteleuropäische Sommerzeit)"},"4374":{"x":0,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4375":{"x":581.0853111335786,"y":-13.240456448482064,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4376":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"4377":{"onrestore":{"__isSmartRef__":true,"id":4378},"installLayers":{"__isSmartRef__":true,"id":4386},"openMethodFinderFor":{"__isSmartRef__":true,"id":4390}},"4378":{"varMapping":{"__isSmartRef__":true,"id":4379},"source":"function onrestore() {\n this.installLayers();\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":4384},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4379":{"this":{"__isSmartRef__":true,"id":2526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4380}},"4380":{"$super":{"__isSmartRef__":true,"id":4381}},"4381":{"varMapping":{"__isSmartRef__":true,"id":4382},"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":4383},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4382":{"obj":{"__isSmartRef__":true,"id":2526},"name":"onrestore"},"4383":{},"4384":{"timestamp":{"__isSmartRef__":true,"id":4385},"user":"undefined","tags":[]},"4385":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:18:55 GMT+0100 (Mitteleuropäische Zeit)"},"4386":{"varMapping":{"__isSmartRef__":true,"id":4387},"source":"function installLayers() {\n \ncop.create(\"TabbedMethodFinderLayer\").refineClass(lively.morphic.Text, {\n doBrowseImplementors: function () {\n var toolTabPane = this.get(\"ToolTabPane\");\n var searchString = this.getSelectionOrLineString();\n if (toolTabPane) {\n toolTabPane.openMethodFinderFor(searchString);\n return;\n }\n this.world().openMethodFinderFor(searchString)\n }\n})\n\n\nthis.setWithLayers([TabbedMethodFinderLayer])\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":4388},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4387":{"this":{"__isSmartRef__":true,"id":2526}},"4388":{"timestamp":{"__isSmartRef__":true,"id":4389},"user":"undefined","tags":[]},"4389":{"isSerializedDate":true,"string":"Fri Feb 03 2012 15:20:31 GMT+0100 (Mitteleuropäische Zeit)"},"4390":{"varMapping":{"__isSmartRef__":true,"id":4391},"source":"function openMethodFinderFor(searchString) {\n // this.openMethodFinderFor(\"onMouseDown\")\n var tab = this.addTabLabeled(\"S:\" + searchString)\n var part = this.world().openPartItem('MethodFinderPane', 'PartsBin/Dialogs');\n part.setExtent(this.tabPaneExtent)\n tab.pane.addMorph(part);\n tab.pane.layout = tab.pane.layout || {};\n tab.pane.layout.resizeWidth = true;\n tab.pane.layout.resizeHeight = true;\n part.setSearch(searchString);\n part.setPosition(pt(0,0))\n $world.addMorph(this.owner);\n return part;\n}","funcProperties":{"__isSmartRef__":true,"id":4392},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4391":{"this":{"__isSmartRef__":true,"id":2526}},"4392":{"timestamp":{"__isSmartRef__":true,"id":4393},"user":"undefined","tags":[]},"4393":{"isSerializedDate":true,"string":"Wed Mar 28 2012 13:53:26 GMT+0200 (Mitteleuropäische Sommerzeit)"},"4394":{"submorphs":[{"__isSmartRef__":true,"id":4395},{"__isSmartRef__":true,"id":4408},{"__isSmartRef__":true,"id":4442},{"__isSmartRef__":true,"id":4474}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4507},"derivationIds":[null],"id":"26781B6B-9B76-41B0-B1EE-E3F2D7CECB25","renderContextTable":{"__isSmartRef__":true,"id":4513},"eventHandler":{"__isSmartRef__":true,"id":4514},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4515},"_Position":{"__isSmartRef__":true,"id":4516},"windowMorph":{"__isSmartRef__":true,"id":2525},"label":{"__isSmartRef__":true,"id":4395},"closeButton":{"__isSmartRef__":true,"id":4408},"menuButton":{"__isSmartRef__":true,"id":4442},"collapseButton":{"__isSmartRef__":true,"id":4474},"priorExtent":{"__isSmartRef__":true,"id":4517},"owner":{"__isSmartRef__":true,"id":2525},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"4395":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4396},"derivationIds":[null],"id":"5F9B71A4-93E8-41E7-98CE-D21B00CA5AEA","renderContextTable":{"__isSmartRef__":true,"id":4401},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4402}],"eventHandler":{"__isSmartRef__":true,"id":4404},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":4405},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4394},"_Position":{"__isSmartRef__":true,"id":4406},"priorExtent":{"__isSmartRef__":true,"id":4407},"_MaxTextWidth":814.9959939919902,"_MinTextWidth":814.9959939919902,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4396":{"_Position":{"__isSmartRef__":true,"id":4397},"renderContextTable":{"__isSmartRef__":true,"id":4398},"_Extent":{"__isSmartRef__":true,"id":4399},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4400},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4397":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4398":{"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"},"4399":{"x":814.9959939919902,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4400":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4401":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4402":{"style":{"__isSmartRef__":true,"id":4403},"chunkOwner":{"__isSmartRef__":true,"id":4395},"storedString":"ToolTabPane","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4403":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4404":{"morph":{"__isSmartRef__":true,"id":4395},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4405":{"resizeWidth":true},"4406":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4407":{"x":814.9959939919902,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4408":{"submorphs":[{"__isSmartRef__":true,"id":4409}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4419},"derivationIds":[null],"id":"F5F3C6D6-6E54-42F7-8058-C09032E8200A","renderContextTable":{"__isSmartRef__":true,"id":4424},"eventHandler":{"__isSmartRef__":true,"id":4425},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":4426},"priorExtent":{"__isSmartRef__":true,"id":4427},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2558},"lighterFill":{"__isSmartRef__":true,"id":4428},"label":{"__isSmartRef__":true,"id":4409},"owner":{"__isSmartRef__":true,"id":4394},"layout":{"__isSmartRef__":true,"id":4437},"attributeConnections":[{"__isSmartRef__":true,"id":4438},{"__isSmartRef__":true,"id":4440}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"4409":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4410},"derivationIds":[null],"id":"7F6C1B25-4267-417F-AEB4-5BB325A2F6E7","renderContextTable":{"__isSmartRef__":true,"id":4415},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4416}],"eventHandler":{"__isSmartRef__":true,"id":4418},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4408},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":2535},"_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4410":{"_Position":{"__isSmartRef__":true,"id":4411},"renderContextTable":{"__isSmartRef__":true,"id":4412},"_Extent":{"__isSmartRef__":true,"id":4413},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4414},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4411":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4412":{"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"},"4413":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4414":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4415":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4416":{"style":{"__isSmartRef__":true,"id":4417},"chunkOwner":{"__isSmartRef__":true,"id":4409},"storedString":"X","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4417":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4418":{"morph":{"__isSmartRef__":true,"id":4409},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4419":{"_Position":{"__isSmartRef__":true,"id":4420},"renderContextTable":{"__isSmartRef__":true,"id":4421},"_Extent":{"__isSmartRef__":true,"id":4422},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4423},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2557},"_Fill":{"__isSmartRef__":true,"id":2558},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4420":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4421":{"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"},"4422":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4423":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4424":{"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"},"4425":{"morph":{"__isSmartRef__":true,"id":4408},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4426":{"x":853.9959939919902,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4427":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4428":{"stops":[{"__isSmartRef__":true,"id":4429},{"__isSmartRef__":true,"id":4431},{"__isSmartRef__":true,"id":4433},{"__isSmartRef__":true,"id":4435}],"vector":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4429":{"offset":0,"color":{"__isSmartRef__":true,"id":4430}},"4430":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4431":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4432}},"4432":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4433":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4434}},"4434":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4435":{"offset":1,"color":{"__isSmartRef__":true,"id":4436}},"4436":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4437":{"moveHorizontal":true},"4438":{"sourceObj":{"__isSmartRef__":true,"id":4408},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4439},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4439":{"source":{"__isSmartRef__":true,"id":4408},"target":{"__isSmartRef__":true,"id":2525}},"4440":{"sourceObj":{"__isSmartRef__":true,"id":4408},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4441},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4441":{"source":{"__isSmartRef__":true,"id":4408},"target":{"__isSmartRef__":true,"id":2525}},"4442":{"submorphs":[{"__isSmartRef__":true,"id":4443}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4452},"derivationIds":[null],"id":"87F846FC-8723-40E7-BB3F-956B8EAD7AF7","renderContextTable":{"__isSmartRef__":true,"id":4457},"eventHandler":{"__isSmartRef__":true,"id":4458},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":4459},"priorExtent":{"__isSmartRef__":true,"id":4460},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2558},"lighterFill":{"__isSmartRef__":true,"id":4461},"label":{"__isSmartRef__":true,"id":4443},"owner":{"__isSmartRef__":true,"id":4394},"attributeConnections":[{"__isSmartRef__":true,"id":4470},{"__isSmartRef__":true,"id":4472}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"4443":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4444},"derivationIds":[null],"id":"8CA7DF3E-0043-4FC0-93CB-EE184C97A08A","renderContextTable":{"__isSmartRef__":true,"id":4448},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4449}],"eventHandler":{"__isSmartRef__":true,"id":4451},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4442},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":2535},"_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4444":{"_Position":{"__isSmartRef__":true,"id":4445},"renderContextTable":{"__isSmartRef__":true,"id":4446},"_Extent":{"__isSmartRef__":true,"id":4447},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4414},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4445":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4446":{"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"},"4447":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4448":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4449":{"style":{"__isSmartRef__":true,"id":4450},"chunkOwner":{"__isSmartRef__":true,"id":4443},"storedString":"M","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4450":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4451":{"morph":{"__isSmartRef__":true,"id":4443},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4452":{"_Position":{"__isSmartRef__":true,"id":4453},"renderContextTable":{"__isSmartRef__":true,"id":4454},"_Extent":{"__isSmartRef__":true,"id":4455},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4456},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2557},"_Fill":{"__isSmartRef__":true,"id":2558},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4453":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4454":{"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"},"4455":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4456":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4457":{"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"},"4458":{"morph":{"__isSmartRef__":true,"id":4442},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4459":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4460":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4461":{"stops":[{"__isSmartRef__":true,"id":4462},{"__isSmartRef__":true,"id":4464},{"__isSmartRef__":true,"id":4466},{"__isSmartRef__":true,"id":4468}],"vector":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4462":{"offset":0,"color":{"__isSmartRef__":true,"id":4463}},"4463":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4464":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4465}},"4465":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4466":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4467}},"4467":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4468":{"offset":1,"color":{"__isSmartRef__":true,"id":4469}},"4469":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4470":{"sourceObj":{"__isSmartRef__":true,"id":4442},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4471},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4471":{"source":{"__isSmartRef__":true,"id":4442},"target":{"__isSmartRef__":true,"id":2525}},"4472":{"sourceObj":{"__isSmartRef__":true,"id":4442},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4473},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4473":{"source":{"__isSmartRef__":true,"id":4442},"target":{"__isSmartRef__":true,"id":2525}},"4474":{"submorphs":[{"__isSmartRef__":true,"id":4475}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4484},"derivationIds":[null],"id":"31579CDD-AED7-4E2C-9363-D80A8003C652","renderContextTable":{"__isSmartRef__":true,"id":4489},"eventHandler":{"__isSmartRef__":true,"id":4490},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":4491},"priorExtent":{"__isSmartRef__":true,"id":4492},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2558},"lighterFill":{"__isSmartRef__":true,"id":4493},"label":{"__isSmartRef__":true,"id":4475},"owner":{"__isSmartRef__":true,"id":4394},"layout":{"__isSmartRef__":true,"id":4502},"attributeConnections":[{"__isSmartRef__":true,"id":4503},{"__isSmartRef__":true,"id":4505}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"4475":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4476},"derivationIds":[null],"id":"116074CF-8562-4CF2-84E3-565B5F4F710B","renderContextTable":{"__isSmartRef__":true,"id":4480},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4481}],"eventHandler":{"__isSmartRef__":true,"id":4483},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4474},"isLabel":true,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":2535},"_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4476":{"_Position":{"__isSmartRef__":true,"id":4477},"renderContextTable":{"__isSmartRef__":true,"id":4478},"_Extent":{"__isSmartRef__":true,"id":4479},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4414},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2535},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4477":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4478":{"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"},"4479":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4480":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4481":{"style":{"__isSmartRef__":true,"id":4482},"chunkOwner":{"__isSmartRef__":true,"id":4475},"storedString":"–","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4482":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4483":{"morph":{"__isSmartRef__":true,"id":4475},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4484":{"_Position":{"__isSmartRef__":true,"id":4485},"renderContextTable":{"__isSmartRef__":true,"id":4486},"_Extent":{"__isSmartRef__":true,"id":4487},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4488},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2557},"_Fill":{"__isSmartRef__":true,"id":2558},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4485":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4486":{"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"},"4487":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4488":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4489":{"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"},"4490":{"morph":{"__isSmartRef__":true,"id":4474},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4491":{"x":834.9959939919902,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4492":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4493":{"stops":[{"__isSmartRef__":true,"id":4494},{"__isSmartRef__":true,"id":4496},{"__isSmartRef__":true,"id":4498},{"__isSmartRef__":true,"id":4500}],"vector":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4494":{"offset":0,"color":{"__isSmartRef__":true,"id":4495}},"4495":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4496":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4497}},"4497":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4498":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4499}},"4499":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4500":{"offset":1,"color":{"__isSmartRef__":true,"id":4501}},"4501":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4502":{"moveHorizontal":true},"4503":{"sourceObj":{"__isSmartRef__":true,"id":4474},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4504},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4504":{"source":{"__isSmartRef__":true,"id":4474},"target":{"__isSmartRef__":true,"id":2525}},"4505":{"sourceObj":{"__isSmartRef__":true,"id":4474},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4506},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4506":{"source":{"__isSmartRef__":true,"id":4474},"target":{"__isSmartRef__":true,"id":2525}},"4507":{"_Position":{"__isSmartRef__":true,"id":4508},"renderContextTable":{"__isSmartRef__":true,"id":4509},"_Extent":{"__isSmartRef__":true,"id":4510},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4511},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4512},"_Fill":{"__isSmartRef__":true,"id":2394},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4508":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4509":{"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"},"4510":{"x":873.9959939919902,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4511":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4512":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4513":{"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"},"4514":{"morph":{"__isSmartRef__":true,"id":4394},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4515":{"resizeWidth":true,"adjustForNewBounds":true},"4516":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4517":{"x":873.9959939919902,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4518":{"submorphs":[],"scripts":[],"id":"1EB75703-A326-4701-AC18-B538946ACEF3","shape":{"__isSmartRef__":true,"id":4519},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4526},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":4527},"__SourceModuleName__":"Global.lively.morphic.Core","draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":4528},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":4529},"eventHandler":{"__isSmartRef__":true,"id":4530},"priorExtent":{"__isSmartRef__":true,"id":4531},"originalTargetInnerBounds":null,"isResizeCorner":true,"relativeOrigin":null,"derivationIds":[7147,"16E962DF-21E9-4FE6-8B9B-953F0E908113","ADD0B5C0-0DC6-4D8E-9C2A-0EC7E3C71F21","C13BE625-F1AC-4401-AB63-BA50CE744CB6","291119F3-1D44-4861-BAE4-5F142861083D","E10B97BB-8029-4AFE-97F4-D7DEA3EA000F","3BA898DA-1519-4FF8-A0BF-09E180382D50","1D1F4D10-DB39-481C-93FD-21520463295A","92761179-5047-4C14-979F-29A9CF056641","E7B73231-7E5A-4788-81EC-6077698D93B5","6CEE8BC8-59C9-4C03-B5FD-77D84EB324B5"],"moved":true,"attributeConnections":[{"__isSmartRef__":true,"id":4532}],"doNotSerialize":["$$cornerName"],"doNotCopyProperties":["$$cornerName"],"originalTargetBounds":null,"owner":{"__isSmartRef__":true,"id":2525},"cornerName":"bottomRight","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4533},"__LivelyClassName__":"lively.morphic.Box"},"4519":{"position":{"__isSmartRef__":true,"id":4520},"_Extent":{"__isSmartRef__":true,"id":4521},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4522},"_Fill":{"__isSmartRef__":true,"id":4523},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4524},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4525},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4520":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4521":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4522":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4523":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4524":{"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"},"4525":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4526":{"x":863.9959939919902,"y":482.00200300400513,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4527":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","partName":"ResizeCorner","revisionOnLoad":140152,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4528":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4529":{"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"},"4530":{"morph":{"__isSmartRef__":true,"id":4518},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4531":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4532":{"sourceObj":{"__isSmartRef__":true,"id":4518},"sourceAttrName":"cornerName","targetObj":{"__isSmartRef__":true,"id":4518},"targetMethodName":"alignToOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4533":{"onDrag":{"__isSmartRef__":true,"id":4534},"onDragEnd":{"__isSmartRef__":true,"id":4542},"onDragStart":{"__isSmartRef__":true,"id":4550},"reset":{"__isSmartRef__":true,"id":4558},"morphMenuItems":{"__isSmartRef__":true,"id":4561},"alignToOwner":{"__isSmartRef__":true,"id":4568}},"4534":{"varMapping":{"__isSmartRef__":true,"id":4535},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n // this.owner.setPosition(pt(0,0))\n // this.owner.setOrigin(pt(0,0))\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = \"with\" + this.cornerName.charAt(0).toUpperCase() + this.cornerName.substring(1);\n\n var newCorner = this.originalTargetBounds[this.cornerName]().addPt(moveDelta);\n var newBounds = this.originalTargetBounds[accessor ](newCorner);\n\n this.owner.setBounds(newBounds);\n \n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner');\n if (this.owner.halos) {\n this.owner.halos.invoke('alignAtTarget')\n }\n // alertOK(\"relative \" + this.relativeOrigin)\n var newOrigin = pt(0,0).extent(this.owner.getExtent()).relativeToAbsPoint(this.relativeOrigin)\n\n // TODO IMPLEMENT updating the origin does not work yet\n // this.owner.setOrigin(newOrigin);\n // alertOK(\"new origin \" + newOrigin)\n\n}","funcProperties":{"__isSmartRef__":true,"id":4540},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4535":{"this":{"__isSmartRef__":true,"id":4518},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4536}},"4536":{"$super":{"__isSmartRef__":true,"id":4537}},"4537":{"varMapping":{"__isSmartRef__":true,"id":4538},"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":4539},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4538":{"obj":{"__isSmartRef__":true,"id":4518},"name":"onDrag"},"4539":{},"4540":{"timestamp":{"__isSmartRef__":true,"id":4541},"user":"sstamm","tags":[]},"4541":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:08:52 GMT+0100 (Mitteleuropäische Zeit)"},"4542":{"varMapping":{"__isSmartRef__":true,"id":4543},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetBounds = null;\n this.relativeOrigin = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4548},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4543":{"this":{"__isSmartRef__":true,"id":4518},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4544}},"4544":{"$super":{"__isSmartRef__":true,"id":4545}},"4545":{"varMapping":{"__isSmartRef__":true,"id":4546},"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":4547},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4546":{"obj":{"__isSmartRef__":true,"id":4518},"name":"onDragEnd"},"4547":{},"4548":{"timestamp":{"__isSmartRef__":true,"id":4549},"user":"sstamm","tags":[]},"4549":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:09:00 GMT+0100 (Mitteleuropäische Zeit)"},"4550":{"varMapping":{"__isSmartRef__":true,"id":4551},"source":"function onDragStart(evt) {\n var absToRelativePoint = function (r, absPt) {\n\t\treturn new Point(\n\t\t\t(absPt.x - r.x) / r.width,\n\t\t\t(absPt.y - r.y) / r.height)\n\t}\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(20,20))\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(0,0))\n // absToRelativePoint(new Rectangle(-100,-100,200,200), pt(0,0))\n\n\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetBounds= this.owner.bounds();\n this.relativeOrigin = absToRelativePoint(pt(0,0).extent(this.owner.getExtent()), this.owner.getOrigin())\n}","funcProperties":{"__isSmartRef__":true,"id":4556},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4551":{"this":{"__isSmartRef__":true,"id":4518},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4552}},"4552":{"$super":{"__isSmartRef__":true,"id":4553}},"4553":{"varMapping":{"__isSmartRef__":true,"id":4554},"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":4555},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4554":{"obj":{"__isSmartRef__":true,"id":4518},"name":"onDragStart"},"4555":{},"4556":{"timestamp":{"__isSmartRef__":true,"id":4557},"user":"sstamm","tags":[]},"4557":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:08:40 GMT+0100 (Mitteleuropäische Zeit)"},"4558":{"varMapping":{"__isSmartRef__":true,"id":4559},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":4560},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4559":{"this":{"__isSmartRef__":true,"id":4518}},"4560":{},"4561":{"varMapping":{"__isSmartRef__":true,"id":4562},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":4567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4562":{"this":{"__isSmartRef__":true,"id":4518},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4563}},"4563":{"$super":{"__isSmartRef__":true,"id":4564}},"4564":{"varMapping":{"__isSmartRef__":true,"id":4565},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":4566},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4565":{"obj":{"__isSmartRef__":true,"id":4518},"name":"morphMenuItems"},"4566":{},"4567":{},"4568":{"varMapping":{"__isSmartRef__":true,"id":4569},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":4570},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4569":{"this":{"__isSmartRef__":true,"id":4518}},"4570":{},"4571":{"renderContextTable":{"__isSmartRef__":true,"id":4572},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4573},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":4574},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4572":{"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"},"4573":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4574":{"x":873.9959939919902,"y":492.65755859935314,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4575":{"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"},"4576":{"morph":{"__isSmartRef__":true,"id":2525},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4577":{"adjustForNewBounds":true},"4578":{"x":1083.502003004005,"y":1061.6712207003234,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4579":{"x":873.9959939919902,"y":492.65755859935314,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4580":{"x":700,"y":370,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4581":{"x":1887,"y":1085,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4582":{"submorphs":[{"__isSmartRef__":true,"id":4583},{"__isSmartRef__":true,"id":12418},{"__isSmartRef__":true,"id":12455}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12599},"id":"85262462-E4A3-4AEA-99F4-DD5943514D24","renderContextTable":{"__isSmartRef__":true,"id":12603},"eventHandler":{"__isSmartRef__":true,"id":12604},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":12605},"LK2":true,"_Position":{"__isSmartRef__":true,"id":12606},"priorExtent":{"__isSmartRef__":true,"id":12607},"targetMorph":{"__isSmartRef__":true,"id":4583},"titleBar":{"__isSmartRef__":true,"id":12455},"contentOffset":{"__isSmartRef__":true,"id":12608},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":12609},"name":"Explorer","prevDragPos":{"__isSmartRef__":true,"id":12654},"isBeingDragged":false,"highlighted":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","explorer":{"__isSmartRef__":true,"id":4583},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"minExtent":{"__isSmartRef__":true,"id":12655},"derivationIds":[369,"5976C77B-5C20-4DC4-BDA1-A2269E9FEC17","8A4661CC-271E-4CA9-9B42-C428E5DCCB01","B002D7D6-4167-4D6A-8981-E569CE5EE4CC","21A298C5-87D3-4C5F-8FB6-34DB19723B44","A077835E-1096-40C4-92FB-6830D29FC989","32525E7F-A548-4001-86AE-BBDE7D2BAD17"],"_Rotation":0,"_Scale":1.0141055623885957,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12656},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"4583":{"submorphs":[{"__isSmartRef__":true,"id":4584},{"__isSmartRef__":true,"id":12361}],"scripts":[],"id":"17494881-1DF3-48CC-8C73-0BEA939CBBC6","shape":{"__isSmartRef__":true,"id":12384},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":12391},"showsHalos":false,"name":"ExplorerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":12392},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":12395},"eventHandler":{"__isSmartRef__":true,"id":12396},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":4582},"priorExtent":{"__isSmartRef__":true,"id":12397},"distanceToDragEvent":{"__isSmartRef__":true,"id":12398},"layout":{"__isSmartRef__":true,"id":12399},"workspace":{"__isSmartRef__":true,"id":12361},"treeView":{"__isSmartRef__":true,"id":4584},"focusedNode":{"__isSmartRef__":true,"id":11139},"isInLayoutCycle":false,"prevScroll":[0,0],"derivationIds":[370,"19EB328E-FFB1-41CD-B181-A60FCF27908C","D1C1A399-6222-405C-A922-2ADD2DFBFB56","F7B66347-DB63-470F-8ABC-5C342E31BC5E","7A83A60F-0956-4BD5-AFDB-B7CFECEF9E30","D14B60A2-D449-4E15-8A1B-EADF6D8A988B","9AA7774E-2D58-467B-986D-947454B915CA"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12401},"__LivelyClassName__":"lively.morphic.Box"},"4584":{"submorphs":[{"__isSmartRef__":true,"id":4585}],"scripts":[{"__isSmartRef__":true,"id":12280}],"id":"5E43216D-CB82-4DB5-B20B-DB41C3E451DA","shape":{"__isSmartRef__":true,"id":12281},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":12287},"showsHalos":false,"name":"TreeView","partsBinMetaInfo":{"__isSmartRef__":true,"id":12288},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":12289},"eventHandler":{"__isSmartRef__":true,"id":12290},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":12291},"layout":{"__isSmartRef__":true,"id":12292},"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":4583},"distanceToDragEvent":{"__isSmartRef__":true,"id":12294},"colors":{"__isSmartRef__":true,"id":12295},"fonts":{"__isSmartRef__":true,"id":12296},"sizes":{"__isSmartRef__":true,"id":12297},"rootNode":{"__isSmartRef__":true,"id":4587},"prevScroll":[0,0],"derivationIds":[371,"5F72E9BF-51FA-45DD-9F01-ADDC32FBF64C","4B46569F-B458-41CF-846F-31DB325C55FE","BC2E4190-4592-4E2C-8644-51CA0FC16963","DBB73829-F82D-45F0-8499-2332C8C0487E","78E2B139-F388-4299-A7CC-0964C21003A4","F124DD76-61DA-471A-A1DA-D01C9F74D5C3"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12302},"__LivelyClassName__":"lively.morphic.Box"},"4585":{"submorphs":[{"__isSmartRef__":true,"id":4586}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12262},"derivationIds":[null],"id":"08378BDB-6F10-4899-87BB-7A93F52D0244","renderContextTable":{"__isSmartRef__":true,"id":12267},"eventHandler":{"__isSmartRef__":true,"id":12268},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12269},"_ClipMode":"scroll","layout":{"__isSmartRef__":true,"id":12270},"grabbingEnabled":false,"draggingEnabled":false,"name":"TreeViewScrollPane","owner":{"__isSmartRef__":true,"id":4584},"priorExtent":{"__isSmartRef__":true,"id":12271},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12272},"__LivelyClassName__":"lively.morphic.Clip","__SourceModuleName__":"Global.lively.morphic.Core"},"4586":{"submorphs":[{"__isSmartRef__":true,"id":4587},{"__isSmartRef__":true,"id":6852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12244},"derivationIds":[null],"id":"7D85CAD2-75A1-4082-A388-92D791E757F5","renderContextTable":{"__isSmartRef__":true,"id":12249},"eventHandler":{"__isSmartRef__":true,"id":12250},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12251},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12253},"owner":{"__isSmartRef__":true,"id":4585},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12254},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4587":{"submorphs":[{"__isSmartRef__":true,"id":4588},{"__isSmartRef__":true,"id":4605}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4624},"derivationIds":[null],"id":"18A4B93A-2341-435F-813C-55EB5B546A8D","renderContextTable":{"__isSmartRef__":true,"id":4629},"eventHandler":{"__isSmartRef__":true,"id":4630},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4631},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4632},"propertyList":["submorphs","scripts","id","shape","grabbingEnabled","droppingEnabled","halosEnabled","_Padding","fixedWidth","_WhiteSpaceHandling","fixedHeight","allowInput","_FontFamily","_MaxTextWidth","_MaxTextHeight","textChunks","layout","showsHalos","prevScroll","priorSelectionRange","name","charsReplaced","lastFindLoc","partsBinMetaInfo","__SourceModuleName__","priorExtent","_ClipMode","_FontSize","lastSyntaxHighlightTime","savedTextString","_Align","renderContextTable","lastSearchString","eventHandler","attributeConnections","doNotSerialize","doNotCopyProperties","distanceToDragEvent","_MinTextWidth","_MinTextHeight","previousSelection","lastSaveSource","isBeingDragged","draggingEnabled","objectEditorPane","isCopyMorphRef","morphRefId","statusMorph","derivationIds","_Position","owner","isLockOwner","doitContext","_renderContext","cachedTextString","_Rotation","_Scale","$$textString","textString","charsTyped","_isRendered","halos"],"level":0,"treeView":{"__isSmartRef__":true,"id":4584},"label":"Properties","children":[{"__isSmartRef__":true,"id":6799},{"__isSmartRef__":true,"id":6854},{"__isSmartRef__":true,"id":6938},{"__isSmartRef__":true,"id":7022},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":7190},{"__isSmartRef__":true,"id":7274},{"__isSmartRef__":true,"id":7358},{"__isSmartRef__":true,"id":7442},{"__isSmartRef__":true,"id":7526},{"__isSmartRef__":true,"id":7610},{"__isSmartRef__":true,"id":7694},{"__isSmartRef__":true,"id":7778},{"__isSmartRef__":true,"id":7862},{"__isSmartRef__":true,"id":7946},{"__isSmartRef__":true,"id":8030},{"__isSmartRef__":true,"id":8114},{"__isSmartRef__":true,"id":8199},{"__isSmartRef__":true,"id":8283},{"__isSmartRef__":true,"id":8367},{"__isSmartRef__":true,"id":8451},{"__isSmartRef__":true,"id":8535},{"__isSmartRef__":true,"id":8619},{"__isSmartRef__":true,"id":8703},{"__isSmartRef__":true,"id":8787},{"__isSmartRef__":true,"id":8871},{"__isSmartRef__":true,"id":8955},{"__isSmartRef__":true,"id":9039},{"__isSmartRef__":true,"id":9123},{"__isSmartRef__":true,"id":9207},{"__isSmartRef__":true,"id":9291},{"__isSmartRef__":true,"id":9375},{"__isSmartRef__":true,"id":9459},{"__isSmartRef__":true,"id":9543},{"__isSmartRef__":true,"id":9627},{"__isSmartRef__":true,"id":9711},{"__isSmartRef__":true,"id":9795},{"__isSmartRef__":true,"id":9879},{"__isSmartRef__":true,"id":9963},{"__isSmartRef__":true,"id":10047},{"__isSmartRef__":true,"id":10131},{"__isSmartRef__":true,"id":10215},{"__isSmartRef__":true,"id":10299},{"__isSmartRef__":true,"id":10383},{"__isSmartRef__":true,"id":10467},{"__isSmartRef__":true,"id":10551},{"__isSmartRef__":true,"id":10635},{"__isSmartRef__":true,"id":10719},{"__isSmartRef__":true,"id":10803},{"__isSmartRef__":true,"id":10887},{"__isSmartRef__":true,"id":10971},{"__isSmartRef__":true,"id":11055},{"__isSmartRef__":true,"id":11139},{"__isSmartRef__":true,"id":11414},{"__isSmartRef__":true,"id":11498},{"__isSmartRef__":true,"id":11582},{"__isSmartRef__":true,"id":11666},{"__isSmartRef__":true,"id":11750},{"__isSmartRef__":true,"id":11834},{"__isSmartRef__":true,"id":11918},{"__isSmartRef__":true,"id":12002},{"__isSmartRef__":true,"id":12086}],"parent":null,"expander":{"__isSmartRef__":true,"id":4588},"text":{"__isSmartRef__":true,"id":4605},"owner":{"__isSmartRef__":true,"id":4586},"_Position":{"__isSmartRef__":true,"id":12222},"priorExtent":{"__isSmartRef__":true,"id":12223},"_Rotation":0,"_Scale":1.0141055623885957,"childrenWrapper":{"__isSmartRef__":true,"id":6852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12224},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4588":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4589},"derivationIds":[null],"id":"47A33BA7-66C5-4E9F-86E2-B923BCFF10E0","renderContextTable":{"__isSmartRef__":true,"id":4595},"eventHandler":{"__isSmartRef__":true,"id":4596},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4597},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":4587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4598},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4589":{"_Position":{"__isSmartRef__":true,"id":4590},"renderContextTable":{"__isSmartRef__":true,"id":4591},"_Extent":{"__isSmartRef__":true,"id":4592},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4593},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":2396},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4590":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4591":{"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"},"4592":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4593":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4594":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4595":{"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"},"4596":{"morph":{"__isSmartRef__":true,"id":4588},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4597":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4598":{"toggle":{"__isSmartRef__":true,"id":4599},"toggleExpansion":{"__isSmartRef__":true,"id":4602}},"4599":{"varMapping":{"__isSmartRef__":true,"id":4600},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4600":{"this":{"__isSmartRef__":true,"id":4588}},"4601":{},"4602":{"varMapping":{"__isSmartRef__":true,"id":4603},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4603":{"this":{"__isSmartRef__":true,"id":4588}},"4604":{},"4605":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4606},"derivationIds":[null],"id":"396C0268-48B3-4FB3-9D92-61C7496160E4","renderContextTable":{"__isSmartRef__":true,"id":4612},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4613},{"__isSmartRef__":true,"id":4615}],"eventHandler":{"__isSmartRef__":true,"id":4618},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":4619},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":4587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4620},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4606":{"_Position":{"__isSmartRef__":true,"id":4607},"renderContextTable":{"__isSmartRef__":true,"id":4608},"_Extent":{"__isSmartRef__":true,"id":4609},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4607":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4608":{"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"},"4609":{"x":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4610":{"x":4,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4611":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4612":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4613":{"style":{"__isSmartRef__":true,"id":4614},"chunkOwner":{"__isSmartRef__":true,"id":4605},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4614":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4615":{"style":{"__isSmartRef__":true,"id":4616},"chunkOwner":{"__isSmartRef__":true,"id":4605},"storedString":": ObjectEditorScriptPane","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4616":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4617":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4618":{"morph":{"__isSmartRef__":true,"id":4605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4619":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4620":{"layoutText":{"__isSmartRef__":true,"id":4621}},"4621":{"varMapping":{"__isSmartRef__":true,"id":4622},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":4623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4622":{"this":{"__isSmartRef__":true,"id":4605}},"4623":{},"4624":{"_Position":{"__isSmartRef__":true,"id":4625},"renderContextTable":{"__isSmartRef__":true,"id":4626},"_Extent":{"__isSmartRef__":true,"id":4627},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4628},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4625":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4626":{"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"},"4627":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4628":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4629":{"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"},"4630":{"morph":{"__isSmartRef__":true,"id":4587},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4631":{"resizeWidth":true},"4632":{"submorphs":[],"scripts":[],"id":"E98C62E1-0CDA-487C-B1A5-22D7165CCCE9","shape":{"__isSmartRef__":true,"id":4633},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4640},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":688,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":4641}],"layout":{"__isSmartRef__":true,"id":4643},"showsHalos":false,"prevScroll":[0,0],"priorSelectionRange":[157,157],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":158,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4644},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":4645},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":1334831039185,"savedTextString":"// changed on Thu Apr 19 2012 11:30:26 GMT+0200 (CEST) by huberthesse \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.getSelectionRange();\n console.log(textSelectionRange)\n console.log(this.textMorph.domSelection())\n if (!textSelectionRange) {\n this.textMorph.focus();\n this.textMorph.setSelectionRange(this.prevSelectionRange[0], this.prevSelectionRange[1]);\n } else {\n this.prevSelectionRange = textSelectionRange;\n }\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":4646},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":4647},"attributeConnections":[{"__isSmartRef__":true,"id":4648}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":6741},"_MinTextWidth":688,"_MinTextHeight":null,"previousSelection":[354,354],"lastSaveSource":"// changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefined \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":4660},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":6742},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","C1E8D5BB-56F9-47B3-A520-BEEFEF791823","402B0881-8841-4E03-A656-F81F20E145B9","16EF1138-83B5-4802-A98B-B5978660FD0A","89B19391-7A9C-4CA4-8CA2-B5C67EF7EC7B","CFBC87C9-19CF-4C25-9AB0-E755EDCCAE06","ACD9BFD0-8CC8-4BF3-8DFA-806F31C93162","F0C50F59-F4FA-46D9-A961-8AC53944F823","71B63646-3AEB-40F0-98C9-48DBDB3FCD0B","CD6AEC19-7323-4638-8556-DC8DFE6F1C23","3B0896BD-7BAE-4571-8CED-029CB84D52C5","2E113F7A-9B12-48AD-817A-E736C870CC96","2F1195C1-4023-4427-9409-38DB45EB641D","122F8208-076F-4105-885B-C46C3514D0DD","B4E6E104-6D43-456F-B70F-E05B5924AE8B","87FB767C-9EFC-4BEE-A9F3-C8DF345AC9E1","91CCB25A-6E0E-470E-90D6-D86609B914C7","ED1735F6-A6E8-4E91-AAC3-8E0E91308697","0E8200DE-640D-4901-9D9A-AA9345A648E7","5684FED7-0A9F-44D9-AE80-6DD364871FE4"],"_Position":{"__isSmartRef__":true,"id":6757},"owner":{"__isSmartRef__":true,"id":4660},"isLockOwner":false,"doitContext":{"__isSmartRef__":true,"id":6467},"_Rotation":0,"_Scale":1,"textString":"// changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefined \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6758},"__LivelyClassName__":"lively.morphic.Text"},"4633":{"_Position":{"__isSmartRef__":true,"id":4634},"_Extent":{"__isSmartRef__":true,"id":4635},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4636},"_Fill":{"__isSmartRef__":true,"id":4637},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":4638},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":4639},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4634":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4635":{"x":690,"y":430,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4636":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4637":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4638":{"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"},"4639":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4640":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4641":{"style":{"__isSmartRef__":true,"id":4642},"chunkOwner":{"__isSmartRef__":true,"id":4632},"storedString":"// changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefined \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4642":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4643":{"resizeWidth":true,"resizeHeight":true},"4644":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4645":{"x":690,"y":430,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4646":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4647":{"morph":{"__isSmartRef__":true,"id":4632},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4648":{"sourceObj":{"__isSmartRef__":true,"id":4632},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":4649},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4649":{"submorphs":[],"scripts":[],"id":"668830F7-34E8-4B0A-9349-16148C7AFAC3","shape":{"__isSmartRef__":true,"id":4650},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4656},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":4657},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4658},"eventHandler":{"__isSmartRef__":true,"id":4659},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":4660},"priorExtent":{"__isSmartRef__":true,"id":6728},"layout":{"__isSmartRef__":true,"id":6729},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":4653},"alarmColor":{"__isSmartRef__":true,"id":6730},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":6731},"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","A9CFCF68-C0BF-429E-A510-D59B79B3F89F","15275F9F-0E8B-4DB6-8D2B-F0D442054D88","88F786A3-2E1C-45E8-B5BB-90D7F7B3A092","E9960EA4-1A5C-401C-990A-04C13BF3A467","1FE4F823-4B4E-43A4-B65B-18009510C926","E9969E1A-2721-420C-A521-EFE266FB6E0B","6256DD5C-40C0-4F1F-82F0-0C5A9E5BB43A","79559F04-28B5-4C05-A349-E7F26EA78883","D5C77AF6-E1CC-493A-A2B1-E4A8D39ECC68","CC359FC9-10D8-48FA-8260-F306D33057D8","A3B11012-48E4-402A-86E4-6FF1659BDF90","755231ED-FAF9-44CF-827B-BB7CD3E55FA4","79CEA95C-F733-4FA0-9F60-33D6AC4AA82A","5452BEAC-15A0-4D35-B194-C8DA4B1C75C1","69C04001-530F-49EC-BF6C-474B75CEE05B","4FE0EDBD-1777-4441-A973-D88D58994B74","5B449433-0DE8-429D-A4D4-1B11DBCB59DC","AD2C969E-0901-4BAC-9EA9-DA4AB20CE6D8"],"isLockOwner":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6732},"__LivelyClassName__":"lively.morphic.Box"},"4650":{"position":{"__isSmartRef__":true,"id":4651},"_Extent":{"__isSmartRef__":true,"id":4652},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4653},"_Fill":{"__isSmartRef__":true,"id":4653},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4654},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4655},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4651":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4652":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4653":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4654":{"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"},"4655":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4656":{"x":883.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4657":{"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"},"4658":{"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"},"4659":{"morph":{"__isSmartRef__":true,"id":4649},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4660":{"submorphs":[{"__isSmartRef__":true,"id":4661},{"__isSmartRef__":true,"id":5741},{"__isSmartRef__":true,"id":5201},{"__isSmartRef__":true,"id":5756},{"__isSmartRef__":true,"id":5772},{"__isSmartRef__":true,"id":5823},{"__isSmartRef__":true,"id":5873},{"__isSmartRef__":true,"id":5929},{"__isSmartRef__":true,"id":4632},{"__isSmartRef__":true,"id":4649},{"__isSmartRef__":true,"id":5984},{"__isSmartRef__":true,"id":5999},{"__isSmartRef__":true,"id":6014},{"__isSmartRef__":true,"id":6099},{"__isSmartRef__":true,"id":6183},{"__isSmartRef__":true,"id":6267},{"__isSmartRef__":true,"id":6315},{"__isSmartRef__":true,"id":6330},{"__isSmartRef__":true,"id":6349},{"__isSmartRef__":true,"id":6467},{"__isSmartRef__":true,"id":6524}],"scripts":[{"__isSmartRef__":true,"id":6581}],"id":"BE9BA273-DC0C-4AAF-8F44-C5D14466E63E","shape":{"__isSmartRef__":true,"id":6582},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":6589},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6592},"eventHandler":{"__isSmartRef__":true,"id":6593},"priorExtent":{"__isSmartRef__":true,"id":6594},"layout":{"__isSmartRef__":true,"id":6595},"scriptPane":{"__isSmartRef__":true,"id":4632},"scriptList":{"__isSmartRef__":true,"id":4661},"connectionList":{"__isSmartRef__":true,"id":5201},"morphSelector":{"__isSmartRef__":true,"id":6349},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":4649},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":6596},"tagChooser":{"__isSmartRef__":true,"id":6014},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","BA6D5198-5AC2-4A63-9597-D4CF98A99CA9","929A7653-4634-4D42-8EEA-947BFC1FEA80","2AF1D546-9A4F-4D04-A382-896779ED01B1","EEF5F2E5-B3BE-468B-8A96-76CB136FAD71","F54EAE1D-19D8-49E0-B48D-6118BF837DBF","06E8F104-73F3-470C-AC96-E2D56122A124","1B3377DD-3266-4B73-ADAE-F94731F7BAA3","7E32CE9E-AE83-49F9-BD62-D18CABCEF974","9A6F29CB-3BF2-4763-91C6-6ED674CF89DA","44E18EAE-0E2A-423A-89E4-2E430D0B84D6","C0968E71-AF0A-4192-8C27-90F8BB658056","CACAB2BE-D4F8-42F3-8A2C-66E84CD1A671","F3704F21-52D4-4EBE-9DAB-DF978002EB9B","70993B9A-42C7-444C-9B03-47AF0188459D","EF7BEBC5-9166-48D8-8781-C0965B72F35C","F23BBACE-E91C-47CB-A9EC-73B5C0CA3606","742B86C0-AC5B-473A-92F2-8FEEF8747E80","46E77D35-971E-4180-AEAE-0A7CD1D4E6CE","E689DA5F-2817-487B-B066-42DD33B90A90"],"_Position":{"__isSmartRef__":true,"id":6597},"owner":{"__isSmartRef__":true,"id":5308},"isLockOwner":false,"worldConnection":{"__isSmartRef__":true,"id":6598},"target":{"__isSmartRef__":true,"id":6467},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6599},"__LivelyClassName__":"lively.morphic.Box","withLayers":["Global.ToolMorphLayer"]},"4661":{"submorphs":[],"scripts":[],"id":"6C93DC0D-14F9-4778-9602-7284E6B49EFF","shape":{"__isSmartRef__":true,"id":4662},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4669},"itemList":["-- ALL --","onMouseDown"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":4670},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":4660},"priorExtent":{"__isSmartRef__":true,"id":4671},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":4672}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":4677},"doitContext":{"__isSmartRef__":true,"id":4678},"renderContextTable":{"__isSmartRef__":true,"id":5730},"eventHandler":{"__isSmartRef__":true,"id":5731},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":5732},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"currentCategory":null,"derivationIds":[207,"D87334B5-DFB8-438D-8038-D2C55A798E3B","4242A24B-D284-4130-BB19-C1AB8C7E96CB","1F2230C1-4745-4EED-8827-5D3FC0EA8D8A","1260A8AA-AD41-451A-A761-BE75A33282E8","11AABB24-1595-4EDC-95DF-8BC66785F47A","CA99FFE7-13DD-4721-8DE2-6A587B0C65D9","D910D84D-D60C-49AD-9903-63F2FFD8841A","F7EFD93B-DC86-4973-8E35-4128B2BE2D2E","AF447D8A-2EC3-45C9-B25A-C3C88A7C11DC","700A8C7D-531C-4422-A1AC-1958FAA4E16B","4F2C543E-E074-4813-9FD8-A85E567C3F31","D2A110A0-921C-4F3F-87AA-E5E34217D040","2D266AAC-D9B9-4DFE-9525-F2F50FAB4A63","AFFA5DF4-E836-41BA-8938-86449E4D987D","452BD987-1FC7-4115-9EFE-3960ABAFE516","7D4AE8AD-D08E-4DA3-8959-C7DEFA9BBA69","243FFBCB-7542-4372-A047-71B3C4B4408A","C3B232ED-CB99-408D-B598-C59F40E531F4","3707A04E-F161-4074-8CB3-0ED184977E74","74759322-8511-4353-8755-FF0B5AA9D6B8","A201F727-1814-4B05-B218-ED85DCCB01AF","CE1A7DC9-7ECE-4AB9-B7FA-FDF3D46553E7","B96D2DBC-0034-4845-967A-83A79CADDD57","FE5973F7-2118-4BA9-9F44-D0A07AE1D8CD"],"isLockOwner":false,"selection":"onMouseDown","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5733},"__LivelyClassName__":"lively.morphic.List"},"4662":{"position":{"__isSmartRef__":true,"id":4663},"_Extent":{"__isSmartRef__":true,"id":4664},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4665},"_Fill":{"__isSmartRef__":true,"id":4666},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":4667},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":4668},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4663":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4664":{"x":180,"y":337.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4665":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4666":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4667":{"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"},"4668":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4669":{"x":10,"y":63.027958027992966,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4670":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4671":{"x":180,"y":338.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4672":{"sourceObj":{"__isSmartRef__":true,"id":4661},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":4660},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4673},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4674},"__LivelyClassName__":"AttributeConnection"},"4673":{"source":{"__isSmartRef__":true,"id":4661},"target":{"__isSmartRef__":true,"id":4660}},"4674":{"converter":{"__isSmartRef__":true,"id":4675}},"4675":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":4673},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","funcProperties":{"__isSmartRef__":true,"id":4676},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4676":{},"4677":{"resizeHeight":true},"4678":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":4679},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":4684},"priorExtent":{"__isSmartRef__":true,"id":4685},"titleBar":{"__isSmartRef__":true,"id":4686},"contentOffset":{"__isSmartRef__":true,"id":4827},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":4828},"expandedExtent":{"__isSmartRef__":true,"id":4829},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":4830},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":4831},"expandedPosition":{"__isSmartRef__":true,"id":5154},"partsBinMetaInfo":{"__isSmartRef__":true,"id":5155},"scriptList":{"__isSmartRef__":true,"id":4661},"scriptPane":{"__isSmartRef__":true,"id":4632},"classButton":{"__isSmartRef__":true,"id":5156},"connectionList":{"__isSmartRef__":true,"id":5201},"targetButton":{"__isSmartRef__":true,"id":5226},"renderContextTable":{"__isSmartRef__":true,"id":5269},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":5270},"morphSelector":{"__isSmartRef__":true,"id":5271},"eventHandler":{"__isSmartRef__":true,"id":5677},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5678},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"4679":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":4680},"_StrokeOpacity":0,"_BorderRadius":9.25,"_Extent":{"__isSmartRef__":true,"id":4681},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":4682},"renderContextTable":{"__isSmartRef__":true,"id":4683},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4680":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4681":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4682":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4683":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4684":{"adjustForNewBounds":true},"4685":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4686":{"submorphs":[{"__isSmartRef__":true,"id":4687},{"__isSmartRef__":true,"id":4700},{"__isSmartRef__":true,"id":4744},{"__isSmartRef__":true,"id":4776}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":4809},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4822},"_Position":{"__isSmartRef__":true,"id":4823},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":4678},"label":{"__isSmartRef__":true,"id":4687},"closeButton":{"__isSmartRef__":true,"id":4700},"menuButton":{"__isSmartRef__":true,"id":4744},"collapseButton":{"__isSmartRef__":true,"id":4776},"priorExtent":{"__isSmartRef__":true,"id":4824},"owner":null,"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4825},"eventHandler":{"__isSmartRef__":true,"id":4826},"__LivelyClassName__":"lively.morphic.TitleBar"},"4687":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":4688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4693},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4694},"priorExtent":{"__isSmartRef__":true,"id":4695},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":4696}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":4686},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4698},"eventHandler":{"__isSmartRef__":true,"id":4699},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"4688":{"_Position":{"__isSmartRef__":true,"id":4689},"_Extent":{"__isSmartRef__":true,"id":4690},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4691},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4692},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4689":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4690":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4691":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4692":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4693":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4694":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4695":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4696":{"style":{"__isSmartRef__":true,"id":4697},"chunkOwner":{"__isSmartRef__":true,"id":4687},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4697":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4698":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4699":{"morph":{"__isSmartRef__":true,"id":4687},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4700":{"submorphs":[{"__isSmartRef__":true,"id":4701}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":4713},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4728},"priorExtent":{"__isSmartRef__":true,"id":4729},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4717},"lighterFill":{"__isSmartRef__":true,"id":4730},"label":{"__isSmartRef__":true,"id":4701},"owner":{"__isSmartRef__":true,"id":4686},"layout":{"__isSmartRef__":true,"id":4739},"attributeConnections":[{"__isSmartRef__":true,"id":4740},{"__isSmartRef__":true,"id":4741}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4742},"eventHandler":{"__isSmartRef__":true,"id":4743},"__LivelyClassName__":"lively.morphic.WindowControl"},"4701":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":4702},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4706},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4707},"priorExtent":{"__isSmartRef__":true,"id":4708},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":4709}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4700},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4711},"eventHandler":{"__isSmartRef__":true,"id":4712},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"4702":{"_Position":{"__isSmartRef__":true,"id":4703},"_Extent":{"__isSmartRef__":true,"id":4704},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4691},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4705},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4703":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4704":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4705":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4706":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4707":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4708":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4709":{"style":{"__isSmartRef__":true,"id":4710},"chunkOwner":{"__isSmartRef__":true,"id":4701},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4710":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4711":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4712":{"morph":{"__isSmartRef__":true,"id":4701},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4713":{"_Position":{"__isSmartRef__":true,"id":4714},"_Extent":{"__isSmartRef__":true,"id":4715},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4716},"_Fill":{"__isSmartRef__":true,"id":4717},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4727},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4714":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4715":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4716":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4717":{"stops":[{"__isSmartRef__":true,"id":4718},{"__isSmartRef__":true,"id":4720},{"__isSmartRef__":true,"id":4722},{"__isSmartRef__":true,"id":4724}],"vector":{"__isSmartRef__":true,"id":4726},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4718":{"offset":0,"color":{"__isSmartRef__":true,"id":4719}},"4719":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4720":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4721}},"4721":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4722":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4723}},"4723":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4724":{"offset":1,"color":{"__isSmartRef__":true,"id":4725}},"4725":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4726":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4727":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4728":{"x":960.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4729":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4730":{"stops":[{"__isSmartRef__":true,"id":4731},{"__isSmartRef__":true,"id":4733},{"__isSmartRef__":true,"id":4735},{"__isSmartRef__":true,"id":4737}],"vector":{"__isSmartRef__":true,"id":4726},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4731":{"offset":0,"color":{"__isSmartRef__":true,"id":4732}},"4732":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4733":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4734}},"4734":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4735":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4736}},"4736":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4737":{"offset":1,"color":{"__isSmartRef__":true,"id":4738}},"4738":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4739":{"moveHorizontal":true},"4740":{"sourceObj":{"__isSmartRef__":true,"id":4700},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4741":{"sourceObj":{"__isSmartRef__":true,"id":4700},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4742":{"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"},"4743":{"morph":{"__isSmartRef__":true,"id":4700},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4744":{"submorphs":[{"__isSmartRef__":true,"id":4745}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":4757},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4761},"priorExtent":{"__isSmartRef__":true,"id":4762},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4717},"lighterFill":{"__isSmartRef__":true,"id":4763},"label":{"__isSmartRef__":true,"id":4745},"owner":{"__isSmartRef__":true,"id":4686},"attributeConnections":[{"__isSmartRef__":true,"id":4772},{"__isSmartRef__":true,"id":4773}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4774},"eventHandler":{"__isSmartRef__":true,"id":4775},"__LivelyClassName__":"lively.morphic.WindowControl"},"4745":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":4746},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4750},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4751},"priorExtent":{"__isSmartRef__":true,"id":4752},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":4753}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4744},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4755},"eventHandler":{"__isSmartRef__":true,"id":4756},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"4746":{"_Position":{"__isSmartRef__":true,"id":4747},"_Extent":{"__isSmartRef__":true,"id":4748},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4691},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4749},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4747":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4748":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4749":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4750":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4751":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4752":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4753":{"style":{"__isSmartRef__":true,"id":4754},"chunkOwner":{"__isSmartRef__":true,"id":4745},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4754":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4755":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4756":{"morph":{"__isSmartRef__":true,"id":4745},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4757":{"_Position":{"__isSmartRef__":true,"id":4758},"_Extent":{"__isSmartRef__":true,"id":4759},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4716},"_Fill":{"__isSmartRef__":true,"id":4717},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4760},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4758":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4759":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4760":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4761":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4762":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4763":{"stops":[{"__isSmartRef__":true,"id":4764},{"__isSmartRef__":true,"id":4766},{"__isSmartRef__":true,"id":4768},{"__isSmartRef__":true,"id":4770}],"vector":{"__isSmartRef__":true,"id":4726},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4764":{"offset":0,"color":{"__isSmartRef__":true,"id":4765}},"4765":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4766":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4767}},"4767":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4768":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4769}},"4769":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4770":{"offset":1,"color":{"__isSmartRef__":true,"id":4771}},"4771":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4772":{"sourceObj":{"__isSmartRef__":true,"id":4744},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4773":{"sourceObj":{"__isSmartRef__":true,"id":4744},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4774":{"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"},"4775":{"morph":{"__isSmartRef__":true,"id":4744},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4776":{"submorphs":[{"__isSmartRef__":true,"id":4777}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":4789},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4793},"priorExtent":{"__isSmartRef__":true,"id":4794},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4717},"lighterFill":{"__isSmartRef__":true,"id":4795},"label":{"__isSmartRef__":true,"id":4777},"owner":{"__isSmartRef__":true,"id":4686},"layout":{"__isSmartRef__":true,"id":4804},"attributeConnections":[{"__isSmartRef__":true,"id":4805},{"__isSmartRef__":true,"id":4806}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4807},"eventHandler":{"__isSmartRef__":true,"id":4808},"__LivelyClassName__":"lively.morphic.WindowControl"},"4777":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":4778},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4782},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4783},"priorExtent":{"__isSmartRef__":true,"id":4784},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":4785}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4776},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4787},"eventHandler":{"__isSmartRef__":true,"id":4788},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"4778":{"_Position":{"__isSmartRef__":true,"id":4779},"_Extent":{"__isSmartRef__":true,"id":4780},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4691},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4781},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4779":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4780":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4782":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4783":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4784":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4785":{"style":{"__isSmartRef__":true,"id":4786},"chunkOwner":{"__isSmartRef__":true,"id":4777},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4786":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4787":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4788":{"morph":{"__isSmartRef__":true,"id":4777},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4789":{"_Position":{"__isSmartRef__":true,"id":4790},"_Extent":{"__isSmartRef__":true,"id":4791},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4716},"_Fill":{"__isSmartRef__":true,"id":4717},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4792},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4790":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4791":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4792":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4793":{"x":941.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4794":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4795":{"stops":[{"__isSmartRef__":true,"id":4796},{"__isSmartRef__":true,"id":4798},{"__isSmartRef__":true,"id":4800},{"__isSmartRef__":true,"id":4802}],"vector":{"__isSmartRef__":true,"id":4726},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4796":{"offset":0,"color":{"__isSmartRef__":true,"id":4797}},"4797":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4798":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4799}},"4799":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4800":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4801}},"4801":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4802":{"offset":1,"color":{"__isSmartRef__":true,"id":4803}},"4803":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4804":{"moveHorizontal":true},"4805":{"sourceObj":{"__isSmartRef__":true,"id":4776},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4806":{"sourceObj":{"__isSmartRef__":true,"id":4776},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4807":{"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"},"4808":{"morph":{"__isSmartRef__":true,"id":4776},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4809":{"_Position":{"__isSmartRef__":true,"id":4810},"_Extent":{"__isSmartRef__":true,"id":4811},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4812},"_Fill":{"__isSmartRef__":true,"id":4813},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4821},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4810":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4811":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4812":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4813":{"stops":[{"__isSmartRef__":true,"id":4814},{"__isSmartRef__":true,"id":4816},{"__isSmartRef__":true,"id":4818}],"vector":{"__isSmartRef__":true,"id":4820},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4814":{"offset":0,"color":{"__isSmartRef__":true,"id":4815}},"4815":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4816":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4817}},"4817":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4818":{"offset":1,"color":{"__isSmartRef__":true,"id":4819}},"4819":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4820":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4821":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4822":{"resizeWidth":true,"adjustForNewBounds":true},"4823":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4824":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4825":{"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"},"4826":{"morph":{"__isSmartRef__":true,"id":4686},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4827":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4828":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"4829":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4830":{"x":613,"y":129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4831":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4832},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":4838},"textChunks":[{"__isSmartRef__":true,"id":4839}],"eventHandler":{"__isSmartRef__":true,"id":4841},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4842},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4843},"priorExtent":{"__isSmartRef__":true,"id":4844},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4845},"layout":{"__isSmartRef__":true,"id":4992},"doitContext":{"__isSmartRef__":true,"id":4993},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4832":{"_Position":{"__isSmartRef__":true,"id":4833},"renderContextTable":{"__isSmartRef__":true,"id":4834},"_Extent":{"__isSmartRef__":true,"id":4835},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":{"__isSmartRef__":true,"id":4837},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4833":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4835":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4836":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4837":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4838":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4839":{"style":{"__isSmartRef__":true,"id":4840},"chunkOwner":{"__isSmartRef__":true,"id":4831},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4840":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4841":{"morph":{"__isSmartRef__":true,"id":4831},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4842":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4843":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4844":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4845":{"submorphs":[{"__isSmartRef__":true,"id":4831},{"__isSmartRef__":true,"id":4846}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4983},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":4986},"eventHandler":{"__isSmartRef__":true,"id":4987},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":4988},"LK2":true,"_Position":{"__isSmartRef__":true,"id":4989},"priorExtent":{"__isSmartRef__":true,"id":4990},"targetMorph":{"__isSmartRef__":true,"id":4831},"titleBar":{"__isSmartRef__":true,"id":4846},"contentOffset":{"__isSmartRef__":true,"id":4843},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":4991},"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"4846":{"submorphs":[{"__isSmartRef__":true,"id":4847},{"__isSmartRef__":true,"id":4860},{"__isSmartRef__":true,"id":4906},{"__isSmartRef__":true,"id":4939}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4973},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":4978},"eventHandler":{"__isSmartRef__":true,"id":4979},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4980},"_Position":{"__isSmartRef__":true,"id":4981},"windowMorph":{"__isSmartRef__":true,"id":4845},"label":{"__isSmartRef__":true,"id":4847},"closeButton":{"__isSmartRef__":true,"id":4860},"menuButton":{"__isSmartRef__":true,"id":4906},"collapseButton":{"__isSmartRef__":true,"id":4939},"priorExtent":{"__isSmartRef__":true,"id":4982},"owner":{"__isSmartRef__":true,"id":4845},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"4847":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4848},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":4852},"textChunks":[{"__isSmartRef__":true,"id":4853}],"eventHandler":{"__isSmartRef__":true,"id":4855},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4856},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":4857},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":4846},"priorExtent":{"__isSmartRef__":true,"id":4858},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":4859},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4848":{"_Position":{"__isSmartRef__":true,"id":4849},"renderContextTable":{"__isSmartRef__":true,"id":4850},"_Extent":{"__isSmartRef__":true,"id":4851},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4849":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4850":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4851":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4852":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4853":{"style":{"__isSmartRef__":true,"id":4854},"chunkOwner":{"__isSmartRef__":true,"id":4847},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4854":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4855":{"morph":{"__isSmartRef__":true,"id":4847},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4856":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4857":{"resizeWidth":true},"4858":{"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4859":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4860":{"submorphs":[{"__isSmartRef__":true,"id":4861}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4873},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":4888},"eventHandler":{"__isSmartRef__":true,"id":4889},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4890},"priorExtent":{"__isSmartRef__":true,"id":4891},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4878},"lighterFill":{"__isSmartRef__":true,"id":4892},"label":{"__isSmartRef__":true,"id":4861},"owner":{"__isSmartRef__":true,"id":4846},"layout":{"__isSmartRef__":true,"id":4901},"attributeConnections":[{"__isSmartRef__":true,"id":4902},{"__isSmartRef__":true,"id":4904}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"4861":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4862},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":4866},"textChunks":[{"__isSmartRef__":true,"id":4867}],"eventHandler":{"__isSmartRef__":true,"id":4869},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4870},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4871},"priorExtent":{"__isSmartRef__":true,"id":4872},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4860},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4862":{"_Position":{"__isSmartRef__":true,"id":4863},"renderContextTable":{"__isSmartRef__":true,"id":4864},"_Extent":{"__isSmartRef__":true,"id":4865},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4863":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4864":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4865":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4866":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4867":{"style":{"__isSmartRef__":true,"id":4868},"chunkOwner":{"__isSmartRef__":true,"id":4861},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4868":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4869":{"morph":{"__isSmartRef__":true,"id":4861},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4870":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4871":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4872":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4873":{"_Position":{"__isSmartRef__":true,"id":4874},"renderContextTable":{"__isSmartRef__":true,"id":4875},"_Extent":{"__isSmartRef__":true,"id":4876},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4877},"_Fill":{"__isSmartRef__":true,"id":4878},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4874":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4875":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4876":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4877":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4878":{"stops":[{"__isSmartRef__":true,"id":4879},{"__isSmartRef__":true,"id":4881},{"__isSmartRef__":true,"id":4883},{"__isSmartRef__":true,"id":4885}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4879":{"offset":0,"color":{"__isSmartRef__":true,"id":4880}},"4880":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4881":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4882}},"4882":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4883":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4884}},"4884":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4885":{"offset":1,"color":{"__isSmartRef__":true,"id":4886}},"4886":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4887":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4888":{"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"},"4889":{"morph":{"__isSmartRef__":true,"id":4860},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4890":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4891":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4892":{"stops":[{"__isSmartRef__":true,"id":4893},{"__isSmartRef__":true,"id":4895},{"__isSmartRef__":true,"id":4897},{"__isSmartRef__":true,"id":4899}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4893":{"offset":0,"color":{"__isSmartRef__":true,"id":4894}},"4894":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4895":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4896}},"4896":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4897":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4898}},"4898":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4899":{"offset":1,"color":{"__isSmartRef__":true,"id":4900}},"4900":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4901":{"moveHorizontal":true},"4902":{"sourceObj":{"__isSmartRef__":true,"id":4860},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4845},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4903},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4903":{"source":{"__isSmartRef__":true,"id":4860},"target":{"__isSmartRef__":true,"id":4845}},"4904":{"sourceObj":{"__isSmartRef__":true,"id":4860},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4845},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4905},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4905":{"source":{"__isSmartRef__":true,"id":4860},"target":{"__isSmartRef__":true,"id":4845}},"4906":{"submorphs":[{"__isSmartRef__":true,"id":4907}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4918},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":4922},"eventHandler":{"__isSmartRef__":true,"id":4923},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4924},"priorExtent":{"__isSmartRef__":true,"id":4925},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4878},"lighterFill":{"__isSmartRef__":true,"id":4926},"label":{"__isSmartRef__":true,"id":4907},"owner":{"__isSmartRef__":true,"id":4846},"attributeConnections":[{"__isSmartRef__":true,"id":4935},{"__isSmartRef__":true,"id":4937}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"4907":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4908},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":4912},"textChunks":[{"__isSmartRef__":true,"id":4913}],"eventHandler":{"__isSmartRef__":true,"id":4915},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4870},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4916},"priorExtent":{"__isSmartRef__":true,"id":4917},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4906},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4908":{"_Position":{"__isSmartRef__":true,"id":4909},"renderContextTable":{"__isSmartRef__":true,"id":4910},"_Extent":{"__isSmartRef__":true,"id":4911},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4909":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4910":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4911":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4912":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4913":{"style":{"__isSmartRef__":true,"id":4914},"chunkOwner":{"__isSmartRef__":true,"id":4907},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4914":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4915":{"morph":{"__isSmartRef__":true,"id":4907},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4916":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4917":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4918":{"_Position":{"__isSmartRef__":true,"id":4919},"renderContextTable":{"__isSmartRef__":true,"id":4920},"_Extent":{"__isSmartRef__":true,"id":4921},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4877},"_Fill":{"__isSmartRef__":true,"id":4878},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4919":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4920":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4921":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4922":{"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"},"4923":{"morph":{"__isSmartRef__":true,"id":4906},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4924":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4925":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4926":{"stops":[{"__isSmartRef__":true,"id":4927},{"__isSmartRef__":true,"id":4929},{"__isSmartRef__":true,"id":4931},{"__isSmartRef__":true,"id":4933}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4927":{"offset":0,"color":{"__isSmartRef__":true,"id":4928}},"4928":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4929":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4930}},"4930":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4931":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4932}},"4932":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4933":{"offset":1,"color":{"__isSmartRef__":true,"id":4934}},"4934":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4935":{"sourceObj":{"__isSmartRef__":true,"id":4906},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4845},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4936},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4936":{"source":{"__isSmartRef__":true,"id":4906},"target":{"__isSmartRef__":true,"id":4845}},"4937":{"sourceObj":{"__isSmartRef__":true,"id":4906},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4845},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4938},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4938":{"source":{"__isSmartRef__":true,"id":4906},"target":{"__isSmartRef__":true,"id":4845}},"4939":{"submorphs":[{"__isSmartRef__":true,"id":4940}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4951},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":4955},"eventHandler":{"__isSmartRef__":true,"id":4956},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4957},"priorExtent":{"__isSmartRef__":true,"id":4958},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4878},"lighterFill":{"__isSmartRef__":true,"id":4959},"label":{"__isSmartRef__":true,"id":4940},"owner":{"__isSmartRef__":true,"id":4846},"layout":{"__isSmartRef__":true,"id":4968},"attributeConnections":[{"__isSmartRef__":true,"id":4969},{"__isSmartRef__":true,"id":4971}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"4940":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4941},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":4945},"textChunks":[{"__isSmartRef__":true,"id":4946}],"eventHandler":{"__isSmartRef__":true,"id":4948},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4870},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":4949},"priorExtent":{"__isSmartRef__":true,"id":4950},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4939},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"4941":{"_Position":{"__isSmartRef__":true,"id":4942},"renderContextTable":{"__isSmartRef__":true,"id":4943},"_Extent":{"__isSmartRef__":true,"id":4944},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4942":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4943":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4944":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4945":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4946":{"style":{"__isSmartRef__":true,"id":4947},"chunkOwner":{"__isSmartRef__":true,"id":4940},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4947":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4948":{"morph":{"__isSmartRef__":true,"id":4940},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4949":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4950":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4951":{"_Position":{"__isSmartRef__":true,"id":4952},"renderContextTable":{"__isSmartRef__":true,"id":4953},"_Extent":{"__isSmartRef__":true,"id":4954},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4877},"_Fill":{"__isSmartRef__":true,"id":4878},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4952":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4953":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4954":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4955":{"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"},"4956":{"morph":{"__isSmartRef__":true,"id":4939},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4957":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4958":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4959":{"stops":[{"__isSmartRef__":true,"id":4960},{"__isSmartRef__":true,"id":4962},{"__isSmartRef__":true,"id":4964},{"__isSmartRef__":true,"id":4966}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4960":{"offset":0,"color":{"__isSmartRef__":true,"id":4961}},"4961":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4962":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4963}},"4963":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4964":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4965}},"4965":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4966":{"offset":1,"color":{"__isSmartRef__":true,"id":4967}},"4967":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4968":{"moveHorizontal":true},"4969":{"sourceObj":{"__isSmartRef__":true,"id":4939},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4845},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4970},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4970":{"source":{"__isSmartRef__":true,"id":4939},"target":{"__isSmartRef__":true,"id":4845}},"4971":{"sourceObj":{"__isSmartRef__":true,"id":4939},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4845},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4972},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4972":{"source":{"__isSmartRef__":true,"id":4939},"target":{"__isSmartRef__":true,"id":4845}},"4973":{"_Position":{"__isSmartRef__":true,"id":4974},"renderContextTable":{"__isSmartRef__":true,"id":4975},"_Extent":{"__isSmartRef__":true,"id":4976},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4977},"_Fill":{"__isSmartRef__":true,"id":4813},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4974":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4975":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4976":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4977":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4978":{"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"},"4979":{"morph":{"__isSmartRef__":true,"id":4846},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4980":{"resizeWidth":true,"adjustForNewBounds":true},"4981":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4982":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4983":{"renderContextTable":{"__isSmartRef__":true,"id":4984},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":4985},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4984":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4985":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4986":{"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"},"4987":{"morph":{"__isSmartRef__":true,"id":4845},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4988":{"adjustForNewBounds":true},"4989":{"x":1234,"y":448,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4990":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4991":{"x":1478,"y":453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4992":{"resizeWidth":true,"resizeHeight":true},"4993":{"submorphs":[{"__isSmartRef__":true,"id":4994},{"__isSmartRef__":true,"id":5008}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5138},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":5142},"eventHandler":{"__isSmartRef__":true,"id":5143},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":5144},"LK2":true,"_Position":{"__isSmartRef__":true,"id":5145},"priorExtent":{"__isSmartRef__":true,"id":5146},"targetMorph":{"__isSmartRef__":true,"id":4994},"titleBar":{"__isSmartRef__":true,"id":5008},"contentOffset":{"__isSmartRef__":true,"id":5004},"collapsedTransform":{"__isSmartRef__":true,"id":5147},"collapsedExtent":{"__isSmartRef__":true,"id":5148},"expandedTransform":{"__isSmartRef__":true,"id":5149},"expandedExtent":{"__isSmartRef__":true,"id":5150},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":5151},"expandedPosition":{"__isSmartRef__":true,"id":5152},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":5153},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"4994":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4995},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":5000},"textChunks":[{"__isSmartRef__":true,"id":5001}],"eventHandler":{"__isSmartRef__":true,"id":5003},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4842},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_Position":{"__isSmartRef__":true,"id":5004},"priorExtent":{"__isSmartRef__":true,"id":5005},"_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4993},"layout":{"__isSmartRef__":true,"id":5006},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":5007}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"priorSelectionRange":[0,22],"charsReplaced":"","lastFindLoc":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"undefined","__LivelyClassName__":"lively.morphic.Text"},"4995":{"_Position":{"__isSmartRef__":true,"id":4996},"renderContextTable":{"__isSmartRef__":true,"id":4997},"_Extent":{"__isSmartRef__":true,"id":4998},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":{"__isSmartRef__":true,"id":4999},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4996":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4998":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4999":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5000":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5001":{"style":{"__isSmartRef__":true,"id":5002},"chunkOwner":{"__isSmartRef__":true,"id":4994},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5002":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5003":{"morph":{"__isSmartRef__":true,"id":4994},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5004":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5005":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5006":{"resizeWidth":true,"resizeHeight":true},"5007":{"sourceObj":{"__isSmartRef__":true,"id":4994},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":4994},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5008":{"submorphs":[{"__isSmartRef__":true,"id":5009},{"__isSmartRef__":true,"id":5021},{"__isSmartRef__":true,"id":5055},{"__isSmartRef__":true,"id":5088}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5122},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":5133},"eventHandler":{"__isSmartRef__":true,"id":5134},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5135},"_Position":{"__isSmartRef__":true,"id":5136},"windowMorph":{"__isSmartRef__":true,"id":4993},"label":{"__isSmartRef__":true,"id":5009},"closeButton":{"__isSmartRef__":true,"id":5021},"menuButton":{"__isSmartRef__":true,"id":5055},"collapseButton":{"__isSmartRef__":true,"id":5088},"priorExtent":{"__isSmartRef__":true,"id":5137},"owner":{"__isSmartRef__":true,"id":4993},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"5009":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5010},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":5014},"textChunks":[{"__isSmartRef__":true,"id":5015}],"eventHandler":{"__isSmartRef__":true,"id":5017},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4856},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":5018},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":5008},"priorExtent":{"__isSmartRef__":true,"id":5019},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":5020},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"5010":{"_Position":{"__isSmartRef__":true,"id":5011},"renderContextTable":{"__isSmartRef__":true,"id":5012},"_Extent":{"__isSmartRef__":true,"id":5013},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5011":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5012":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5013":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5014":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5015":{"style":{"__isSmartRef__":true,"id":5016},"chunkOwner":{"__isSmartRef__":true,"id":5009},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5016":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5017":{"morph":{"__isSmartRef__":true,"id":5009},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5018":{"resizeWidth":true},"5019":{"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5020":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5021":{"submorphs":[{"__isSmartRef__":true,"id":5022}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5033},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":5037},"eventHandler":{"__isSmartRef__":true,"id":5038},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5039},"priorExtent":{"__isSmartRef__":true,"id":5040},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4878},"lighterFill":{"__isSmartRef__":true,"id":5041},"label":{"__isSmartRef__":true,"id":5022},"owner":{"__isSmartRef__":true,"id":5008},"layout":{"__isSmartRef__":true,"id":5050},"attributeConnections":[{"__isSmartRef__":true,"id":5051},{"__isSmartRef__":true,"id":5053}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"5022":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5023},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":5027},"textChunks":[{"__isSmartRef__":true,"id":5028}],"eventHandler":{"__isSmartRef__":true,"id":5030},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4870},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":5031},"priorExtent":{"__isSmartRef__":true,"id":5032},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5021},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"5023":{"_Position":{"__isSmartRef__":true,"id":5024},"renderContextTable":{"__isSmartRef__":true,"id":5025},"_Extent":{"__isSmartRef__":true,"id":5026},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5024":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5025":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5026":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5027":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5028":{"style":{"__isSmartRef__":true,"id":5029},"chunkOwner":{"__isSmartRef__":true,"id":5022},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5029":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5030":{"morph":{"__isSmartRef__":true,"id":5022},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5031":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5032":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5033":{"_Position":{"__isSmartRef__":true,"id":5034},"renderContextTable":{"__isSmartRef__":true,"id":5035},"_Extent":{"__isSmartRef__":true,"id":5036},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4877},"_Fill":{"__isSmartRef__":true,"id":4878},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5034":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5036":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5037":{"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"},"5038":{"morph":{"__isSmartRef__":true,"id":5021},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5039":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5040":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5041":{"stops":[{"__isSmartRef__":true,"id":5042},{"__isSmartRef__":true,"id":5044},{"__isSmartRef__":true,"id":5046},{"__isSmartRef__":true,"id":5048}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5042":{"offset":0,"color":{"__isSmartRef__":true,"id":5043}},"5043":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5044":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5045}},"5045":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5046":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5047}},"5047":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5048":{"offset":1,"color":{"__isSmartRef__":true,"id":5049}},"5049":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5050":{"moveHorizontal":true},"5051":{"sourceObj":{"__isSmartRef__":true,"id":5021},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4993},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5052},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5052":{"source":{"__isSmartRef__":true,"id":5021},"target":{"__isSmartRef__":true,"id":4993}},"5053":{"sourceObj":{"__isSmartRef__":true,"id":5021},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4993},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5054},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5054":{"source":{"__isSmartRef__":true,"id":5021},"target":{"__isSmartRef__":true,"id":4993}},"5055":{"submorphs":[{"__isSmartRef__":true,"id":5056}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5067},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":5071},"eventHandler":{"__isSmartRef__":true,"id":5072},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5073},"priorExtent":{"__isSmartRef__":true,"id":5074},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4878},"lighterFill":{"__isSmartRef__":true,"id":5075},"label":{"__isSmartRef__":true,"id":5056},"owner":{"__isSmartRef__":true,"id":5008},"attributeConnections":[{"__isSmartRef__":true,"id":5084},{"__isSmartRef__":true,"id":5086}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"5056":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5057},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":5061},"textChunks":[{"__isSmartRef__":true,"id":5062}],"eventHandler":{"__isSmartRef__":true,"id":5064},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4870},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":5065},"priorExtent":{"__isSmartRef__":true,"id":5066},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5055},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"5057":{"_Position":{"__isSmartRef__":true,"id":5058},"renderContextTable":{"__isSmartRef__":true,"id":5059},"_Extent":{"__isSmartRef__":true,"id":5060},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5058":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5059":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5060":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5061":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5062":{"style":{"__isSmartRef__":true,"id":5063},"chunkOwner":{"__isSmartRef__":true,"id":5056},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5063":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5064":{"morph":{"__isSmartRef__":true,"id":5056},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5065":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5066":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5067":{"_Position":{"__isSmartRef__":true,"id":5068},"renderContextTable":{"__isSmartRef__":true,"id":5069},"_Extent":{"__isSmartRef__":true,"id":5070},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4877},"_Fill":{"__isSmartRef__":true,"id":4878},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5068":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5069":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5070":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5071":{"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"},"5072":{"morph":{"__isSmartRef__":true,"id":5055},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5073":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5074":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5075":{"stops":[{"__isSmartRef__":true,"id":5076},{"__isSmartRef__":true,"id":5078},{"__isSmartRef__":true,"id":5080},{"__isSmartRef__":true,"id":5082}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5076":{"offset":0,"color":{"__isSmartRef__":true,"id":5077}},"5077":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5078":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5079}},"5079":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5080":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5081}},"5081":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5082":{"offset":1,"color":{"__isSmartRef__":true,"id":5083}},"5083":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5084":{"sourceObj":{"__isSmartRef__":true,"id":5055},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4993},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5085},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5085":{"source":{"__isSmartRef__":true,"id":5055},"target":{"__isSmartRef__":true,"id":4993}},"5086":{"sourceObj":{"__isSmartRef__":true,"id":5055},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4993},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5087},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5087":{"source":{"__isSmartRef__":true,"id":5055},"target":{"__isSmartRef__":true,"id":4993}},"5088":{"submorphs":[{"__isSmartRef__":true,"id":5089}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5100},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":5104},"eventHandler":{"__isSmartRef__":true,"id":5105},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5106},"priorExtent":{"__isSmartRef__":true,"id":5107},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4878},"lighterFill":{"__isSmartRef__":true,"id":5108},"label":{"__isSmartRef__":true,"id":5089},"owner":{"__isSmartRef__":true,"id":5008},"layout":{"__isSmartRef__":true,"id":5117},"attributeConnections":[{"__isSmartRef__":true,"id":5118},{"__isSmartRef__":true,"id":5120}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"5089":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5090},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":5094},"textChunks":[{"__isSmartRef__":true,"id":5095}],"eventHandler":{"__isSmartRef__":true,"id":5097},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":4870},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":5098},"priorExtent":{"__isSmartRef__":true,"id":5099},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5088},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"5090":{"_Position":{"__isSmartRef__":true,"id":5091},"renderContextTable":{"__isSmartRef__":true,"id":5092},"_Extent":{"__isSmartRef__":true,"id":5093},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4836},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5091":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5092":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5093":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5094":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5095":{"style":{"__isSmartRef__":true,"id":5096},"chunkOwner":{"__isSmartRef__":true,"id":5089},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5096":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5097":{"morph":{"__isSmartRef__":true,"id":5089},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5098":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5099":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5100":{"_Position":{"__isSmartRef__":true,"id":5101},"renderContextTable":{"__isSmartRef__":true,"id":5102},"_Extent":{"__isSmartRef__":true,"id":5103},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4877},"_Fill":{"__isSmartRef__":true,"id":4878},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5101":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5102":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5103":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5104":{"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"},"5105":{"morph":{"__isSmartRef__":true,"id":5088},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5106":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5107":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5108":{"stops":[{"__isSmartRef__":true,"id":5109},{"__isSmartRef__":true,"id":5111},{"__isSmartRef__":true,"id":5113},{"__isSmartRef__":true,"id":5115}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5109":{"offset":0,"color":{"__isSmartRef__":true,"id":5110}},"5110":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5111":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5112}},"5112":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5113":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5114}},"5114":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5115":{"offset":1,"color":{"__isSmartRef__":true,"id":5116}},"5116":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5117":{"moveHorizontal":true},"5118":{"sourceObj":{"__isSmartRef__":true,"id":5088},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4993},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5119},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5119":{"source":{"__isSmartRef__":true,"id":5088},"target":{"__isSmartRef__":true,"id":4993}},"5120":{"sourceObj":{"__isSmartRef__":true,"id":5088},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4993},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5121},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5121":{"source":{"__isSmartRef__":true,"id":5088},"target":{"__isSmartRef__":true,"id":4993}},"5122":{"_Position":{"__isSmartRef__":true,"id":5123},"renderContextTable":{"__isSmartRef__":true,"id":5124},"_Extent":{"__isSmartRef__":true,"id":5125},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4977},"_Fill":{"__isSmartRef__":true,"id":5126},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5123":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5125":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5126":{"stops":[{"__isSmartRef__":true,"id":5127},{"__isSmartRef__":true,"id":5129},{"__isSmartRef__":true,"id":5131}],"vector":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5127":{"offset":0,"color":{"__isSmartRef__":true,"id":5128}},"5128":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5129":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5130}},"5130":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5131":{"offset":1,"color":{"__isSmartRef__":true,"id":5132}},"5132":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5133":{"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"},"5134":{"morph":{"__isSmartRef__":true,"id":5008},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5135":{"resizeWidth":true,"adjustForNewBounds":true},"5136":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5137":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5138":{"renderContextTable":{"__isSmartRef__":true,"id":5139},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":5140},"_Position":{"__isSmartRef__":true,"id":5141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5139":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5140":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5141":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5142":{"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"},"5143":{"morph":{"__isSmartRef__":true,"id":4993},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5144":{"adjustForNewBounds":true},"5145":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5146":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5147":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"5148":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5149":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"5150":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5151":{"x":1507,"y":76,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5152":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5153":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5154":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5155":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5156":{"submorphs":[{"__isSmartRef__":true,"id":5157}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":5171},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5186},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5174},"lighterFill":{"__isSmartRef__":true,"id":5187},"label":{"__isSmartRef__":true,"id":5157},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":5196},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":5197},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":5198},"renderContextTable":{"__isSmartRef__":true,"id":5199},"eventHandler":{"__isSmartRef__":true,"id":5200},"__LivelyClassName__":"lively.morphic.Button"},"5157":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":5158},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5163},"textColor":{"__isSmartRef__":true,"id":5161},"owner":{"__isSmartRef__":true,"id":5156},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":5164}],"padding":{"__isSmartRef__":true,"id":5166},"_Padding":{"__isSmartRef__":true,"id":5167},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":5168},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":5169},"eventHandler":{"__isSmartRef__":true,"id":5170},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"5158":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5159},"_Extent":{"__isSmartRef__":true,"id":5160},"_BorderColor":{"__isSmartRef__":true,"id":5161},"renderContextTable":{"__isSmartRef__":true,"id":5162},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5159":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5160":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5161":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5162":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5163":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5164":{"style":{"__isSmartRef__":true,"id":5165},"chunkOwner":{"__isSmartRef__":true,"id":5157},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5165":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5166":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5167":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5168":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5169":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5170":{"morph":{"__isSmartRef__":true,"id":5157},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5171":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5172},"_Extent":{"__isSmartRef__":true,"id":5173},"_Fill":{"__isSmartRef__":true,"id":5174},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5184},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":5185},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5172":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5173":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5174":{"stops":[{"__isSmartRef__":true,"id":5175},{"__isSmartRef__":true,"id":5177},{"__isSmartRef__":true,"id":5179},{"__isSmartRef__":true,"id":5181}],"vector":{"__isSmartRef__":true,"id":5183},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5175":{"offset":0,"color":{"__isSmartRef__":true,"id":5176}},"5176":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5177":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5178}},"5178":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5179":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5180}},"5180":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5181":{"offset":1,"color":{"__isSmartRef__":true,"id":5182}},"5182":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5183":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5184":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5185":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5186":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5187":{"stops":[{"__isSmartRef__":true,"id":5188},{"__isSmartRef__":true,"id":5190},{"__isSmartRef__":true,"id":5192},{"__isSmartRef__":true,"id":5194}],"vector":{"__isSmartRef__":true,"id":5183},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5188":{"offset":0,"color":{"__isSmartRef__":true,"id":5189}},"5189":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5190":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5191}},"5191":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5192":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5193}},"5193":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5194":{"offset":1,"color":{"__isSmartRef__":true,"id":5195}},"5195":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5196":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5197":{"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"},"5198":{"moveHorizontal":true},"5199":{"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"},"5200":{"morph":{"__isSmartRef__":true,"id":5156},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5201":{"submorphs":[],"scripts":[],"id":"19631DBE-B738-40C5-82B9-18476A048F4A","shape":{"__isSmartRef__":true,"id":5202},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5209},"itemList":["-- ALL --"],"selectedLineNo":0,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":5210},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":4660},"priorExtent":{"__isSmartRef__":true,"id":5211},"attributeConnections":[{"__isSmartRef__":true,"id":5212}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":5217},"renderContextTable":{"__isSmartRef__":true,"id":5218},"eventHandler":{"__isSmartRef__":true,"id":5219},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":5220},"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","FB5A3E84-4178-449A-8801-41031ECBD8CF","BCB2DFCC-6BDE-404C-AB55-3C87EF803204","D197A609-296B-4C41-A063-CC805CA05EBD","2F6D4B6E-FC33-4C41-9A4A-CCA4393B079A","D1BCAE00-1C80-497C-810C-52EB2A4AED57","1A941695-5536-49CB-9C79-2877B8003369","AD6DBDC7-DDC0-471A-94AC-6B54B4727A23","62AAABEB-BA98-4632-879D-19633063D84A","9C4331B9-D2E7-4DA7-92B2-CFAFF157EDE9","520A7A10-AF66-4EC0-8368-FF4E99D4D4FA","B77AAEB6-16DD-4FB6-8968-B7BB846A3321","5477FB53-A93A-4941-A8A3-ADBC1F4E25C9","1FBDD3A9-DB54-404E-8DBB-CADD60047AF4","66FF1778-8B7E-4DC6-B985-A07613FFCDDC","2E471AA9-0846-4C79-B599-3D558CFE2103","906A2C5E-9AE8-4FE6-A810-8A35E53E21C6","C18D664A-043F-428D-A5AD-3815D7B05B64","839C4FD7-C04C-4191-9D3B-B76D1260F88B"],"isLockOwner":false,"selection":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5221},"__LivelyClassName__":"lively.morphic.List"},"5202":{"position":{"__isSmartRef__":true,"id":5203},"_Extent":{"__isSmartRef__":true,"id":5204},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5205},"_Fill":{"__isSmartRef__":true,"id":5206},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":5207},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":5208},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5203":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5204":{"x":180,"y":74,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5205":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5206":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5207":{"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"},"5208":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5209":{"x":10,"y":441.5965565984398,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5210":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5211":{"x":180,"y":75,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5212":{"sourceObj":{"__isSmartRef__":true,"id":5201},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":4660},"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":5213},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5214},"__LivelyClassName__":"AttributeConnection"},"5213":{"source":{"__isSmartRef__":true,"id":5201},"target":{"__isSmartRef__":true,"id":4660}},"5214":{"converter":{"__isSmartRef__":true,"id":5215}},"5215":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":5213},"source":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":5216},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5216":{},"5217":{"resizeHeight":false,"moveVertical":true},"5218":{"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","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"},"5219":{"morph":{"__isSmartRef__":true,"id":5201},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5220":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5221":{"preselectItem":{"__isSmartRef__":true,"id":5222}},"5222":{"varMapping":{"__isSmartRef__":true,"id":5223},"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":5224},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5223":{"this":{"__isSmartRef__":true,"id":5201}},"5224":{"timestamp":{"__isSmartRef__":true,"id":5225},"user":"lauritz"},"5225":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (Mitteleuropäische Zeit)"},"5226":{"submorphs":[{"__isSmartRef__":true,"id":5227}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":5240},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5255},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5243},"lighterFill":{"__isSmartRef__":true,"id":5256},"label":{"__isSmartRef__":true,"id":5227},"attributeConnections":[{"__isSmartRef__":true,"id":5265}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":5266},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":5267},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":5268},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"5227":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":5228},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5233},"textColor":{"__isSmartRef__":true,"id":5231},"owner":{"__isSmartRef__":true,"id":5226},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":5234}],"padding":{"__isSmartRef__":true,"id":5236},"_Padding":{"__isSmartRef__":true,"id":5237},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":5238},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":5239},"__LivelyClassName__":"lively.morphic.Text"},"5228":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5229},"_Extent":{"__isSmartRef__":true,"id":5230},"_BorderColor":{"__isSmartRef__":true,"id":5231},"renderContextTable":{"__isSmartRef__":true,"id":5232},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5229":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5230":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5231":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5232":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"5233":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5234":{"style":{"__isSmartRef__":true,"id":5235},"chunkOwner":{"__isSmartRef__":true,"id":5227},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5235":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5236":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5237":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5238":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5239":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5240":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5241},"_Extent":{"__isSmartRef__":true,"id":5242},"_Fill":{"__isSmartRef__":true,"id":5243},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5253},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":5254},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5241":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5242":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5243":{"stops":[{"__isSmartRef__":true,"id":5244},{"__isSmartRef__":true,"id":5246},{"__isSmartRef__":true,"id":5248},{"__isSmartRef__":true,"id":5250}],"vector":{"__isSmartRef__":true,"id":5252},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5244":{"offset":0,"color":{"__isSmartRef__":true,"id":5245}},"5245":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5246":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5247}},"5247":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5248":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5249}},"5249":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5250":{"offset":1,"color":{"__isSmartRef__":true,"id":5251}},"5251":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5252":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5253":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5254":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"5255":{"x":215,"y":35,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5256":{"stops":[{"__isSmartRef__":true,"id":5257},{"__isSmartRef__":true,"id":5259},{"__isSmartRef__":true,"id":5261},{"__isSmartRef__":true,"id":5263}],"vector":{"__isSmartRef__":true,"id":5252},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5257":{"offset":0,"color":{"__isSmartRef__":true,"id":5258}},"5258":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5259":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5260}},"5260":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5261":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5262}},"5262":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5263":{"offset":1,"color":{"__isSmartRef__":true,"id":5264}},"5264":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5265":{"sourceObj":{"__isSmartRef__":true,"id":5226},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4678},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"5266":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5267":{"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"},"5268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"5269":{"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"},"5270":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5271":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":5272},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5279},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":5280},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":5281},"textChunks":[{"__isSmartRef__":true,"id":5282}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":5284}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"priorExtent":{"__isSmartRef__":true,"id":5286},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":5287},"eventHandler":{"__isSmartRef__":true,"id":5288},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":5289},"selection":{"__isSmartRef__":true,"id":5308},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":5630},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":5631},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5632},"__LivelyClassName__":"lively.morphic.Text"},"5272":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5273},"_Extent":{"__isSmartRef__":true,"id":5274},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5275},"renderContextTable":{"__isSmartRef__":true,"id":5276},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5277},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":5278},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5273":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5274":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5275":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5276":{"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"},"5277":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5278":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5279":{"x":200,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5280":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5281":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5282":{"style":{"__isSmartRef__":true,"id":5283},"chunkOwner":{"__isSmartRef__":true,"id":5271},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"5283":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5284":{"sourceObj":{"__isSmartRef__":true,"id":5271},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4660},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5285},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5285":{"source":{"__isSmartRef__":true,"id":5271},"target":{"__isSmartRef__":true,"id":4660}},"5286":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5287":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5288":{"morph":{"__isSmartRef__":true,"id":5271},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5289":{"createListMorph":{"__isSmartRef__":true,"id":5290},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":5292},"onMouseUp":{"__isSmartRef__":true,"id":5294},"resetConnections":{"__isSmartRef__":true,"id":5296},"setTargetToListSelection":{"__isSmartRef__":true,"id":5298},"setTargetOfPane":{"__isSmartRef__":true,"id":5300},"onBlur":{"__isSmartRef__":true,"id":5302},"reset":{"__isSmartRef__":true,"id":5304},"onMouseDown":{"__isSmartRef__":true,"id":5306}},"5290":{"time":{"__isSmartRef__":true,"id":5291},"user":"lauritz"},"5291":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5292":{"time":{"__isSmartRef__":true,"id":5293},"user":"lauritz"},"5293":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5294":{"time":{"__isSmartRef__":true,"id":5295},"user":"lauritz"},"5295":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5296":{"time":{"__isSmartRef__":true,"id":5297},"user":"lauritz"},"5297":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5298":{"time":{"__isSmartRef__":true,"id":5299},"user":"lauritz"},"5299":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5300":{"time":{"__isSmartRef__":true,"id":5301},"user":"lauritz"},"5301":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5302":{"time":{"__isSmartRef__":true,"id":5303},"user":"lauritz"},"5303":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5304":{"time":{"__isSmartRef__":true,"id":5305},"user":"lauritz"},"5305":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5306":{"time":{"__isSmartRef__":true,"id":5307},"user":"lauritz"},"5307":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5308":{"submorphs":[{"__isSmartRef__":true,"id":5309},{"__isSmartRef__":true,"id":4660},{"__isSmartRef__":true,"id":5451}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5491},"id":"C57B5B16-FAA9-43E0-A466-2E7C7B7906BC","renderContextTable":{"__isSmartRef__":true,"id":5496},"eventHandler":{"__isSmartRef__":true,"id":5497},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":5498},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":5499},"targetMorph":{"__isSmartRef__":true,"id":4660},"titleBar":{"__isSmartRef__":true,"id":5309},"contentOffset":{"__isSmartRef__":true,"id":5500},"collapsedTransform":{"__isSmartRef__":true,"id":5501},"collapsedExtent":{"__isSmartRef__":true,"id":5502},"expandedTransform":{"__isSmartRef__":true,"id":5503},"expandedExtent":{"__isSmartRef__":true,"id":5493},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5504},"name":"ObjectEditorII","prevDragPos":{"__isSmartRef__":true,"id":5603},"highlighted":false,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":5604},"collapsedPosition":{"__isSmartRef__":true,"id":5605},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":5606},"minExtent":{"__isSmartRef__":true,"id":5607},"isCopyMorphRef":true,"morphRefId":16,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","2F4F6161-9F4C-469E-AF56-24765FF03B72","58EC57DC-8315-4719-A172-B8CB71626D4D","DE0F9B83-648D-485C-A280-0F502D8C235D","E7EA05EC-5284-40AB-B37D-D3CB714309D1","EEE752B9-0724-4838-97B5-D5799F53CDE3","DB26118F-70D8-4BE5-9462-E1C66BA1B4FE","AF132B74-7C8A-461B-8EB4-862782A1E998","1E865865-0C88-48E9-86D6-FA10125E908C","43791A54-C094-4557-AE88-4FE8FC267739","950095AB-80F8-4002-92F9-351E37E732BC","41335AA9-566D-4539-8539-03070B57CF54","C1C31792-C6DA-40F7-8ED1-F729DD53B314","750086A9-5E62-4AF5-A858-CADF3C372527","28EF09F8-2A8C-425D-B096-A00BB2CBE90C","6CE3FC04-A2C3-4B10-AF04-8CEAF50882B8","73786986-EE37-496B-BA2E-5A2C7FBB0EBE","F74B28B1-E5DA-4B32-AEBD-D0F5D443A8C7","F86FF559-8C76-4696-AB9B-1AED4104876C","770C2947-E2F0-41AE-A93B-C7A1364A7B06"],"_Position":{"__isSmartRef__":true,"id":5608},"moved":true,"headRevision":144010,"helperMorphs":[{"__isSmartRef__":true,"id":5451}],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.0325340367393303,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5609},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"5309":{"submorphs":[{"__isSmartRef__":true,"id":5310},{"__isSmartRef__":true,"id":5324},{"__isSmartRef__":true,"id":5371},{"__isSmartRef__":true,"id":5405}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5440},"id":"AB6CAF10-1481-4FBD-859D-4D387AB6E887","renderContextTable":{"__isSmartRef__":true,"id":5446},"eventHandler":{"__isSmartRef__":true,"id":5447},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5448},"_Position":{"__isSmartRef__":true,"id":5449},"windowMorph":{"__isSmartRef__":true,"id":5308},"label":{"__isSmartRef__":true,"id":5310},"closeButton":{"__isSmartRef__":true,"id":5324},"menuButton":{"__isSmartRef__":true,"id":5371},"collapseButton":{"__isSmartRef__":true,"id":5405},"priorExtent":{"__isSmartRef__":true,"id":5450},"owner":{"__isSmartRef__":true,"id":5308},"prevScroll":[0,0],"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"derivationIds":[228,"084DFF55-BC61-4772-8BF7-F6A87C08DE9F","D22EFB93-AC9B-4FCE-9464-3B314FFA4C11","A5F9692A-C657-42B0-B8AA-D2E922A1DE8D","C47683FE-BA01-4AAB-BDE0-4862C049BCE7","BD427B66-7BE7-4205-84EC-825840E59F49","9C39A352-DBDD-48CE-BEB0-99806EDB5253","9155C34E-3B30-49D6-8104-1B3E35894B06","038C41CD-8115-4929-A819-614838469876","0B3A1236-6541-462E-A0DA-4DD4334B1E95","4A03FC08-91FC-4B9E-A8CF-444C13557D64","D2E85938-1A44-483C-BC19-6890905EAF7C","16109ED9-45A0-4E30-A4D3-5A69F009EC73","743898AD-60D2-4174-B69C-735AB7E7AED7","CFD72C33-1A9D-40D3-BA14-F0CBA32B1E4D","717FA383-5AAE-401B-A39C-5B168B3441CB","4D9E17E1-3445-4D3C-AC12-6EC1E5F7FC35","97CCF8DE-F214-4441-B588-093FF282A4CE","CA999096-DBBB-4D7D-8033-CB89D51826CE","5D673BC0-C0F8-4D84-B707-2412747FB7C1","F7EE9019-F0BE-4228-804F-FE3C0D8C2A62","B275D574-73C7-414E-BB57-DDCDAEA4A094","35BDBA8E-595E-4006-A32D-830B7B3D0161","BF170673-7C35-40DB-86AF-277138B472EA","1EC5BDEC-767D-4104-82C5-3F9114BC15DB"],"_Scale":1,"__LivelyClassName__":"lively.morphic.TitleBar"},"5310":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5311},"id":"9DEB8C7C-15C8-4CCA-A2F7-437E9F421982","renderContextTable":{"__isSmartRef__":true,"id":5317},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5318}],"eventHandler":{"__isSmartRef__":true,"id":5320},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":5321},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5309},"priorExtent":{"__isSmartRef__":true,"id":5322},"_MaxTextWidth":850,"_MinTextWidth":850,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":5323},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[229,"D760A244-216E-4A66-8201-25AFC3AB6CC3","D0DE1BA6-E69D-4C19-A257-9D846EA6D12C","7590D64D-7524-4378-BB7E-845EC8CAE745","8996B9DB-C10E-41E4-8286-056BBCF8E151","18942143-8626-4D26-A7D9-153295EE4B23","A410C3F9-F31A-4BC9-A998-ABA33334F720","0B3F1662-6D46-4019-A24D-7AAECB73626F","0B244CD7-A42C-4BE0-81A2-03E0E77725EF","FF9B9907-4862-4F76-B93C-D54F30250E6C","107E15B2-2805-482B-A640-0A01541CD45E","F4E65D5B-0E22-4578-8E71-626872CE1ACD","EB865B9F-2B55-445A-BFD9-8719ED149D24","B6295182-382E-4EB0-945A-A3F99D630BA5","05DA8782-84A7-448C-972E-5476B0A415AB","F942C2FF-AE24-44F8-AF97-894FCEE84F12","82DA4364-0790-47DA-8CA5-BCF5CFCBA94F","A1D212B5-6929-4C07-86F3-AF0454F2F202","6BEAE6F4-DD32-4DCC-A5C6-706EFB7B79B2","3B800965-72C4-48B9-8EA8-FE054D0D5ED5","1AB2693B-185E-4EA1-BC1E-F9BA2A780C7E","06A5F8E6-3085-47E8-81BE-0A6A6FE8638D","A8BEB6B1-C2F1-4A63-BAE7-EA6BB33B9F32","8F28D97B-BFAE-4D70-AFFC-9094F6A91C8B","2481F42A-1AE6-4188-806F-A37BEE16727F"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"5311":{"_Position":{"__isSmartRef__":true,"id":5312},"renderContextTable":{"__isSmartRef__":true,"id":5313},"_Extent":{"__isSmartRef__":true,"id":5314},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5315},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5316},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5312":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5313":{"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"},"5314":{"x":850,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5315":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5316":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5317":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5318":{"style":{"__isSmartRef__":true,"id":5319},"chunkOwner":{"__isSmartRef__":true,"id":5310},"storedString":"ObjectEditorII","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5319":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5320":{"morph":{"__isSmartRef__":true,"id":5310},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5321":{"resizeWidth":true},"5322":{"x":850,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5323":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5324":{"submorphs":[{"__isSmartRef__":true,"id":5325}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5337},"id":"1AB3D35E-5352-4835-9D84-9526C8823571","renderContextTable":{"__isSmartRef__":true,"id":5353},"eventHandler":{"__isSmartRef__":true,"id":5354},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":5355},"priorExtent":{"__isSmartRef__":true,"id":5356},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5343},"lighterFill":{"__isSmartRef__":true,"id":5357},"label":{"__isSmartRef__":true,"id":5325},"owner":{"__isSmartRef__":true,"id":5309},"layout":{"__isSmartRef__":true,"id":5366},"attributeConnections":[{"__isSmartRef__":true,"id":5367},{"__isSmartRef__":true,"id":5369}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[230,"EE58E329-4B81-4ABE-A8D6-A3E1AA5BF908","418BD036-5123-49E3-A68D-B2CA74DD4EBA","AB2EC618-F852-4DB4-8601-C98F851F983A","84444904-5A59-41A9-9200-77C2DFC28F0A","BCDE4CA6-1D56-45F5-980B-4BF689C874DD","C3377671-C2BC-4F1B-93B3-CF0083C27FC9","2D469D99-74EA-4904-ADBD-8E8C39C814FD","429CEEAC-CC42-4608-9C41-C9676F0BCF6A","A6B8AFCC-FEDE-4669-BB2C-9A358EA897B0","56C2FB7A-2E1F-4090-9876-4D8C5EC15F3F","CC62FEBA-D10E-46B9-809E-35C4CE4916F0","E08C6608-3C8C-4CC8-9B6E-DEB8195E4AD9","2ED775E3-5960-477B-87D8-5AF2A144E6C1","99BF476C-07EA-48D2-A07E-9BB0C6F91A0C","2A1CB8F4-8D85-4831-9B72-F12AB6DC19B4","279599AC-08D5-411C-B8BE-F3A5A398436D","F6A9410F-34B0-4137-ACCE-28DDFF0BF139","F49A7855-87E7-4BA2-9846-5CA88CA6B219","86686CA1-2E5C-43FF-8B10-ABA2A409C62F","643D118D-C5B1-4EE0-BD98-80D2408C1D95","41C3426C-23F8-43B4-9E28-F658B3C857C3","E03345F6-C3FD-4C75-9AF6-8892D2E06578","B7C1A086-1561-4758-8238-912D74370C99","070763CA-8A80-49AD-BAE0-7385247FFF9D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"5325":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5326},"id":"22C15A39-CDB6-4870-A532-4BE57C742ADF","renderContextTable":{"__isSmartRef__":true,"id":5331},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5332}],"eventHandler":{"__isSmartRef__":true,"id":5334},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":5335},"priorExtent":{"__isSmartRef__":true,"id":5336},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5324},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[231,"8DB42E03-8473-4B83-81E2-61EE04DF890A","B50E6B6E-F836-4B3E-8AD1-2B34DA86CE3B","60439D94-5083-4977-8470-BD8843FF782A","5EC44375-A7D5-4BD3-AFC7-C507DF8D60C8","5BDCC4F6-C579-4A6F-96BB-2F59131EFD32","712DF12F-50C4-4EEB-9C4C-47A4DC15E968","ED7BFA5F-B5DB-4DB5-84E4-699236191282","EE9D65CF-21A9-44C8-8974-6B51367097C5","4887DDD2-CC2A-413D-9AA9-62B54FD5EE26","2C6984C1-1F18-4BD3-BDD6-36827E4F4D81","0A2A31C5-D3D7-4DF1-ADBA-2DB2EADE6A20","535430DD-C9F4-4984-B276-D06CB75FDEC4","468431E0-4902-41E1-9C66-29AD70FFA36A","AC8A3705-5E34-45E5-A04D-34CA3106DA3B","B3A0816F-C795-4F27-860B-A34A337E15BA","3A1671F1-7360-4A54-8B73-C1F1147ABD06","765E18F2-0202-44D3-8961-E50BCBDF1247","3F931E50-1B28-4D00-85CA-8D1944B905C1","0CE41A6E-D8F8-4990-B407-A5D67C5B24F2","69AC61AA-59B1-4EDD-80D7-28EC4A02125B","63BD31EF-031D-4086-A6C5-9BDBC38428A3","6A0D1180-723C-434E-844F-FEE9C7C3CB1E","B9D97B0C-F332-48D2-A5BD-535ED61A4613","2ECE5E5B-41B8-49E8-ABA8-1838F77A0A61"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"5326":{"_Position":{"__isSmartRef__":true,"id":5327},"renderContextTable":{"__isSmartRef__":true,"id":5328},"_Extent":{"__isSmartRef__":true,"id":5329},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5330},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5316},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5327":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5328":{"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"},"5329":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5330":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5331":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5332":{"style":{"__isSmartRef__":true,"id":5333},"chunkOwner":{"__isSmartRef__":true,"id":5325},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"5333":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5334":{"morph":{"__isSmartRef__":true,"id":5325},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5335":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5336":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5337":{"_Position":{"__isSmartRef__":true,"id":5338},"renderContextTable":{"__isSmartRef__":true,"id":5339},"_Extent":{"__isSmartRef__":true,"id":5340},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5341},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5342},"_Fill":{"__isSmartRef__":true,"id":5343},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5338":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5339":{"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"},"5340":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5341":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5342":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5343":{"stops":[{"__isSmartRef__":true,"id":5344},{"__isSmartRef__":true,"id":5346},{"__isSmartRef__":true,"id":5348},{"__isSmartRef__":true,"id":5350}],"vector":{"__isSmartRef__":true,"id":5352},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5344":{"offset":0,"color":{"__isSmartRef__":true,"id":5345}},"5345":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5346":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5347}},"5347":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5348":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5349}},"5349":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5350":{"offset":1,"color":{"__isSmartRef__":true,"id":5351}},"5351":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5352":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5353":{"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"},"5354":{"morph":{"__isSmartRef__":true,"id":5324},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5355":{"x":889,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5356":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5357":{"stops":[{"__isSmartRef__":true,"id":5358},{"__isSmartRef__":true,"id":5360},{"__isSmartRef__":true,"id":5362},{"__isSmartRef__":true,"id":5364}],"vector":{"__isSmartRef__":true,"id":5352},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5358":{"offset":0,"color":{"__isSmartRef__":true,"id":5359}},"5359":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5360":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5361}},"5361":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5362":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5363}},"5363":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5364":{"offset":1,"color":{"__isSmartRef__":true,"id":5365}},"5365":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5366":{"moveHorizontal":true},"5367":{"sourceObj":{"__isSmartRef__":true,"id":5324},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5308},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5368},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5368":{"source":{"__isSmartRef__":true,"id":5324},"target":{"__isSmartRef__":true,"id":5308}},"5369":{"sourceObj":{"__isSmartRef__":true,"id":5324},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5308},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5370},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5370":{"source":{"__isSmartRef__":true,"id":5324},"target":{"__isSmartRef__":true,"id":5308}},"5371":{"submorphs":[{"__isSmartRef__":true,"id":5372}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5383},"id":"1E3CB945-2060-4456-B5DA-C773D9177248","renderContextTable":{"__isSmartRef__":true,"id":5388},"eventHandler":{"__isSmartRef__":true,"id":5389},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":5390},"priorExtent":{"__isSmartRef__":true,"id":5391},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5343},"lighterFill":{"__isSmartRef__":true,"id":5392},"label":{"__isSmartRef__":true,"id":5372},"owner":{"__isSmartRef__":true,"id":5309},"attributeConnections":[{"__isSmartRef__":true,"id":5401},{"__isSmartRef__":true,"id":5403}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[232,"F393CBFF-A15D-4D1D-A3A3-DA0C7EF93B66","5BC57B43-1661-4C92-827E-E6CCB6E519E1","DDA3D28B-E4EA-4F17-9B68-D6964E9A2524","93D34CE0-A8E8-43DA-AA3B-3B32912E0BC1","93EA3F6A-3D2D-41E5-8FBD-16CDD8BD7946","C32E10BE-5DA5-46B4-B508-BDA50452B006","CC1276C9-ED83-4AF2-BBA6-C48E9EAB5CD1","56C5E2C4-F97D-4CF1-82AF-0B18C31D25C9","50008CCC-C0F2-41F6-A456-DAF0215CB54D","D3531495-C59E-48DB-98D7-D4A3CA277E39","D01082A5-3AC5-4674-8D3C-2B977409954F","AD790EE3-3254-4265-90AD-FD0616D1E611","76E2E38C-81D0-4FD1-8648-A4DC5B93D4CE","29634E2F-3EC6-48C3-965E-8E343472646A","BF7D257E-F3AB-4E45-826B-35C985E446A9","835D4BE4-B8F4-43CE-B7FB-9A5598C39E3D","FB89A742-4748-4F54-8CE7-53768ADB16AF","AB2F727E-127F-44B7-86C8-231FA6F94DA3","594A50E5-5E7A-4853-A29D-C22676352BAC","5DEB360D-1DCF-45D1-ACDB-E18D002856CB","4A7EFECD-F846-4DC7-88FA-3D6D56BB3467","A4C59E97-B95B-4702-8D7A-F7A02949C354","25ABB5F8-1002-4F73-B510-518CBF7E8ECF","B36CCBB0-07EF-4C9E-B4C4-FE72406BEFDE"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"5372":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5373},"id":"52ABF6CE-BDEC-4037-ABC1-FEE3DECC569C","renderContextTable":{"__isSmartRef__":true,"id":5377},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5378}],"eventHandler":{"__isSmartRef__":true,"id":5380},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":5381},"priorExtent":{"__isSmartRef__":true,"id":5382},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5371},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[233,"E1DC624A-DE6A-4680-92DA-803BFFE6CD54","2EB42409-E0C2-408B-8F84-EDF9EBFB2590","0684F49F-5338-4D44-82C9-5A4E2D62EE72","0B73719D-BC87-4B8D-890D-30C0714B5584","90D2BAAA-EB9D-45AF-8770-9616421A5762","1FAA3617-0517-49D7-ADCB-15357C49A9BB","D7DDAA7A-0844-4088-AD69-31F262417ED2","B1F33DD6-A075-4CAD-9AA1-BC3390582216","04542550-2A0D-4C4B-B8C4-3FA687A6672A","EAF87EA4-D634-4F9E-B28B-1E838E517FDC","A4251D42-5DD3-4C6C-959E-ECD6FC21A9FB","E22F30C1-E3DB-4505-BE97-6725EED8AC3C","F79DDA22-1EC9-431B-9D26-76354D2F21A6","5D8AC438-CAA8-4AC7-B485-EC837E3F66A1","5CDAFA89-DF38-46A3-BCA7-B9F1371B5018","D0AAD93C-1850-43CB-8F5E-5A8177178A60","D0B54DB1-D5FE-46AC-B89C-BBC7FCE3FA7E","BE9DB081-9E3C-4EF3-BF1B-173C9DFF435B","9C754AA4-12C9-4403-B85E-EA361285C72B","C09E9B93-64DA-439C-93CE-2FF26166685F","59AE3B3B-F579-4322-B7FE-D0FF20C1AF23","71CF2264-4FEF-47AD-997C-ACBCB4001C0C","446BB4C4-D7E5-40AD-AA88-9322394C5BA0","2E91C6CA-8379-466A-823E-8EDAC7321CDE"],"showsHalos":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"5373":{"_Position":{"__isSmartRef__":true,"id":5374},"renderContextTable":{"__isSmartRef__":true,"id":5375},"_Extent":{"__isSmartRef__":true,"id":5376},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5330},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5316},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5374":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5375":{"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"},"5376":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5377":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5378":{"style":{"__isSmartRef__":true,"id":5379},"chunkOwner":{"__isSmartRef__":true,"id":5372},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"5379":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5380":{"morph":{"__isSmartRef__":true,"id":5372},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5381":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5382":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5383":{"_Position":{"__isSmartRef__":true,"id":5384},"renderContextTable":{"__isSmartRef__":true,"id":5385},"_Extent":{"__isSmartRef__":true,"id":5386},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5387},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5342},"_Fill":{"__isSmartRef__":true,"id":5343},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5384":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5385":{"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"},"5386":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5387":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5388":{"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"},"5389":{"morph":{"__isSmartRef__":true,"id":5371},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5390":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5391":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5392":{"stops":[{"__isSmartRef__":true,"id":5393},{"__isSmartRef__":true,"id":5395},{"__isSmartRef__":true,"id":5397},{"__isSmartRef__":true,"id":5399}],"vector":{"__isSmartRef__":true,"id":5352},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5393":{"offset":0,"color":{"__isSmartRef__":true,"id":5394}},"5394":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5395":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5396}},"5396":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5397":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5398}},"5398":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5399":{"offset":1,"color":{"__isSmartRef__":true,"id":5400}},"5400":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5401":{"sourceObj":{"__isSmartRef__":true,"id":5371},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5308},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5402},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5402":{"source":{"__isSmartRef__":true,"id":5371},"target":{"__isSmartRef__":true,"id":5308}},"5403":{"sourceObj":{"__isSmartRef__":true,"id":5371},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5308},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5404},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5404":{"source":{"__isSmartRef__":true,"id":5371},"target":{"__isSmartRef__":true,"id":5308}},"5405":{"submorphs":[{"__isSmartRef__":true,"id":5406}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5417},"id":"AB1ED9AB-0577-4344-B44E-3E622E5775F2","renderContextTable":{"__isSmartRef__":true,"id":5422},"eventHandler":{"__isSmartRef__":true,"id":5423},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":5424},"priorExtent":{"__isSmartRef__":true,"id":5425},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5343},"lighterFill":{"__isSmartRef__":true,"id":5426},"label":{"__isSmartRef__":true,"id":5406},"owner":{"__isSmartRef__":true,"id":5309},"layout":{"__isSmartRef__":true,"id":5435},"attributeConnections":[{"__isSmartRef__":true,"id":5436},{"__isSmartRef__":true,"id":5438}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[234,"EC7EDE8E-294A-46CF-85BB-BBC525336E13","F24B29EE-0964-499D-834F-E3D087DC6003","F6F3659F-9229-46AA-9B9E-46627A7062B2","A88C4D93-582A-4C0D-9F97-F2F0E291BB7E","AA05682F-3E98-433C-8C01-422A46068DFC","A12AF6EA-E1A6-4527-8E16-D276C19A3A0E","D6D2F9BB-BC40-4D97-90D0-AC592B5EF3E3","3FA2ECBA-A473-4DA1-88A1-C16F6851C167","4640C1C2-8858-480F-B2D6-2F040D15791E","55E3FFB5-8BF7-46FB-AE3B-4FBAF9DDB3A5","0AAE936D-D5A4-4463-9A04-0DA5F20EFE5E","51E8CD45-C977-43A9-9C88-D9AE500CCFBF","98F242AE-C46F-43A0-8C79-A01216EE16B7","3990EBE2-35D0-484A-A25A-8C400242EFD6","BDB6A230-3E01-4C8A-8481-8E5CEC07BCC5","F96D0665-235C-4418-8365-C951BE43B13D","5924C6B8-0043-4009-BD68-7F4BC67E020F","374D9990-ED01-4A34-A6C9-FC15E6AD4D21","B82DB942-C403-4E89-91D7-931D7239311A","D78670CE-702B-4399-8BFC-A174FCF326E2","CB5E613D-27D6-4ED6-96B9-C5ED54DAD8AC","C775E861-5908-4C20-A772-CB374C51F463","E7F795A0-D6C4-4B73-BA7B-63FFEF2E32AD","3D6A0CF7-271B-49C5-8A3E-5EC6D3F1E000"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"5406":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5407},"id":"42C1CCC9-CF2E-417E-9923-175B09464EB5","renderContextTable":{"__isSmartRef__":true,"id":5411},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5412}],"eventHandler":{"__isSmartRef__":true,"id":5414},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":5415},"priorExtent":{"__isSmartRef__":true,"id":5416},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5405},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[235,"F92ECC97-5F5B-4CDA-A829-270D000F0D88","A7CDAD5D-BCA1-4AF0-A092-9E81DF1F5C1B","35639FEE-51E8-4469-BB0E-5D1650F1E695","65EBC411-8078-4C93-9A62-F3E8D325DBA7","3F66B345-86BE-4AF4-84FC-BA468E960283","5CA475ED-1D1C-4934-9671-012AA9BAA280","171F91BA-72DC-4B4C-834D-17D9A37D542C","25EE1C68-F2F7-4691-96B4-47BAA32962E7","4EA253C5-C061-4050-8E72-D13DC316435F","C03615F7-AFE0-450E-B560-F69749FFCDC6","E8C83EA9-5C0F-41C0-9326-9F6903A25640","D5C6B62E-D91F-4F83-A84F-B1F64F5E6147","6CEA5977-9C12-4D16-B31A-F985088C4946","0B943E84-EC74-4ABE-9581-7C7EE0F69BA5","CED2F1F3-ED3C-454B-935B-6D7E79B74279","7E365848-F0E7-477A-AC38-C80F16CB8024","D2592E55-9080-48D4-9B2C-43BD80D0579E","AC759356-E99D-4E48-9DBF-041E75EACE54","0EC3D3E4-4109-4E0A-B648-86D8E14F3FBB","BDAFE14E-F3C9-4C6C-95CE-47B805C9DA9D","93A1B7D0-7CFE-4392-AD0C-D5EA97832D32","2A6D9746-236E-43BA-8F60-6F06B62DCE15","B4D4D9DA-601A-4B87-B19A-2D0C217FFBFB","C4CEA086-AB58-46F6-B0E6-A69F53631C77"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"5407":{"_Position":{"__isSmartRef__":true,"id":5408},"renderContextTable":{"__isSmartRef__":true,"id":5409},"_Extent":{"__isSmartRef__":true,"id":5410},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5330},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5316},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5408":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5409":{"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"},"5410":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5411":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5412":{"style":{"__isSmartRef__":true,"id":5413},"chunkOwner":{"__isSmartRef__":true,"id":5406},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"5413":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5414":{"morph":{"__isSmartRef__":true,"id":5406},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5415":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5416":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5417":{"_Position":{"__isSmartRef__":true,"id":5418},"renderContextTable":{"__isSmartRef__":true,"id":5419},"_Extent":{"__isSmartRef__":true,"id":5420},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5421},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5342},"_Fill":{"__isSmartRef__":true,"id":5343},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5418":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5419":{"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"},"5420":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5421":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5422":{"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"},"5423":{"morph":{"__isSmartRef__":true,"id":5405},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5424":{"x":870,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5425":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5426":{"stops":[{"__isSmartRef__":true,"id":5427},{"__isSmartRef__":true,"id":5429},{"__isSmartRef__":true,"id":5431},{"__isSmartRef__":true,"id":5433}],"vector":{"__isSmartRef__":true,"id":5352},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5427":{"offset":0,"color":{"__isSmartRef__":true,"id":5428}},"5428":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5429":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5430}},"5430":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5431":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5432}},"5432":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5433":{"offset":1,"color":{"__isSmartRef__":true,"id":5434}},"5434":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5435":{"moveHorizontal":true},"5436":{"sourceObj":{"__isSmartRef__":true,"id":5405},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5308},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5437},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5437":{"source":{"__isSmartRef__":true,"id":5405},"target":{"__isSmartRef__":true,"id":5308}},"5438":{"sourceObj":{"__isSmartRef__":true,"id":5405},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5308},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5439},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5439":{"source":{"__isSmartRef__":true,"id":5405},"target":{"__isSmartRef__":true,"id":5308}},"5440":{"_Position":{"__isSmartRef__":true,"id":5441},"renderContextTable":{"__isSmartRef__":true,"id":5442},"_Extent":{"__isSmartRef__":true,"id":5443},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5444},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5445},"_Fill":{"__isSmartRef__":true,"id":2394},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5441":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5442":{"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"},"5443":{"x":909,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5444":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5445":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5446":{"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"},"5447":{"morph":{"__isSmartRef__":true,"id":5309},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5448":{"resizeWidth":true,"adjustForNewBounds":true},"5449":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5450":{"x":909,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5451":{"submorphs":[],"scripts":[],"id":"1B258515-F0BC-413F-85B1-570C644C89F8","shape":{"__isSmartRef__":true,"id":5452},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5459},"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":5460},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":5461},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":5462},"eventHandler":{"__isSmartRef__":true,"id":5463},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":5464},"owner":{"__isSmartRef__":true,"id":5308},"priorExtent":{"__isSmartRef__":true,"id":5465},"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"derivationIds":[227,"83D58336-D35B-44FB-9AB1-4467EC058CFA","0141EF2D-898D-4A88-93BF-1B9FEE7E56E6","F343780D-46A1-490F-8347-08939D52329C","DCD3B012-B22F-4037-B24A-FCF858D154D4","E6EDFE95-F114-4F7E-84D5-60B3212BC420","D39E5489-4C7C-4BB7-8D11-83F82F09FF84","78BD6FB2-78B0-4B1C-AFD4-B12FBA827D9B","967A6B89-0966-4E81-BFF6-400AD7F64B86","8B6A8256-9B5E-4822-84E8-DFE3A95116BD","21BBA862-699A-4CD4-98B3-6C5CE163B802","0010DACC-50E2-413F-8DE8-94FB07DBF527","29B566F6-2419-4416-8DC1-3B20D139A9C3","05238FD6-1DF5-4B30-B5AF-96295FAD1918","C341BD20-EC41-4ACB-9ED2-0B00F6C4F4AD","A59CAF2E-9075-4402-A636-FFCC0722CA56","9C5C2A00-B844-4897-BE94-92C89B751902","F51752D2-5590-439E-B557-2614E2CD0438","36BF873A-D4E0-48BE-8F3F-7FC2CB1762CB","AD40DE84-AC7D-4E02-8BB1-481B67EA94E3","45E51124-C8E7-4EC1-A2AB-47D583F8D033","DCCC74D1-3066-4D10-85C0-3B7798DF2D8C","0010D68A-9160-431D-BE7F-F8BF1D398E6F","3599E6E6-2036-4DEC-9297-307AE0AE38FE","56EEF51E-A57C-4398-9606-FB59AD2E2D30"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5466},"__LivelyClassName__":"lively.morphic.Box"},"5452":{"position":{"__isSmartRef__":true,"id":5453},"_Extent":{"__isSmartRef__":true,"id":5454},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5455},"_Fill":{"__isSmartRef__":true,"id":5456},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5458},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5453":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5454":{"x":13,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5455":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5456":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5457":{"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"},"5458":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5459":{"x":896,"y":533,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5460":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5461":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5462":{"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"},"5463":{"morph":{"__isSmartRef__":true,"id":5451},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5464":{"x":42.327599102410886,"y":-22.830104041830054,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5465":{"x":12,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5466":{"onDrag":{"__isSmartRef__":true,"id":5467},"onDragEnd":{"__isSmartRef__":true,"id":5475},"onDragStart":{"__isSmartRef__":true,"id":5483}},"5467":{"varMapping":{"__isSmartRef__":true,"id":5468},"source":"function onDrag(evt) {\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\tmoveDelta = pt(maxDelta, maxDelta);\n }\n this.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n this.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":5473},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5468":{"this":{"__isSmartRef__":true,"id":5451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5469}},"5469":{"$super":{"__isSmartRef__":true,"id":5470}},"5470":{"varMapping":{"__isSmartRef__":true,"id":5471},"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":5472},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5471":{"obj":{"__isSmartRef__":true,"id":5451},"name":"onDrag"},"5472":{},"5473":{"timestamp":{"__isSmartRef__":true,"id":5474},"user":"lauritz"},"5474":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Mitteleuropäische Zeit)"},"5475":{"varMapping":{"__isSmartRef__":true,"id":5476},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":5481},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5476":{"this":{"__isSmartRef__":true,"id":5451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5477}},"5477":{"$super":{"__isSmartRef__":true,"id":5478}},"5478":{"varMapping":{"__isSmartRef__":true,"id":5479},"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":5480},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5479":{"obj":{"__isSmartRef__":true,"id":5451},"name":"onDragEnd"},"5480":{},"5481":{"timestamp":{"__isSmartRef__":true,"id":5482},"user":"lauritz"},"5482":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Mitteleuropäische Zeit)"},"5483":{"varMapping":{"__isSmartRef__":true,"id":5484},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":5489},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5484":{"this":{"__isSmartRef__":true,"id":5451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5485}},"5485":{"$super":{"__isSmartRef__":true,"id":5486}},"5486":{"varMapping":{"__isSmartRef__":true,"id":5487},"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":5488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5487":{"obj":{"__isSmartRef__":true,"id":5451},"name":"onDragStart"},"5488":{},"5489":{"timestamp":{"__isSmartRef__":true,"id":5490},"user":"lauritz"},"5490":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (Mitteleuropäische Zeit)"},"5491":{"renderContextTable":{"__isSmartRef__":true,"id":5492},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":5493},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5494},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5495},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5492":{"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"},"5493":{"x":909,"y":547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5494":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5495":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5496":{"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"},"5497":{"morph":{"__isSmartRef__":true,"id":5308},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5498":{"adjustForNewBounds":true},"5499":{"x":909,"y":547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5500":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5501":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"5502":{"x":723,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5503":{"a":1.0325340367393303,"b":0,"c":0,"d":1.0325340367393303,"e":311,"f":1017,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"5504":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/BP2012/","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a morph.","partName":"ObjectEditorII","changes":[{"__isSmartRef__":true,"id":5505},{"__isSmartRef__":true,"id":5507},{"__isSmartRef__":true,"id":5509},{"__isSmartRef__":true,"id":5511},{"__isSmartRef__":true,"id":5513},{"__isSmartRef__":true,"id":5515},{"__isSmartRef__":true,"id":5517},{"__isSmartRef__":true,"id":5519},{"__isSmartRef__":true,"id":5521},{"__isSmartRef__":true,"id":5523},{"__isSmartRef__":true,"id":5525},{"__isSmartRef__":true,"id":5527},{"__isSmartRef__":true,"id":5529},{"__isSmartRef__":true,"id":5531},{"__isSmartRef__":true,"id":5533},{"__isSmartRef__":true,"id":5535},{"__isSmartRef__":true,"id":5537},{"__isSmartRef__":true,"id":5539},{"__isSmartRef__":true,"id":5541},{"__isSmartRef__":true,"id":5543},{"__isSmartRef__":true,"id":5545},{"__isSmartRef__":true,"id":5547},{"__isSmartRef__":true,"id":5549},{"__isSmartRef__":true,"id":5551},{"__isSmartRef__":true,"id":5553},{"__isSmartRef__":true,"id":5555},{"__isSmartRef__":true,"id":5557},{"__isSmartRef__":true,"id":5559},{"__isSmartRef__":true,"id":5561},{"__isSmartRef__":true,"id":5563},{"__isSmartRef__":true,"id":5565},{"__isSmartRef__":true,"id":5567},{"__isSmartRef__":true,"id":5569},{"__isSmartRef__":true,"id":5571},{"__isSmartRef__":true,"id":5573},{"__isSmartRef__":true,"id":5575},{"__isSmartRef__":true,"id":5577},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5581},{"__isSmartRef__":true,"id":5583},{"__isSmartRef__":true,"id":5585},{"__isSmartRef__":true,"id":5587},{"__isSmartRef__":true,"id":5589},{"__isSmartRef__":true,"id":5591},{"__isSmartRef__":true,"id":5593},{"__isSmartRef__":true,"id":5595},{"__isSmartRef__":true,"id":5597},{"__isSmartRef__":true,"id":5599},{"__isSmartRef__":true,"id":5601}],"revisionOnLoad":147126,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5505":{"date":{"__isSmartRef__":true,"id":5506},"author":"huberthesse","message":"","id":"F649F441-A0BF-4BAE-A26C-F7E863C4092A"},"5506":{"isSerializedDate":true,"string":"Wed Mar 14 2012 16:54:22 GMT+0100 (Mitteleuropäische Zeit)"},"5507":{"date":{"__isSmartRef__":true,"id":5508},"author":"robertkrahn","message":"- Tags text morph now is a input line, fixed a bug in generateSourceForScript()","id":"485A3064-009C-4A89-875B-D3BF1B1C0606"},"5508":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:12:32 GMT+0100 (Mitteleuropäische Zeit)"},"5509":{"date":{"__isSmartRef__":true,"id":5510},"author":"fabian","message":"","id":"50D90B40-1175-48A3-AC0E-10AC8884288A"},"5510":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:51:00 GMT+0100 (Mitteleuropäische Zeit)"},"5511":{"date":{"__isSmartRef__":true,"id":5512},"author":"fabian","message":"","id":"E39C79D4-9E74-47BA-A6EA-D0B861EB411D"},"5512":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:46:13 GMT+0100 (Mitteleuropäische Zeit)"},"5513":{"date":{"__isSmartRef__":true,"id":5514},"author":"fabian","message":"","id":"0714BC73-548D-4AF3-9A61-32FEE36C9B1F"},"5514":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:34:16 GMT+0100 (Mitteleuropäische Zeit)"},"5515":{"date":{"__isSmartRef__":true,"id":5516},"author":"fabian","message":"","id":"AEB64F75-685C-4BB8-8C69-D8EC60CBA91D"},"5516":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:14:57 GMT+0100 (Mitteleuropäische Zeit)"},"5517":{"date":{"__isSmartRef__":true,"id":5518},"author":"fabian","message":"","id":"EE9D6061-DD05-4FC8-B53A-21B93B9F5535"},"5518":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:57:12 GMT+0100 (Mitteleuropäische Zeit)"},"5519":{"date":{"__isSmartRef__":true,"id":5520},"author":"fabian","message":"","id":"112A906B-C79A-4CF2-BD2A-EEF9A6731634"},"5520":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:42:40 GMT+0100 (Mitteleuropäische Zeit)"},"5521":{"date":{"__isSmartRef__":true,"id":5522},"author":"fabian","message":"","id":"6FF4CD6F-6C92-449F-B2CA-20BFACE54E7A"},"5522":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:37:11 GMT+0100 (Mitteleuropäische Zeit)"},"5523":{"date":{"__isSmartRef__":true,"id":5524},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"5524":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (Mitteleuropäische Zeit)"},"5525":{"date":{"__isSmartRef__":true,"id":5526},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"5526":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (Mitteleuropäische Zeit)"},"5527":{"date":{"__isSmartRef__":true,"id":5528},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"5528":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (Mitteleuropäische Zeit)"},"5529":{"date":{"__isSmartRef__":true,"id":5530},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"5530":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (Mitteleuropäische Zeit)"},"5531":{"date":{"__isSmartRef__":true,"id":5532},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"5532":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (Mitteleuropäische Zeit)"},"5533":{"date":{"__isSmartRef__":true,"id":5534},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"5534":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (Mitteleuropäische Zeit)"},"5535":{"date":{"__isSmartRef__":true,"id":5536},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"5536":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (Mitteleuropäische Zeit)"},"5537":{"date":{"__isSmartRef__":true,"id":5538},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"5538":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (Mitteleuropäische Zeit)"},"5539":{"date":{"__isSmartRef__":true,"id":5540},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"5540":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (Mitteleuropäische Zeit)"},"5541":{"date":{"__isSmartRef__":true,"id":5542},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"5542":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (Mitteleuropäische Zeit)"},"5543":{"date":{"__isSmartRef__":true,"id":5544},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"5544":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5545":{"date":{"__isSmartRef__":true,"id":5546},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"5546":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5547":{"date":{"__isSmartRef__":true,"id":5548},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"5548":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (Mitteleuropäische Zeit)"},"5549":{"date":{"__isSmartRef__":true,"id":5550},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"5550":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (Mitteleuropäische Zeit)"},"5551":{"date":{"__isSmartRef__":true,"id":5552},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"5552":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (Mitteleuropäische Zeit)"},"5553":{"date":{"__isSmartRef__":true,"id":5554},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"5554":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (Mitteleuropäische Zeit)"},"5555":{"date":{"__isSmartRef__":true,"id":5556},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"5556":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (Mitteleuropäische Zeit)"},"5557":{"date":{"__isSmartRef__":true,"id":5558},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"5558":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (Mitteleuropäische Zeit)"},"5559":{"date":{"__isSmartRef__":true,"id":5560},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"5560":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (Mitteleuropäische Zeit)"},"5561":{"date":{"__isSmartRef__":true,"id":5562},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"5562":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (Mitteleuropäische Zeit)"},"5563":{"date":{"__isSmartRef__":true,"id":5564},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"5564":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (Mitteleuropäische Zeit)"},"5565":{"date":{"__isSmartRef__":true,"id":5566},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"5566":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (Mitteleuropäische Zeit)"},"5567":{"date":{"__isSmartRef__":true,"id":5568},"author":"lauritz","message":"tries to get user directly from localStorage now. if there's no user set, then we don't call CGI - logging into trac should not be necessary for developing parts.","id":"0F65058D-3BF4-4538-8B89-1267B58DE137"},"5568":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (Mitteleuropäische Zeit)"},"5569":{"date":{"__isSmartRef__":true,"id":5570},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"5570":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (Mitteleuropäische Zeit)"},"5571":{"date":{"__isSmartRef__":true,"id":5572},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"5572":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (Mitteleuropäische Zeit)"},"5573":{"date":{"__isSmartRef__":true,"id":5574},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"5574":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (Mitteleuropäische Zeit)"},"5575":{"date":{"__isSmartRef__":true,"id":5576},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"5576":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (Mitteleuropäische Zeit)"},"5577":{"date":{"__isSmartRef__":true,"id":5578},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"5578":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (Mitteleuropäische Zeit)"},"5579":{"date":{"__isSmartRef__":true,"id":5580},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"5580":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (Mitteleuropäische Zeit)"},"5581":{"date":{"__isSmartRef__":true,"id":5582},"author":"fbo","message":"","id":"EBED707C-49B0-4E5F-9DD8-FF84007B435E"},"5582":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:47:59 GMT+0100 (Mitteleuropäische Zeit)"},"5583":{"date":{"__isSmartRef__":true,"id":5584},"author":"fabian","message":"","id":"7D345E64-F67F-4266-AB55-590EB143327A"},"5584":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:08:57 GMT+0100 (Mitteleuropäische Zeit)"},"5585":{"date":{"__isSmartRef__":true,"id":5586},"author":"fabian","message":"","id":"1A435460-69B4-469B-909F-F2F395B97C4D"},"5586":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:09:30 GMT+0100 (Mitteleuropäische Zeit)"},"5587":{"date":{"__isSmartRef__":true,"id":5588},"author":"undefined","message":"","id":"121C044E-8723-4B1F-A9C5-54E73422CD05"},"5588":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:40:16 GMT+0100 (Mitteleuropäische Zeit)"},"5589":{"date":{"__isSmartRef__":true,"id":5590},"author":"fabian","message":"","id":"D2F5383B-1F99-477E-A66E-D92928DB7540"},"5590":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:52:22 GMT+0100 (Mitteleuropäische Zeit)"},"5591":{"date":{"__isSmartRef__":true,"id":5592},"author":"fabian","message":"","id":"350CA522-AD08-42D8-BB89-DA7D8BCAD0FB"},"5592":{"isSerializedDate":true,"string":"Wed Mar 07 2012 21:27:57 GMT+0100 (Mitteleuropäische Zeit)"},"5593":{"date":{"__isSmartRef__":true,"id":5594},"author":"fabian","message":"","id":"FABA3850-E4EF-4888-BCE9-BB4F9EC9C2D4"},"5594":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:50 GMT+0100 (Mitteleuropäische Zeit)"},"5595":{"date":{"__isSmartRef__":true,"id":5596},"author":"fabian","message":"","id":"31CF7B42-DEAF-4A50-A5A2-6745A92BF6DC"},"5596":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:48:03 GMT+0100 (Mitteleuropäische Zeit)"},"5597":{"date":{"__isSmartRef__":true,"id":5598},"author":"fabian","message":"","id":"00E45103-9D78-4178-A58F-03896AFF5CA3"},"5598":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:32 GMT+0100 (Mitteleuropäische Zeit)"},"5599":{"date":{"__isSmartRef__":true,"id":5600},"author":"huberthesse","message":"","id":"649469B5-4234-46D1-9D42-E60AD0ACE1E4"},"5600":{"isSerializedDate":true,"string":"Wed Mar 14 2012 16:42:50 GMT+0100 (Mitteleuropäische Zeit)"},"5601":{"date":{"__isSmartRef__":true,"id":5602},"author":"huberthesse","message":"","id":"C4C7D417-CE69-4CC7-81E6-0CE3695B6ECC"},"5602":{"isSerializedDate":true,"string":"Wed Mar 14 2012 17:01:50 GMT+0100 (Mitteleuropäische Zeit)"},"5603":{"x":1132,"y":442,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5604":{"x":311,"y":1017,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5605":{"x":21,"y":92.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5606":{"x":500,"y":300,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5607":{"x":455,"y":268,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5608":{"x":1047,"y":430,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5609":{"onrestore":{"__isSmartRef__":true,"id":5610},"setTarget":{"__isSmartRef__":true,"id":5618},"reset":{"__isSmartRef__":true,"id":5622},"onShutdown":{"__isSmartRef__":true,"id":5626}},"5610":{"varMapping":{"__isSmartRef__":true,"id":5611},"source":"function onrestore() {\n this.targetMorph.onrestore();\n}","funcProperties":{"__isSmartRef__":true,"id":5616},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5611":{"this":{"__isSmartRef__":true,"id":5308},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5612}},"5612":{"$super":{"__isSmartRef__":true,"id":5613}},"5613":{"varMapping":{"__isSmartRef__":true,"id":5614},"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":5615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5614":{"obj":{"__isSmartRef__":true,"id":5308},"name":"onrestore"},"5615":{},"5616":{"timestamp":{"__isSmartRef__":true,"id":5617},"user":"huberthesse","tags":[]},"5617":{"isSerializedDate":true,"string":"Wed Mar 14 2012 16:39:32 GMT+0100 (Mitteleuropäische Zeit)"},"5618":{"varMapping":{"__isSmartRef__":true,"id":5619},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":5620},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5619":{"this":{"__isSmartRef__":true,"id":5308}},"5620":{"timestamp":{"__isSmartRef__":true,"id":5621},"user":"lauritz","categories":[]},"5621":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Mitteleuropäische Zeit)"},"5622":{"varMapping":{"__isSmartRef__":true,"id":5623},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":5624},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5623":{"this":{"__isSmartRef__":true,"id":5308}},"5624":{"timestamp":{"__isSmartRef__":true,"id":5625},"user":"lauritz","categories":[]},"5625":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Mitteleuropäische Zeit)"},"5626":{"varMapping":{"__isSmartRef__":true,"id":5627},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":5628},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5627":{"this":{"__isSmartRef__":true,"id":5308}},"5628":{"timestamp":{"__isSmartRef__":true,"id":5629},"user":"lauritz","categories":[]},"5629":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (Mitteleuropäische Sommerzeit)"},"5630":{},"5631":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5632":{"getList":{"__isSmartRef__":true,"id":5633},"setList":{"__isSmartRef__":true,"id":5636},"reset":{"__isSmartRef__":true,"id":5639},"example":{"__isSmartRef__":true,"id":5642},"removeList":{"__isSmartRef__":true,"id":5645},"onBlur":{"__isSmartRef__":true,"id":5648},"createListMorph":{"__isSmartRef__":true,"id":5655},"resetConnections":{"__isSmartRef__":true,"id":5658},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":5661},"setTargetToListSelection":{"__isSmartRef__":true,"id":5664},"setTargetOfPane":{"__isSmartRef__":true,"id":5667},"onMouseDown":{"__isSmartRef__":true,"id":5670}},"5633":{"varMapping":{"__isSmartRef__":true,"id":5634},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":5635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5634":{"this":{"__isSmartRef__":true,"id":5271}},"5635":{},"5636":{"varMapping":{"__isSmartRef__":true,"id":5637},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":5638},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5637":{"this":{"__isSmartRef__":true,"id":5271}},"5638":{},"5639":{"varMapping":{"__isSmartRef__":true,"id":5640},"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":5641},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5640":{"this":{"__isSmartRef__":true,"id":5271}},"5641":{},"5642":{"varMapping":{"__isSmartRef__":true,"id":5643},"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":5644},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5643":{"this":{"__isSmartRef__":true,"id":5271}},"5644":{},"5645":{"varMapping":{"__isSmartRef__":true,"id":5646},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":5647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5646":{"this":{"__isSmartRef__":true,"id":5271}},"5647":{},"5648":{"varMapping":{"__isSmartRef__":true,"id":5649},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":5654},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5649":{"this":{"__isSmartRef__":true,"id":5271},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5650}},"5650":{"$super":{"__isSmartRef__":true,"id":5651}},"5651":{"varMapping":{"__isSmartRef__":true,"id":5652},"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":5653},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5652":{"obj":{"__isSmartRef__":true,"id":5271},"name":"onBlur"},"5653":{},"5654":{},"5655":{"varMapping":{"__isSmartRef__":true,"id":5656},"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":5657},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5656":{"this":{"__isSmartRef__":true,"id":5271}},"5657":{},"5658":{"varMapping":{"__isSmartRef__":true,"id":5659},"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":5660},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5659":{"this":{"__isSmartRef__":true,"id":5271}},"5660":{},"5661":{"varMapping":{"__isSmartRef__":true,"id":5662},"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":5663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5662":{"this":{"__isSmartRef__":true,"id":5271}},"5663":{},"5664":{"varMapping":{"__isSmartRef__":true,"id":5665},"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":5666},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5665":{"this":{"__isSmartRef__":true,"id":5271}},"5666":{},"5667":{"varMapping":{"__isSmartRef__":true,"id":5668},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":5669},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5668":{"this":{"__isSmartRef__":true,"id":5271}},"5669":{},"5670":{"varMapping":{"__isSmartRef__":true,"id":5671},"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":5676},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5671":{"this":{"__isSmartRef__":true,"id":5271},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5672}},"5672":{"$super":{"__isSmartRef__":true,"id":5673}},"5673":{"varMapping":{"__isSmartRef__":true,"id":5674},"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":5675},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5674":{"obj":{"__isSmartRef__":true,"id":5271},"name":"onMouseDown"},"5675":{},"5676":{},"5677":{"morph":{"__isSmartRef__":true,"id":4678},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5678":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":5679},"setTarget":{"__isSmartRef__":true,"id":5682},"generateSourceForScript":{"__isSmartRef__":true,"id":5685},"generateSourceForConnection":{"__isSmartRef__":true,"id":5688},"generateTargetCode":{"__isSmartRef__":true,"id":5691},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":5694},"displayJavaScriptSource":{"__isSmartRef__":true,"id":5697},"displaySourceForScript":{"__isSmartRef__":true,"id":5700},"displaySourceForConnection":{"__isSmartRef__":true,"id":5703},"newScript":{"__isSmartRef__":true,"id":5706},"newConnection":{"__isSmartRef__":true,"id":5709},"deleteSelectedScript":{"__isSmartRef__":true,"id":5712},"disconnectConnection":{"__isSmartRef__":true,"id":5715},"updateLists":{"__isSmartRef__":true,"id":5718},"displayInitialScript":{"__isSmartRef__":true,"id":5721},"reset":{"__isSmartRef__":true,"id":5724},"selectChangedContent":{"__isSmartRef__":true,"id":5727}},"5679":{"varMapping":{"__isSmartRef__":true,"id":5680},"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":5681},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5680":{"this":{"__isSmartRef__":true,"id":4678}},"5681":{},"5682":{"varMapping":{"__isSmartRef__":true,"id":5683},"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":5684},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5683":{"this":{"__isSmartRef__":true,"id":4678}},"5684":{},"5685":{"varMapping":{"__isSmartRef__":true,"id":5686},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":5687},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5686":{"this":{"__isSmartRef__":true,"id":4678}},"5687":{},"5688":{"varMapping":{"__isSmartRef__":true,"id":5689},"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":5690},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5689":{"this":{"__isSmartRef__":true,"id":4678}},"5690":{},"5691":{"varMapping":{"__isSmartRef__":true,"id":5692},"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":5693},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5692":{"this":{"__isSmartRef__":true,"id":4678}},"5693":{},"5694":{"varMapping":{"__isSmartRef__":true,"id":5695},"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":5696},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5695":{"this":{"__isSmartRef__":true,"id":4678}},"5696":{},"5697":{"varMapping":{"__isSmartRef__":true,"id":5698},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":5699},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5698":{"this":{"__isSmartRef__":true,"id":4678}},"5699":{},"5700":{"varMapping":{"__isSmartRef__":true,"id":5701},"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":5702},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5701":{"this":{"__isSmartRef__":true,"id":4678}},"5702":{},"5703":{"varMapping":{"__isSmartRef__":true,"id":5704},"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":5705},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5704":{"this":{"__isSmartRef__":true,"id":4678}},"5705":{},"5706":{"varMapping":{"__isSmartRef__":true,"id":5707},"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":5708},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5707":{"this":{"__isSmartRef__":true,"id":4678}},"5708":{},"5709":{"varMapping":{"__isSmartRef__":true,"id":5710},"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":5711},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5710":{"this":{"__isSmartRef__":true,"id":4678}},"5711":{},"5712":{"varMapping":{"__isSmartRef__":true,"id":5713},"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":5714},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5713":{"this":{"__isSmartRef__":true,"id":4678}},"5714":{},"5715":{"varMapping":{"__isSmartRef__":true,"id":5716},"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":5717},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5716":{"this":{"__isSmartRef__":true,"id":4678}},"5717":{},"5718":{"varMapping":{"__isSmartRef__":true,"id":5719},"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":5720},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5719":{"this":{"__isSmartRef__":true,"id":4678}},"5720":{},"5721":{"varMapping":{"__isSmartRef__":true,"id":5722},"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":5723},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5722":{"this":{"__isSmartRef__":true,"id":4678}},"5723":{},"5724":{"varMapping":{"__isSmartRef__":true,"id":5725},"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":5726},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5725":{"this":{"__isSmartRef__":true,"id":4678}},"5726":{},"5727":{"varMapping":{"__isSmartRef__":true,"id":5728},"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":5927},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5926":{"this":{"__isSmartRef__":true,"id":5873}},"5927":{"timestamp":{"__isSmartRef__":true,"id":5928},"user":"lauritz","categories":[]},"5928":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (Mitteleuropäische Zeit)"},"5929":{"submorphs":[{"__isSmartRef__":true,"id":5930}],"scripts":[],"id":"4B8059B0-54D2-495A-B234-1414E6B9D8C9","shape":{"__isSmartRef__":true,"id":5945},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5961},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5948},"lighterFill":{"__isSmartRef__":true,"id":5962},"label":{"__isSmartRef__":true,"id":5930},"attributeConnections":[{"__isSmartRef__":true,"id":5971}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":5973},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":5974},"renderContextTable":{"__isSmartRef__":true,"id":5975},"priorExtent":{"__isSmartRef__":true,"id":5976},"owner":{"__isSmartRef__":true,"id":4660},"eventHandler":{"__isSmartRef__":true,"id":5977},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":4660},"distanceToDragEvent":{"__isSmartRef__":true,"id":5978},"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","53BFD03D-D218-488F-AB07-47740A4D619C","4BDF543E-5B60-4A9C-B92A-0CD374DDA207","FD57753F-33FD-4C65-A2D6-27C86C0F540D","E23F1DF0-4558-4649-A79A-0E1D1E5DF302","FE36A65D-E547-4CCB-ACAD-E803D0C7795A","0AD738A2-D4CB-4F01-9193-D561C93E665D","EBBFCB53-DD5F-4575-B7FD-FDEB70077797","37659BBB-D82E-4B3C-A062-2BD2F89574EC","BC31C0B1-E9AC-467F-8567-05133645FF88","8CA7A2C0-2D56-4028-90FA-142119044DF5","53E17DE4-7CA5-43BE-A7D8-B1C64842506A","90FE8129-B1AD-4D43-8CBA-264B2441D3BC","8E72CCFB-1B5C-4B4A-88EF-B97798445330","C705D7A9-8254-4326-B950-DCD856B516D2","63CE951D-4AFD-4B31-89D7-A0E6BC6DC24C","243AB275-7295-4252-8C3F-567BDA8786F4","34E91417-FEA6-4FEF-9745-351171A4AC0C","21A6E48E-78A9-4D80-BA0B-E159167AC25C"],"isLockOwner":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5979},"__LivelyClassName__":"lively.morphic.Button"},"5930":{"submorphs":[],"scripts":[],"id":"D7044F6E-A619-4701-A586-773FAB986E20","shape":{"__isSmartRef__":true,"id":5931},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5937},"textColor":{"__isSmartRef__":true,"id":5934},"owner":{"__isSmartRef__":true,"id":5929},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":5938}],"padding":{"__isSmartRef__":true,"id":5940},"_Padding":{"__isSmartRef__":true,"id":5941},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":5942},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":5943},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":5944},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_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","262ED0F9-A2AF-443B-9319-7D69F0869496","66FFDAD4-4F81-44D2-A8DA-473C32BC124F","7F18F0DD-D79B-440F-B08D-9A74550D6CFA","CC9DC109-0381-47CA-90F3-B292B042A8C9","0AE28989-1EE9-489A-A3F7-FAB737907B08","707F39C2-F668-4485-A6D7-685C2022BF47","CBE59654-8D46-4C71-AAAC-3B310F67F914","85C21C11-AF2B-4462-97E9-0D2F561143E7","82B7849E-AAF2-4684-B5ED-1C710A7805DB","F5710749-2465-4F14-B4A2-F7F6FEFCECAB","D28D1889-5FD1-4C24-A170-844DB84E09B1","E046226D-C0B9-4DA2-8299-7A2FBDC1048B","79663FFA-572A-4762-B213-75E15A272B17","02054249-C97E-43AA-A34C-9019364554A7","5F265C25-BE13-4424-B186-F80C35710CF8","AB785163-E405-4916-8742-D69E79CBEC6F","FADF1467-783F-4797-901B-355D48F15A63","37D2CF4B-BDF7-4DC1-A043-9627474A69D0"],"isLockOwner":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"5931":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5932},"_Extent":{"__isSmartRef__":true,"id":5933},"_BorderColor":{"__isSmartRef__":true,"id":5934},"renderContextTable":{"__isSmartRef__":true,"id":5935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5932":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5933":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5934":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5935":{"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"},"5936":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5937":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5938":{"style":{"__isSmartRef__":true,"id":5939},"morph":{"__isSmartRef__":true,"id":5930},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":5930},"storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"5939":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5940":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5941":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5942":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5943":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5944":{"morph":{"__isSmartRef__":true,"id":5930},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5945":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5946},"_Extent":{"__isSmartRef__":true,"id":5947},"_Fill":{"__isSmartRef__":true,"id":5948},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5958},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":5959},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5960},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5946":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5947":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5948":{"stops":[{"__isSmartRef__":true,"id":5949},{"__isSmartRef__":true,"id":5951},{"__isSmartRef__":true,"id":5953},{"__isSmartRef__":true,"id":5955}],"vector":{"__isSmartRef__":true,"id":5957},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5949":{"offset":0,"color":{"__isSmartRef__":true,"id":5950}},"5950":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5951":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5952}},"5952":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5953":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5954}},"5954":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5955":{"offset":1,"color":{"__isSmartRef__":true,"id":5956}},"5956":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5957":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5958":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5959":{"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"},"5960":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5961":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5962":{"stops":[{"__isSmartRef__":true,"id":5963},{"__isSmartRef__":true,"id":5965},{"__isSmartRef__":true,"id":5967},{"__isSmartRef__":true,"id":5969}],"vector":{"__isSmartRef__":true,"id":5957},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5963":{"offset":0,"color":{"__isSmartRef__":true,"id":5964}},"5964":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5965":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5966}},"5966":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5967":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5968}},"5968":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5969":{"offset":1,"color":{"__isSmartRef__":true,"id":5970}},"5970":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5971":{"sourceObj":{"__isSmartRef__":true,"id":5929},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5929},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5972},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5972":{"source":{"__isSmartRef__":true,"id":5929},"target":{"__isSmartRef__":true,"id":5929}},"5973":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5974":{"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"},"5975":{"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"},"5976":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5977":{"morph":{"__isSmartRef__":true,"id":5929},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5978":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5979":{"deleteSelectedScript":{"__isSmartRef__":true,"id":5980}},"5980":{"varMapping":{"__isSmartRef__":true,"id":5981},"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":5982},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5981":{"this":{"__isSmartRef__":true,"id":5929}},"5982":{"timestamp":{"__isSmartRef__":true,"id":5983},"user":"lauritz"},"5983":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (Mitteleuropäische Zeit)"},"5984":{"submorphs":[],"scripts":[],"id":"F260FFD7-6542-49F2-974D-89B3BBD389FA","shape":{"__isSmartRef__":true,"id":5985},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5991},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":5988},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":5992},"textChunks":[{"__isSmartRef__":true,"id":5993}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":5995},"renderContextTable":{"__isSmartRef__":true,"id":5996},"eventHandler":{"__isSmartRef__":true,"id":5997},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":5998},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4660},"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","BBD8C74C-AA36-42AB-BC9B-14102EB539F6","1B71CADF-9C83-490E-87DC-23E0CA2298CE","DCC82F37-4930-439A-B2D2-54E8679BAC76","39B9F5C7-0B53-47A6-A41C-FE197CDBBDDB","E35E39E1-789C-444C-81E6-60F90AD951DD","7C8690CD-9111-49BB-8A2A-3BC7969AE88C","98DBBC76-0182-4A73-9DFB-FA3389CB026B","1B308401-A12A-4B66-9627-7731918E07F0","8B0640D8-6622-460D-BB7E-7556171D63FF","FA43EB14-89D6-44CE-B38A-6D164EA9A51B","1E9691EC-B753-429A-AFEB-B5CF88418FA5","6A64CCE3-240A-42FE-A1BF-7921BE4E502A","820AF339-D4F0-4ACD-9334-2D96576D03B6","3E251BAD-210D-417B-9A37-12BD0289C31B","B43DE5FC-680B-43E7-AC30-537EC8CE546B","228E1E36-942B-4414-96D6-47A77F12D2BC","275E39C4-3290-4422-BAB3-390E48712D5B","03888A4B-6DD1-4779-912E-DD61ED51C437"],"isLockOwner":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"5985":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5986},"_Extent":{"__isSmartRef__":true,"id":5987},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5988},"renderContextTable":{"__isSmartRef__":true,"id":5989},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5990},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5986":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5987":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5988":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5989":{"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"},"5990":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5991":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5992":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5993":{"style":{"__isSmartRef__":true,"id":5994},"chunkOwner":{"__isSmartRef__":true,"id":5984},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"5994":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5995":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5996":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5997":{"morph":{"__isSmartRef__":true,"id":5984},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5998":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5999":{"submorphs":[],"scripts":[],"id":"0748DB33-F510-4524-81DF-B9B6F90BD704","shape":{"__isSmartRef__":true,"id":6000},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6006},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":6003},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":6007},"textChunks":[{"__isSmartRef__":true,"id":6008}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6010},"renderContextTable":{"__isSmartRef__":true,"id":6011},"eventHandler":{"__isSmartRef__":true,"id":6012},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":6013},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":4660},"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","F16D4843-E33A-4847-9119-8ADCB2391A2B","93B78FFC-839A-43E2-9E12-DD5E2CDB87FE","93028C86-6A06-4479-BAD4-777E4A51AD4B","4B45454C-7880-4716-ACD4-111FECED492F","B2B84578-EF39-41BB-A9E6-5173BC3490E0","1897E74F-CAE7-4090-AB48-373C2965336D","DF3A0515-9057-45E2-90B7-03C12AFDC2E8","F76A15DB-FB4E-4C48-B625-F793D308DAB8","F160CD4B-1535-41E2-A8CA-C81B8E9C58AE","453065F3-0770-4C4F-800E-63C1178FCDD6","42573583-DA5E-4ADF-810B-4D97C0A9289C","5B9E7444-3499-46FC-B481-ED13EB951905","ED647793-7D2B-434E-881D-21C3CD96FCED","D72918F3-51B3-48F9-BC34-B908862DE053","10B2074D-24C0-4786-9C68-D893F613D2E3","A14618D1-62C9-4219-B148-C2913D9DF91F","55BD956F-34E4-4447-B519-225593300F62","230C4D64-AAE3-4579-BE36-DBB41097E68E"],"isLockOwner":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"6000":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6001},"_Extent":{"__isSmartRef__":true,"id":6002},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6003},"renderContextTable":{"__isSmartRef__":true,"id":6004},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6005},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6001":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6002":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6003":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6004":{"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"},"6005":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6006":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6007":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6008":{"style":{"__isSmartRef__":true,"id":6009},"chunkOwner":{"__isSmartRef__":true,"id":5999},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"6009":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6010":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6011":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6012":{"morph":{"__isSmartRef__":true,"id":5999},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6013":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6014":{"submorphs":[{"__isSmartRef__":true,"id":6015}],"scripts":[],"id":"B4F5E9E8-B973-4AE1-A70C-3A23C16694CC","shape":{"__isSmartRef__":true,"id":6030},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6046},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6047},"lighterFill":{"__isSmartRef__":true,"id":6033},"label":{"__isSmartRef__":true,"id":6015},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":6056},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":6057},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":6058},"eventHandler":{"__isSmartRef__":true,"id":6059},"distanceToDragEvent":{"__isSmartRef__":true,"id":6060},"priorExtent":{"__isSmartRef__":true,"id":6061},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":4660},"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","C62244AF-014B-43A4-8892-D3F1B0BADB42","FE35AB4B-9471-4685-87A8-E33284F9ACC6","0611BF6C-67D9-4AAD-BF6E-DB244C631D74","C89C89E4-7445-450C-AB89-0A9D0F8E93F9","AFEFB4CB-63DD-4210-BBBE-E7B6C58D84FE","E887093C-823E-4C7A-A87F-BA13610C8EAF","C30A7B5C-F11E-45DF-BA45-B031C82CBC3A","20979771-EA41-4553-A23B-C90899AD8592","E359462D-A125-494F-9E62-BAE5A1F01526","4CDA8346-C7EC-4ECE-B6B7-52065F2A7C2F","B0ECD2A8-A0E4-46EB-AC56-0FF3163F369F","B7FC5F94-B421-47C6-8A12-9F663EA2E811","DDA4A513-255A-494E-B422-5A2981AD086B","DAA21FFE-85D0-412F-8335-C60C47922E6C","F897DAD5-0739-4317-8405-5251FA6C7656","2BC6E541-8D82-49E9-B11E-51B394C763C9","094A2F6B-872E-4F59-B4D2-9AC36D3E4D64","7F506DCD-1079-41E8-9DCA-A61D0CB41140"],"isLockOwner":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6062},"__LivelyClassName__":"lively.morphic.Button"},"6015":{"submorphs":[],"scripts":[],"id":"CA89CC63-336C-41E2-A01A-4CE18E7A4B47","shape":{"__isSmartRef__":true,"id":6016},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6022},"textColor":{"__isSmartRef__":true,"id":6019},"owner":{"__isSmartRef__":true,"id":6014},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":6023}],"padding":{"__isSmartRef__":true,"id":6025},"_Padding":{"__isSmartRef__":true,"id":6025},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6026},"attributeConnections":[{"__isSmartRef__":true,"id":6027}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":6028},"eventHandler":{"__isSmartRef__":true,"id":6029},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"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","147717FC-7714-4F03-BA39-ADED4F708C82","9A8D6D09-A3E4-4F4B-A6E1-EFAA3109C35B","792FB978-5EBB-4618-AC82-741796315B3D","CDDAC758-31F6-40C0-9763-AC0073576977","9869230C-E118-4201-A754-378D03B5A9B2","7C3D3C19-04C9-4327-BBAE-D022C3D01C5B","0856D6A4-1230-44A7-A922-E5E79C9D33FB","A905B43A-EE7F-4CA8-AEE3-1415231E0B25","43379C86-64C4-41B3-B69D-8635FB2C17F8","E218893B-7063-451B-A03E-4A8FC3E53072","2C846D69-5E86-4EBA-9603-3E923A65795F","215D8435-31CD-45B9-91A7-AA0EF4B82BB9","A9138822-D1C1-4186-B7B9-B20A379DA28D","91A07B59-DA99-4A15-BF27-E2789D7B859A","E5829BC9-6B79-4C19-94F9-D9E3C02CDC16","44CAA909-5FDB-42EB-B918-9DB252647FA6","E6EF8A11-3A8F-4327-8F56-366DD881544B","7F6AE15E-002B-4C51-BBF7-86ED962A3B59"],"isLockOwner":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"6016":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6017},"_Extent":{"__isSmartRef__":true,"id":6018},"_BorderColor":{"__isSmartRef__":true,"id":6019},"renderContextTable":{"__isSmartRef__":true,"id":6020},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6021},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6017":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6018":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6019":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6020":{"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"},"6021":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6022":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6023":{"style":{"__isSmartRef__":true,"id":6024},"chunkOwner":{"__isSmartRef__":true,"id":6015},"storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6024":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6025":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6026":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6027":{"sourceObj":{"__isSmartRef__":true,"id":6015},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":6014},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"6028":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6029":{"morph":{"__isSmartRef__":true,"id":6015},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6030":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6031},"_Extent":{"__isSmartRef__":true,"id":6032},"_Fill":{"__isSmartRef__":true,"id":6033},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6043},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":6044},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6045},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6031":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6032":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6033":{"stops":[{"__isSmartRef__":true,"id":6034},{"__isSmartRef__":true,"id":6036},{"__isSmartRef__":true,"id":6038},{"__isSmartRef__":true,"id":6040}],"vector":{"__isSmartRef__":true,"id":6042},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6034":{"offset":0,"color":{"__isSmartRef__":true,"id":6035}},"6035":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6036":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6037}},"6037":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6038":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6039}},"6039":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6040":{"offset":1,"color":{"__isSmartRef__":true,"id":6041}},"6041":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6042":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6043":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6044":{"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"},"6045":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6046":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6047":{"stops":[{"__isSmartRef__":true,"id":6048},{"__isSmartRef__":true,"id":6050},{"__isSmartRef__":true,"id":6052},{"__isSmartRef__":true,"id":6054}],"vector":{"__isSmartRef__":true,"id":6042},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6048":{"offset":0,"color":{"__isSmartRef__":true,"id":6049}},"6049":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6050":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6051}},"6051":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6052":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6053}},"6053":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6054":{"offset":1,"color":{"__isSmartRef__":true,"id":6055}},"6055":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6056":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6057":{"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"},"6058":{"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"},"6059":{"morph":{"__isSmartRef__":true,"id":6014},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6060":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6061":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6062":{"createListMorph":{"__isSmartRef__":true,"id":6063},"getList":{"__isSmartRef__":true,"id":6067},"removeList":{"__isSmartRef__":true,"id":6071},"reset":{"__isSmartRef__":true,"id":6075},"onMouseUp":{"__isSmartRef__":true,"id":6079},"onBlur":{"__isSmartRef__":true,"id":6087},"setTag":{"__isSmartRef__":true,"id":6095}},"6063":{"varMapping":{"__isSmartRef__":true,"id":6064},"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":6065},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6064":{"this":{"__isSmartRef__":true,"id":6014}},"6065":{"timestamp":{"__isSmartRef__":true,"id":6066},"user":"lauritz","categories":[]},"6066":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Mitteleuropäische Zeit)"},"6067":{"varMapping":{"__isSmartRef__":true,"id":6068},"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":6069},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6068":{"this":{"__isSmartRef__":true,"id":6014}},"6069":{"timestamp":{"__isSmartRef__":true,"id":6070},"user":"lauritz","tags":[]},"6070":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Mitteleuropäische Zeit)"},"6071":{"varMapping":{"__isSmartRef__":true,"id":6072},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":6073},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6072":{"this":{"__isSmartRef__":true,"id":6014}},"6073":{"timestamp":{"__isSmartRef__":true,"id":6074},"user":"lauritz","categories":[]},"6074":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Mitteleuropäische Zeit)"},"6075":{"varMapping":{"__isSmartRef__":true,"id":6076},"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":6077},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6076":{"this":{"__isSmartRef__":true,"id":6014}},"6077":{"timestamp":{"__isSmartRef__":true,"id":6078},"user":"lauritz","tags":[]},"6078":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (Mitteleuropäische Zeit)"},"6079":{"varMapping":{"__isSmartRef__":true,"id":6080},"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":6085},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6080":{"this":{"__isSmartRef__":true,"id":6014},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6081}},"6081":{"$super":{"__isSmartRef__":true,"id":6082}},"6082":{"varMapping":{"__isSmartRef__":true,"id":6083},"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":6084},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6083":{"obj":{"__isSmartRef__":true,"id":6014},"name":"onMouseUp"},"6084":{},"6085":{"timestamp":{"__isSmartRef__":true,"id":6086},"user":"lauritz","categories":[]},"6086":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (Mitteleuropäische Zeit)"},"6087":{"varMapping":{"__isSmartRef__":true,"id":6088},"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":6093},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6088":{"this":{"__isSmartRef__":true,"id":6014},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6089}},"6089":{"$super":{"__isSmartRef__":true,"id":6090}},"6090":{"varMapping":{"__isSmartRef__":true,"id":6091},"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":6092},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6091":{"obj":{"__isSmartRef__":true,"id":6014},"name":"onBlur"},"6092":{},"6093":{"timestamp":{"__isSmartRef__":true,"id":6094},"user":"lauritz","categories":[]},"6094":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Mitteleuropäische Zeit)"},"6095":{"varMapping":{"__isSmartRef__":true,"id":6096},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":6097},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6096":{"this":{"__isSmartRef__":true,"id":6014}},"6097":{"timestamp":{"__isSmartRef__":true,"id":6098},"user":"lauritz","categories":[]},"6098":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (Mitteleuropäische Zeit)"},"6099":{"submorphs":[{"__isSmartRef__":true,"id":6100}],"scripts":[],"id":"13BE5572-0CC1-4482-9C6F-1E60C56B4D9D","shape":{"__isSmartRef__":true,"id":6115},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6119},"lighterFill":{"__isSmartRef__":true,"id":6131},"label":{"__isSmartRef__":true,"id":6100},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6140},"attributeConnections":[{"__isSmartRef__":true,"id":6141}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":6177},"renderContextTable":{"__isSmartRef__":true,"id":6178},"eventHandler":{"__isSmartRef__":true,"id":6179},"distanceToDragEvent":{"__isSmartRef__":true,"id":6180},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","5C5E9A65-DE2C-4125-9F28-C867C6B51A1E","06ED2586-FDEA-4F80-9DD0-D1CBB50B4C6A","2D3BBB99-E64D-4E47-8635-B7AEA4158433","D635C083-879E-4939-84CF-636CF779425B","9953E688-648B-43BD-90E1-D8E4170D5C65","B5AF8C87-A48C-48EF-A658-944946371F5F","8FCB339F-26BE-456A-9FBF-4C0EBE15FDAB","690F8BBC-426F-4810-AAAE-508D21B39A4F","3DC5576A-6D75-46FE-B603-036A55FA4D13","B52A5C88-FA03-41E5-BA6C-5008A196C1D7","D3341522-A7C9-45BD-A8BA-DFB09094AECC","E9FA78BD-8D5B-405C-A720-03D3657B05CF","99CF3B0A-6670-438E-BB2F-EAE2C57342C4","FBF87B2F-188C-4149-85EF-8856A53344A4","510E4B22-2213-4182-8917-BE180993FBBE","AC7B175B-4A3B-4E9A-A9AE-6F3EF1F21A61","CD0D71B9-AE76-49A3-8796-899C277181EE","319D80BB-CC42-460D-934E-149B8A66EA60"],"_Position":{"__isSmartRef__":true,"id":6181},"owner":{"__isSmartRef__":true,"id":4660},"layout":{"__isSmartRef__":true,"id":6182},"isLockOwner":false,"_Rotation":0,"_Scale":0.994014980014994,"__LivelyClassName__":"lively.morphic.Button"},"6100":{"submorphs":[],"scripts":[],"id":"FEF6C946-FFA7-4EBA-8929-5BF9B0E1DDE7","shape":{"__isSmartRef__":true,"id":6101},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6107},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":6108},"_Padding":{"__isSmartRef__":true,"id":6109},"owner":{"__isSmartRef__":true,"id":6099},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":6110},"textChunks":[{"__isSmartRef__":true,"id":6111}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":6113},"eventHandler":{"__isSmartRef__":true,"id":6114},"_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","DBDAA16D-6F25-453D-812F-8DB5E6251020","375E60B7-D311-4DBC-A130-1F9CBA908DDC","0057F96D-6D90-4047-B07D-EAA6D0149470","50486855-A26E-48B5-BD19-6A7775BD23DE","A40A9DDA-945A-44C9-B038-61A84E61F4A5","6B1BBBED-CDC3-4AB1-8022-D904F036092C","BFEFD8A4-7E89-40B1-A2C3-900445F829DC","E6748E61-A4C6-44EC-919F-C109AB6ACED5","1064BCB6-7D32-48C4-A69B-58BDA4D8ED83","AA336938-1952-49B5-9219-28FA3A0CB2CE","CBF02CF8-4248-4F77-AB44-5429B907D893","C901EFF6-BD79-4440-815B-4976C359E913","B707BADF-A10C-4A49-9C36-81A6367E6BF5","C9C6BBEF-97D8-4771-B865-F28312928273","789391FF-9AB6-4E0A-9238-169149802BA5","02344A63-2DB7-44D9-94D9-F58F52EB0168","5F31242F-D8FF-458A-B5BB-568FA2477992","CEFD322E-852C-4DDC-B9CE-0A1DED1D618A"],"_MinTextWidth":101,"_MinTextHeight":null,"isLockOwner":false,"__LivelyClassName__":"lively.morphic.Text"},"6101":{"position":{"__isSmartRef__":true,"id":6102},"_Extent":{"__isSmartRef__":true,"id":6103},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6104},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6105},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6106},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6102":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6103":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6104":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6105":{"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"},"6106":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6107":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6108":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6109":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6110":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6111":{"style":{"__isSmartRef__":true,"id":6112},"chunkOwner":{"__isSmartRef__":true,"id":6100},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"run","__LivelyClassName__":"lively.morphic.TextChunk"},"6112":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6113":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6114":{"morph":{"__isSmartRef__":true,"id":6100},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6115":{"position":{"__isSmartRef__":true,"id":6116},"_Extent":{"__isSmartRef__":true,"id":6117},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":6118},"_Fill":{"__isSmartRef__":true,"id":6119},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6129},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6130},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6116":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6117":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6118":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6119":{"stops":[{"__isSmartRef__":true,"id":6120},{"__isSmartRef__":true,"id":6122},{"__isSmartRef__":true,"id":6124},{"__isSmartRef__":true,"id":6126}],"vector":{"__isSmartRef__":true,"id":6128},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6120":{"offset":0,"color":{"__isSmartRef__":true,"id":6121}},"6121":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6122":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6123}},"6123":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6124":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6125}},"6125":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6126":{"offset":1,"color":{"__isSmartRef__":true,"id":6127}},"6127":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6128":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6129":{"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"},"6130":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6131":{"stops":[{"__isSmartRef__":true,"id":6132},{"__isSmartRef__":true,"id":6134},{"__isSmartRef__":true,"id":6136},{"__isSmartRef__":true,"id":6138}],"vector":{"__isSmartRef__":true,"id":6128},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6132":{"offset":0,"color":{"__isSmartRef__":true,"id":6133}},"6133":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6134":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6135}},"6135":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6136":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6137}},"6137":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6138":{"offset":1,"color":{"__isSmartRef__":true,"id":6139}},"6139":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6140":{"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"},"6141":{"sourceObj":{"__isSmartRef__":true,"id":6099},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4660},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":6142},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"6142":{"submorphs":[{"__isSmartRef__":true,"id":6143}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6158},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":6165},"eventHandler":{"__isSmartRef__":true,"id":6166},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":6167},{"__isSmartRef__":true,"id":6168}],"con":{"__isSmartRef__":true,"id":6141},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6169},"__LivelyClassName__":"lively.morphic.Path"},"6143":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6144},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":6155},"eventHandler":{"__isSmartRef__":true,"id":6156},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6157},"owner":{"__isSmartRef__":true,"id":6142},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"6144":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6145},{"__isSmartRef__":true,"id":6146},{"__isSmartRef__":true,"id":6147},{"__isSmartRef__":true,"id":6148}],"renderContextTable":{"__isSmartRef__":true,"id":6149},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":6150},"_Extent":{"__isSmartRef__":true,"id":6151},"_Padding":{"__isSmartRef__":true,"id":6152},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6153},"_Fill":{"__isSmartRef__":true,"id":6154},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"6145":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"6146":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6147":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6148":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6149":{"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"},"6150":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6151":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6152":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6153":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6154":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6155":{"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"},"6156":{"morph":{"__isSmartRef__":true,"id":6143},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6157":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6158":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6159},{"__isSmartRef__":true,"id":6160}],"renderContextTable":{"__isSmartRef__":true,"id":6161},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":6162},"_Extent":{"__isSmartRef__":true,"id":6163},"_Padding":{"__isSmartRef__":true,"id":6164},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6153},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"6159":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"6160":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6161":{"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"},"6162":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6163":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6164":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6165":{"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"},"6166":{"morph":{"__isSmartRef__":true,"id":6142},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6167":{"morph":{"__isSmartRef__":true,"id":6142},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"6168":{"morph":{"__isSmartRef__":true,"id":6142},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":6143},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"6169":{"morphMenuItems":{"__isSmartRef__":true,"id":6170}},"6170":{"varMapping":{"__isSmartRef__":true,"id":6171},"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":6176},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6171":{"this":{"__isSmartRef__":true,"id":6142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6172}},"6172":{"$super":{"__isSmartRef__":true,"id":6173}},"6173":{"varMapping":{"__isSmartRef__":true,"id":6174},"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":6175},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6174":{"obj":{"__isSmartRef__":true,"id":6142},"name":"morphMenuItems"},"6175":{},"6176":{},"6177":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6178":{"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"},"6179":{"morph":{"__isSmartRef__":true,"id":6099},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6180":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6181":{"x":788.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6182":{"centeredHorizontal":false,"moveHorizontal":true},"6183":{"submorphs":[{"__isSmartRef__":true,"id":6184}],"scripts":[],"id":"CF426AB9-A629-4F4B-BCC3-D2314EB88D60","shape":{"__isSmartRef__":true,"id":6199},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6203},"lighterFill":{"__isSmartRef__":true,"id":6215},"label":{"__isSmartRef__":true,"id":6184},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6224},"attributeConnections":[{"__isSmartRef__":true,"id":6225}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":6261},"renderContextTable":{"__isSmartRef__":true,"id":6262},"eventHandler":{"__isSmartRef__":true,"id":6263},"distanceToDragEvent":{"__isSmartRef__":true,"id":6264},"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","38269693-613D-49B5-8E0F-E1A576A6262E","50D597DC-839A-41F0-A1D6-D96E934B7197","36255514-C455-465F-90EC-542C55A80380","C218F04A-5E06-46DD-9433-605F99A1D2D3","9E9AB465-AE41-4003-BC0A-318636599A9D","14F962F9-17A5-4580-926C-246AEE8B7D78","B4CBC78A-08E8-4877-B3CC-B3A8FB31AD81","5731F96D-D99A-4659-848E-F2629661BDE9","DF23D997-26B6-4535-A5D7-E92AF9BBC1C7","48259171-FBC6-479A-846F-A1A5F039883A","A857EF7C-4144-42DC-94BD-782686AFE78E","1AF8F25E-8F1B-4403-BA2E-2844C72BE9E2","6F5B9374-C5A2-4BCA-9BCD-850422A5AEA3","0CFC397B-4700-4F06-9B73-DB54235FDE17","7F7E6705-A49B-42A9-A8B9-3075919B3B6F","0545B541-4796-4D04-A15D-53F021508CE6","E4F285F3-ECFD-4DF6-A3B4-9837BD52067C","31C10E42-C32D-47FA-9B62-E4EB584DD2A3"],"layout":{"__isSmartRef__":true,"id":6265},"_Position":{"__isSmartRef__":true,"id":6266},"owner":{"__isSmartRef__":true,"id":4660},"isLockOwner":false,"_Rotation":0,"_Scale":0.9880657804942089,"__LivelyClassName__":"lively.morphic.Button"},"6184":{"submorphs":[],"scripts":[],"id":"C335FE80-3437-4FBC-8C18-20763ADB3395","shape":{"__isSmartRef__":true,"id":6185},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6191},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":6192},"_Padding":{"__isSmartRef__":true,"id":6193},"owner":{"__isSmartRef__":true,"id":6183},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":6194},"textChunks":[{"__isSmartRef__":true,"id":6195}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":6197},"eventHandler":{"__isSmartRef__":true,"id":6198},"_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","7E65E15F-55D6-413F-B6E5-6891B4148E12","6A62E83E-3291-4A9C-AF4F-78266B4724B3","89D6D436-5905-4FFE-BDF9-EF1948ADF49A","902626A1-BAFA-4EB3-A6EE-2E8F5ECD597A","CACFC81B-4374-4470-A6CC-4890C1D48F9D","0E085F0F-D903-49A1-937F-E489EB61CBD3","51D6BADE-45FF-49DE-B223-96617E2C484C","39EAD7C9-6776-45D6-9671-039A99A65278","69BA3D44-C1FC-44EA-A6E3-ECABBBBE9C22","8EB71B92-8A42-4105-81E2-2B6969CD7D2C","8F6CC7C5-594F-4BA3-B674-6AE608B66650","5BB91069-A944-4662-A8BD-80EF64583561","471328DC-F7BE-4861-8758-AEEB2A78FB71","77947C98-1FCA-41AA-820F-C9AA55B32B88","5500DB89-4662-4314-8B9C-670EA88F1BBB","90E70988-B16F-4863-BEC3-48AA864060AE","6DFEF2A6-2342-4602-8042-A7B8128A7E13","BD9D2A24-63E9-41C3-8F66-B0FFC0C1F0CC"],"_MinTextWidth":101,"_MinTextHeight":null,"isLockOwner":false,"__LivelyClassName__":"lively.morphic.Text"},"6185":{"position":{"__isSmartRef__":true,"id":6186},"_Extent":{"__isSmartRef__":true,"id":6187},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6188},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6189},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6190},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6186":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6187":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6188":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6189":{"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"},"6190":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6191":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6192":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6193":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6194":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6195":{"style":{"__isSmartRef__":true,"id":6196},"chunkOwner":{"__isSmartRef__":true,"id":6184},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"6196":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6197":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6198":{"morph":{"__isSmartRef__":true,"id":6184},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6199":{"position":{"__isSmartRef__":true,"id":6200},"_Extent":{"__isSmartRef__":true,"id":6201},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":6202},"_Fill":{"__isSmartRef__":true,"id":6203},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6213},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6214},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6200":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6201":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6202":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6203":{"stops":[{"__isSmartRef__":true,"id":6204},{"__isSmartRef__":true,"id":6206},{"__isSmartRef__":true,"id":6208},{"__isSmartRef__":true,"id":6210}],"vector":{"__isSmartRef__":true,"id":6212},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6204":{"offset":0,"color":{"__isSmartRef__":true,"id":6205}},"6205":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6206":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6207}},"6207":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6208":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6209}},"6209":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6210":{"offset":1,"color":{"__isSmartRef__":true,"id":6211}},"6211":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6212":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6213":{"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"},"6214":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6215":{"stops":[{"__isSmartRef__":true,"id":6216},{"__isSmartRef__":true,"id":6218},{"__isSmartRef__":true,"id":6220},{"__isSmartRef__":true,"id":6222}],"vector":{"__isSmartRef__":true,"id":6212},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6216":{"offset":0,"color":{"__isSmartRef__":true,"id":6217}},"6217":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6218":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6219}},"6219":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6220":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6221}},"6221":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6222":{"offset":1,"color":{"__isSmartRef__":true,"id":6223}},"6223":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6224":{"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"},"6225":{"sourceObj":{"__isSmartRef__":true,"id":6183},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4632},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":6226},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"6226":{"submorphs":[{"__isSmartRef__":true,"id":6227}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6242},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":6249},"eventHandler":{"__isSmartRef__":true,"id":6250},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":6251},{"__isSmartRef__":true,"id":6252}],"con":{"__isSmartRef__":true,"id":6225},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6253},"__LivelyClassName__":"lively.morphic.Path"},"6227":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6228},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":6239},"eventHandler":{"__isSmartRef__":true,"id":6240},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6241},"owner":{"__isSmartRef__":true,"id":6226},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"6228":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6229},{"__isSmartRef__":true,"id":6230},{"__isSmartRef__":true,"id":6231},{"__isSmartRef__":true,"id":6232}],"renderContextTable":{"__isSmartRef__":true,"id":6233},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":6234},"_Extent":{"__isSmartRef__":true,"id":6235},"_Padding":{"__isSmartRef__":true,"id":6236},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6237},"_Fill":{"__isSmartRef__":true,"id":6238},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"6229":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"6230":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6231":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6232":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6233":{"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"},"6234":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6235":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6236":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6237":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6238":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6239":{"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"},"6240":{"morph":{"__isSmartRef__":true,"id":6227},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6241":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6242":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6243},{"__isSmartRef__":true,"id":6244}],"renderContextTable":{"__isSmartRef__":true,"id":6245},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":6246},"_Extent":{"__isSmartRef__":true,"id":6247},"_Padding":{"__isSmartRef__":true,"id":6248},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6237},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"6243":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"6244":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"6245":{"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"},"6246":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6247":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6248":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6249":{"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"},"6250":{"morph":{"__isSmartRef__":true,"id":6226},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6251":{"morph":{"__isSmartRef__":true,"id":6226},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"6252":{"morph":{"__isSmartRef__":true,"id":6226},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":6227},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"6253":{"morphMenuItems":{"__isSmartRef__":true,"id":6254}},"6254":{"varMapping":{"__isSmartRef__":true,"id":6255},"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":6260},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6255":{"this":{"__isSmartRef__":true,"id":6226},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6256}},"6256":{"$super":{"__isSmartRef__":true,"id":6257}},"6257":{"varMapping":{"__isSmartRef__":true,"id":6258},"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":6259},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6258":{"obj":{"__isSmartRef__":true,"id":6226},"name":"morphMenuItems"},"6259":{},"6260":{},"6261":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6262":{"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"},"6263":{"morph":{"__isSmartRef__":true,"id":6183},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6264":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6265":{"centeredHorizontal":false,"moveHorizontal":true},"6266":{"x":675.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6267":{"submorphs":[{"__isSmartRef__":true,"id":6268}],"scripts":[],"id":"9F9F905D-EF63-4943-A5CE-C4939A71B6CF","shape":{"__isSmartRef__":true,"id":6283},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6299},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6287},"lighterFill":{"__isSmartRef__":true,"id":6300},"label":{"__isSmartRef__":true,"id":6268},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6309},"attributeConnections":[{"__isSmartRef__":true,"id":6310}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":6311},"renderContextTable":{"__isSmartRef__":true,"id":6312},"eventHandler":{"__isSmartRef__":true,"id":6313},"distanceToDragEvent":{"__isSmartRef__":true,"id":6314},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","3D238587-ED65-4137-9156-BFC9C8736E26","00595EF3-8058-4924-A096-17D5050C2615","B599ACB2-7293-493C-9377-E233B6C369EF","1F49694F-9CDE-43A8-9D7C-1A902C09936E","D6AD170D-CB11-4A9A-9E4B-D5509CF7BD1E","F57418D2-0EB4-4B97-8840-9C7881708C00","36E12BD5-78E6-4A3F-9C59-CB32E637283A","A0A13AD5-D53E-44D7-96AB-157ED26817D8","3A957C0F-9271-4219-BEAE-28B04FDC2698","0BB80933-2798-4D54-B99C-042D58DC1AD9","F6FDD56C-B63D-4E77-8A49-5FEB80929BFB","4595DB28-C6F0-44EF-AEEC-EF472925E20C","7AB3BB10-C6AD-4EC2-AF77-AB58AFBC4BEE","8942490F-995B-4F02-86B7-3F78FC7772CC","7099AB3D-6D80-42A2-BD87-06FAE4079BED","3A2D0AE6-B091-433C-90F7-F7DC1534589F","CA6CA817-FB1E-4E71-A8C2-3DA34B8004D1","68333343-DA60-4ECB-A1FF-9E159B108EE9"],"owner":{"__isSmartRef__":true,"id":4660},"isLockOwner":false,"_Rotation":0,"_Scale":0.9940149800149939,"__LivelyClassName__":"lively.morphic.Button"},"6268":{"submorphs":[],"scripts":[],"id":"38877BCA-937A-4B66-AA3E-84570D1620F2","shape":{"__isSmartRef__":true,"id":6269},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6275},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":6276},"_Padding":{"__isSmartRef__":true,"id":6277},"owner":{"__isSmartRef__":true,"id":6267},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":6278},"textChunks":[{"__isSmartRef__":true,"id":6279}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":6281},"eventHandler":{"__isSmartRef__":true,"id":6282},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","6B329FE4-42E0-4EEF-8CBC-77DFB257830F","4550D795-1DFE-4823-9933-A0EE3D492900","A60F7395-3B55-4855-ADD5-54363CA481D8","4C5FBFD1-E919-4D22-9C52-80C95B1ADC20","38FE1E9A-73A0-4885-BDA1-1C6A64554B7A","A50FD742-1B5C-4948-B2AF-8E86B3ED6F30","1F364058-76A9-4F99-8443-2BF5D78A9D63","34913C80-F880-4D3F-9B97-93B98D5625CF","1FE33E11-39E7-4119-B52B-805899EE8D47","F6E2FE73-5067-4AD3-976F-BF4413ADDBF9","B40BA45F-F7DD-4287-99D6-321ED625B633","BC69EEC7-4984-446C-94EA-507BFCE56C86","F508FF53-31C6-498F-B069-4418B2655BA0","8C65C890-1FA8-466E-B307-11A26D3B7407","7B5A6CE0-AB83-4B02-BBC2-AF570F870076","684060FD-C10E-4D81-B503-3D2DF566C322","D2E830D1-E245-4599-BD2C-E7EDE430DFD7","EDF82221-5A01-4F31-BC39-557E1F02CFC8"],"_MinTextWidth":101,"_MinTextHeight":null,"isLockOwner":false,"__LivelyClassName__":"lively.morphic.Text"},"6269":{"position":{"__isSmartRef__":true,"id":6270},"_Extent":{"__isSmartRef__":true,"id":6271},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6272},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6273},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6274},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6270":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6271":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6272":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6273":{"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"},"6274":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6275":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6276":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6277":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6278":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6279":{"style":{"__isSmartRef__":true,"id":6280},"chunkOwner":{"__isSmartRef__":true,"id":6268},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"6280":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6281":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6282":{"morph":{"__isSmartRef__":true,"id":6268},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6283":{"position":{"__isSmartRef__":true,"id":6284},"_Extent":{"__isSmartRef__":true,"id":6285},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":6286},"_Fill":{"__isSmartRef__":true,"id":6287},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6297},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6298},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6284":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6285":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6286":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6287":{"stops":[{"__isSmartRef__":true,"id":6288},{"__isSmartRef__":true,"id":6290},{"__isSmartRef__":true,"id":6292},{"__isSmartRef__":true,"id":6294}],"vector":{"__isSmartRef__":true,"id":6296},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6288":{"offset":0,"color":{"__isSmartRef__":true,"id":6289}},"6289":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6290":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6291}},"6291":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6292":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6293}},"6293":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6294":{"offset":1,"color":{"__isSmartRef__":true,"id":6295}},"6295":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6296":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6297":{"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"},"6298":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6299":{"x":510,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6300":{"stops":[{"__isSmartRef__":true,"id":6301},{"__isSmartRef__":true,"id":6303},{"__isSmartRef__":true,"id":6305},{"__isSmartRef__":true,"id":6307}],"vector":{"__isSmartRef__":true,"id":6296},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6301":{"offset":0,"color":{"__isSmartRef__":true,"id":6302}},"6302":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6303":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6304}},"6304":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6305":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6306}},"6306":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6307":{"offset":1,"color":{"__isSmartRef__":true,"id":6308}},"6308":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6309":{"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"},"6310":{"sourceObj":{"__isSmartRef__":true,"id":6267},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4660},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"6311":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6312":{"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"},"6313":{"morph":{"__isSmartRef__":true,"id":6267},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6314":{"x":65.95178327801523,"y":-8.024108360992386,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6315":{"submorphs":[],"scripts":[],"id":"4ABBE9B8-C434-4ED2-84F9-300E468AA8EB","shape":{"__isSmartRef__":true,"id":6316},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6322},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":6319},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText3","partsBinMetaInfo":{"__isSmartRef__":true,"id":6323},"textChunks":[{"__isSmartRef__":true,"id":6324}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6326},"renderContextTable":{"__isSmartRef__":true,"id":6327},"eventHandler":{"__isSmartRef__":true,"id":6328},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":6329},"eventsAreIgnored":true,"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","BBD8C74C-AA36-42AB-BC9B-14102EB539F6","1B71CADF-9C83-490E-87DC-23E0CA2298CE","DCC82F37-4930-439A-B2D2-54E8679BAC76","39B9F5C7-0B53-47A6-A41C-FE197CDBBDDB","E35E39E1-789C-444C-81E6-60F90AD951DD","7C8690CD-9111-49BB-8A2A-3BC7969AE88C","98DBBC76-0182-4A73-9DFB-FA3389CB026B","3F4F1891-B298-4AC4-808B-24CEEA557459","6BE7AD80-1782-467C-B033-54DF1E1F55C0","59849D96-B264-44C4-9ECD-7A12A832DA74","EAAB9569-E0AC-4102-B798-7D0570DF524F","C8CC8285-06DE-4331-8938-988F7B181E5D","F53E2457-3876-4CB0-BAD0-E5EB21D7715E","99DDD6A7-FE39-4A97-91CC-43F66109E234","A6BD7A38-4119-48E4-A97A-7C016B197EE2","3F5AEB02-FBFE-4A02-BFDD-BB1C16DDF04B","902B04A6-09F7-4928-8D9C-7E7AE76E394D","F60896A6-A9BF-4B25-ACDD-28D39981BB23","2B35B100-3ACF-4D4D-8F99-A79095C0B523"],"owner":{"__isSmartRef__":true,"id":4660},"isLockOwner":false,"_Rotation":0,"_Scale":0.9801888648295339,"__LivelyClassName__":"lively.morphic.Text"},"6316":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6317},"_Extent":{"__isSmartRef__":true,"id":6318},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6319},"renderContextTable":{"__isSmartRef__":true,"id":6320},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6321},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6317":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6318":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6319":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6320":{"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"},"6321":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6322":{"x":201.0851019455509,"y":50.257772129123396,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6323":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6324":{"style":{"__isSmartRef__":true,"id":6325},"chunkOwner":{"__isSmartRef__":true,"id":6315},"storedString":"Tags:","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"6325":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6326":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6327":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6328":{"morph":{"__isSmartRef__":true,"id":6315},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6329":{"x":46.85990195761653,"y":-9.163922615350018,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6330":{"submorphs":[],"scripts":[],"id":"8B7856DA-5AEC-424A-B35F-B9CA9880D455","shape":{"__isSmartRef__":true,"id":6331},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6338},"_MaxTextWidth":383.508118745059,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":6334},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"TagsEntry","partsBinMetaInfo":{"__isSmartRef__":true,"id":6339},"textChunks":[{"__isSmartRef__":true,"id":6342}],"charsReplaced":"","lastFindLoc":7,"priorSelectionRange":[15,15],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6344},"renderContextTable":{"__isSmartRef__":true,"id":6345},"eventHandler":{"__isSmartRef__":true,"id":6346},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":6347},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","5427549B-2650-4E9A-8D4B-F63501AFF44B","8FF4130A-1A54-481A-B321-4F5E7715B84E","4A142418-922F-4CDA-8C5D-B810D42B543B","0F207504-6F3C-4F9F-8D04-F4260BFA6D2D","5406FAB6-2C7C-456F-94F5-2314478F16B1","EDBD3C78-9151-4F20-BBAD-26FD1C11A7CB","9783DFE5-8861-4C6D-AFD7-3D4A5BB1C14B","5AF54987-B9AF-4DAF-BC65-00A1C28A7AB0","507963E1-FF0F-4187-ABFF-B91676CF0BC1","085BC36B-3D2D-4D00-A729-F83A247E9906"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":383.508118745059,"_MinTextHeight":null,"previousSelection":[12,12],"owner":{"__isSmartRef__":true,"id":4660},"distanceToDragEvent":{"__isSmartRef__":true,"id":6348},"savedTextString":"[\"test\", 'foo']","isInputLine":true,"allowInput":true,"isLockOwner":false,"_Rotation":0,"_Scale":0.9801888648295339,"__LivelyClassName__":"lively.morphic.Text"},"6331":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6332},"_Extent":{"__isSmartRef__":true,"id":6333},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6334},"renderContextTable":{"__isSmartRef__":true,"id":6335},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6336},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":6337},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6332":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6333":{"x":391.508118745059,"y":24.979788451102458,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6334":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6335":{"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"},"6336":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6337":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6338":{"x":233.33463002960926,"y":48.977392988826864,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6339":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6340}],"revisionOnLoad":141269,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6340":{"date":{"__isSmartRef__":true,"id":6341},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6341":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (Mitteleuropäische Zeit)"},"6342":{"style":{"__isSmartRef__":true,"id":6343},"chunkOwner":{"__isSmartRef__":true,"id":6330},"storedString":"[]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6343":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6344":{"x":391.508118745059,"y":24.979788451102458,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6345":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6346":{"morph":{"__isSmartRef__":true,"id":6330},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6347":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6348":{"x":322,"y":-13.145815705892545,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6349":{"submorphs":[{"__isSmartRef__":true,"id":6350}],"scripts":[],"id":"15A66E51-40FD-4254-8003-B973D81D1F39","shape":{"__isSmartRef__":true,"id":6365},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6381},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6368},"lighterFill":{"__isSmartRef__":true,"id":6382},"label":{"__isSmartRef__":true,"id":6350},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":6391},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":6392},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":6393},"eventHandler":{"__isSmartRef__":true,"id":6394},"distanceToDragEvent":{"__isSmartRef__":true,"id":6395},"priorExtent":{"__isSmartRef__":true,"id":6396},"owner":{"__isSmartRef__":true,"id":4660},"textString":"","selection":{"__isSmartRef__":true,"id":6397},"_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","FCB5AC20-8EDD-454C-8060-0D8A819EA8CC","44067B9D-617A-44C0-87C2-34049A67D504","459701D2-8B97-438B-94DB-342D6F020607","B0598300-449A-4BFB-B433-D89ED61D3D80","8BA4395D-FDA1-457C-A16B-0AB9E3CF4BA8","02EBE588-3991-41A8-B178-CDA6D074D5C2","FBC9D2ED-711E-4EB2-A4B5-AF7B1D435F75","24CE2774-4686-49F6-8A8A-96703E5CA4D5","492EBB52-B198-4489-BAE6-CDEFD0E1B4E7","3F5CE1C8-CA5B-4417-ABC1-1EA6C99C3BC7","B3E4AC8B-7ED2-4146-B1DD-53390948A999","F0772CE8-8B74-4712-8449-5C46958F679E","4B86ACDF-0F06-4C0B-823C-C3540ECB7CE2","A16E6558-2CA9-4166-A965-8C6BA6414E06","844F0C7D-E30E-4F34-820A-55CEB0BAC7D5","C7A1283F-1819-49C6-B2B9-D19ED9C97DB7","41720357-FC97-4291-87AB-82DC606453C2","FD11FB2D-B492-4B59-BAC4-712764E8564D"],"isLockOwner":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6414},"__LivelyClassName__":"lively.morphic.Button"},"6350":{"submorphs":[],"scripts":[],"id":"6683C84C-C44D-495C-9824-F7B848422E7E","shape":{"__isSmartRef__":true,"id":6351},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6357},"textColor":{"__isSmartRef__":true,"id":6354},"owner":{"__isSmartRef__":true,"id":6349},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":6358}],"padding":{"__isSmartRef__":true,"id":6360},"_Padding":{"__isSmartRef__":true,"id":6360},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6361},"attributeConnections":[{"__isSmartRef__":true,"id":6362}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":6363},"eventHandler":{"__isSmartRef__":true,"id":6364},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"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","926741C7-A8EC-4D1C-9C34-A7BA992FF28A","6455B12A-6B80-4CE0-B78B-CE8D3837E4B0","7913F91D-152F-45A4-AE83-4EBFE8BF77ED","2EEFDE09-7582-4267-822E-6F87276CB558","1846050C-8AE6-4CF0-8E82-F0094C07DF1C","8081A950-821A-45C1-AB8A-BE1DEA5A079D","E8BD872D-8359-445C-8598-11921C8DF5C0","628A8ABB-D252-44C2-A691-787E10FB688A","FF42C2CF-EE50-49A8-9CB0-1FE0D9750CB4","B188F008-4C66-4D53-9688-2502DC79AFE4","823A140D-ECB8-4601-A9D3-F94BA4B7113B","0D5505BB-F13D-4FD0-A089-452C2FFA1B04","81A1C9E2-A477-4386-A258-CCC63F3B2EE5","60B14D45-B826-4A25-8424-C21D12AEF90D","168B3660-2053-4561-B6E3-5362623FF570","DF4F20DD-161A-4790-AE46-29CAE6524D65","950D940B-46D1-4FC8-A660-512F4DB17EEF","FC396BBB-810A-49C6-863F-8A20ACDA1B2A"],"isLockOwner":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"6351":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6352},"_Extent":{"__isSmartRef__":true,"id":6353},"_BorderColor":{"__isSmartRef__":true,"id":6354},"renderContextTable":{"__isSmartRef__":true,"id":6355},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6356},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6352":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6353":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6354":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6355":{"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"},"6356":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6357":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6358":{"style":{"__isSmartRef__":true,"id":6359},"chunkOwner":{"__isSmartRef__":true,"id":6350},"storedString":"ObjectEditorAddOpenCurlyBraceButton","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6359":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6360":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6361":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6362":{"sourceObj":{"__isSmartRef__":true,"id":6350},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":6349},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"6363":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6364":{"morph":{"__isSmartRef__":true,"id":6350},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6365":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6366},"_Extent":{"__isSmartRef__":true,"id":6367},"_Fill":{"__isSmartRef__":true,"id":6368},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6378},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":6379},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6380},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6366":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6367":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6368":{"stops":[{"__isSmartRef__":true,"id":6369},{"__isSmartRef__":true,"id":6371},{"__isSmartRef__":true,"id":6373},{"__isSmartRef__":true,"id":6375}],"vector":{"__isSmartRef__":true,"id":6377},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6369":{"offset":0,"color":{"__isSmartRef__":true,"id":6370}},"6370":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6371":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6372}},"6372":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6373":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6374}},"6374":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6375":{"offset":1,"color":{"__isSmartRef__":true,"id":6376}},"6376":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6377":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6378":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6379":{"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"},"6380":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6381":{"x":241.15654326393195,"y":10.051355170231119,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6382":{"stops":[{"__isSmartRef__":true,"id":6383},{"__isSmartRef__":true,"id":6385},{"__isSmartRef__":true,"id":6387},{"__isSmartRef__":true,"id":6389}],"vector":{"__isSmartRef__":true,"id":6377},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6383":{"offset":0,"color":{"__isSmartRef__":true,"id":6384}},"6384":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6385":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6386}},"6386":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6387":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6388}},"6388":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6389":{"offset":1,"color":{"__isSmartRef__":true,"id":6390}},"6390":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6391":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6392":{"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"},"6393":{"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"},"6394":{"morph":{"__isSmartRef__":true,"id":6349},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6395":{"x":163.49122475735174,"y":-15.233000571157135,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6396":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6397":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":6398},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6404},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":6405},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":6406},"_TextColor":{"__isSmartRef__":true,"id":6407},"renderContextTable":{"__isSmartRef__":true,"id":6408},"textChunks":[{"__isSmartRef__":true,"id":6409}],"eventHandler":{"__isSmartRef__":true,"id":6411},"priorExtent":{"__isSmartRef__":true,"id":6412},"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":6413},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"6398":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6399},"_Extent":{"__isSmartRef__":true,"id":6400},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6401},"renderContextTable":{"__isSmartRef__":true,"id":6402},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6403},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6399":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6400":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6401":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6402":{"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"},"6403":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6404":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6405":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6406":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6407":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6408":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6409":{"style":{"__isSmartRef__":true,"id":6410},"chunkOwner":{"__isSmartRef__":true,"id":6397},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"6410":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6411":{"morph":{"__isSmartRef__":true,"id":6397},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6412":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6413":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6414":{"createListMorph":{"__isSmartRef__":true,"id":6415},"getList":{"__isSmartRef__":true,"id":6419},"removeList":{"__isSmartRef__":true,"id":6423},"reset":{"__isSmartRef__":true,"id":6427},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":6431},"onMouseDown":{"__isSmartRef__":true,"id":6435},"setTargetOfPane":{"__isSmartRef__":true,"id":6443},"setTargetToListSelection":{"__isSmartRef__":true,"id":6447},"onBlur":{"__isSmartRef__":true,"id":6451},"setTarget":{"__isSmartRef__":true,"id":6459},"setTargetOnSelection":{"__isSmartRef__":true,"id":6463}},"6415":{"varMapping":{"__isSmartRef__":true,"id":6416},"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":6417},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6416":{"this":{"__isSmartRef__":true,"id":6349}},"6417":{"timestamp":{"__isSmartRef__":true,"id":6418},"user":"lauritz","tags":[]},"6418":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (Mitteleuropäische Zeit)"},"6419":{"varMapping":{"__isSmartRef__":true,"id":6420},"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":6421},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6420":{"this":{"__isSmartRef__":true,"id":6349}},"6421":{"timestamp":{"__isSmartRef__":true,"id":6422},"user":"lauritz","tags":[]},"6422":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (Mitteleuropäische Zeit)"},"6423":{"varMapping":{"__isSmartRef__":true,"id":6424},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":6425},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6424":{"this":{"__isSmartRef__":true,"id":6349}},"6425":{"timestamp":{"__isSmartRef__":true,"id":6426},"user":"lauritz","tags":[]},"6426":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (Mitteleuropäische Zeit)"},"6427":{"varMapping":{"__isSmartRef__":true,"id":6428},"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":6429},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6428":{"this":{"__isSmartRef__":true,"id":6349}},"6429":{"timestamp":{"__isSmartRef__":true,"id":6430},"user":"lauritz","tags":[]},"6430":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Mitteleuropäische Zeit)"},"6431":{"varMapping":{"__isSmartRef__":true,"id":6432},"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":6433},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6432":{"this":{"__isSmartRef__":true,"id":6349}},"6433":{"timestamp":{"__isSmartRef__":true,"id":6434},"user":"lauritz","tags":[]},"6434":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (Mitteleuropäische Zeit)"},"6435":{"varMapping":{"__isSmartRef__":true,"id":6436},"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":6441},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6436":{"this":{"__isSmartRef__":true,"id":6349},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6437}},"6437":{"$super":{"__isSmartRef__":true,"id":6438}},"6438":{"varMapping":{"__isSmartRef__":true,"id":6439},"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":6440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6439":{"obj":{"__isSmartRef__":true,"id":6349},"name":"onMouseDown"},"6440":{},"6441":{"timestamp":{"__isSmartRef__":true,"id":6442},"user":"lauritz","tags":[]},"6442":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (Mitteleuropäische Zeit)"},"6443":{"varMapping":{"__isSmartRef__":true,"id":6444},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":6445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6444":{"this":{"__isSmartRef__":true,"id":6349}},"6445":{"timestamp":{"__isSmartRef__":true,"id":6446},"user":"lauritz","tags":[]},"6446":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Mitteleuropäische Zeit)"},"6447":{"varMapping":{"__isSmartRef__":true,"id":6448},"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":6449},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6448":{"this":{"__isSmartRef__":true,"id":6349}},"6449":{"timestamp":{"__isSmartRef__":true,"id":6450},"user":"lauritz","tags":[]},"6450":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Mitteleuropäische Zeit)"},"6451":{"varMapping":{"__isSmartRef__":true,"id":6452},"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":6457},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6452":{"this":{"__isSmartRef__":true,"id":6349},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6453}},"6453":{"$super":{"__isSmartRef__":true,"id":6454}},"6454":{"varMapping":{"__isSmartRef__":true,"id":6455},"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":6456},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6455":{"obj":{"__isSmartRef__":true,"id":6349},"name":"onBlur"},"6456":{},"6457":{"timestamp":{"__isSmartRef__":true,"id":6458},"user":"lauritz","tags":[]},"6458":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (Mitteleuropäische Zeit)"},"6459":{"varMapping":{"__isSmartRef__":true,"id":6460},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":6461},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6460":{"this":{"__isSmartRef__":true,"id":6349}},"6461":{"timestamp":{"__isSmartRef__":true,"id":6462},"user":"lauritz","tags":[]},"6462":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Mitteleuropäische Zeit)"},"6463":{"varMapping":{"__isSmartRef__":true,"id":6464},"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":6465},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6464":{"this":{"__isSmartRef__":true,"id":6349}},"6465":{"timestamp":{"__isSmartRef__":true,"id":6466},"user":"lauritz","tags":[]},"6466":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Mitteleuropäische Zeit)"},"6467":{"submorphs":[{"__isSmartRef__":true,"id":6468}],"scripts":[],"id":"152E0534-6EE3-4DF6-A614-BDB6785DFA3D","shape":{"__isSmartRef__":true,"id":6483},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6499},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6486},"lighterFill":{"__isSmartRef__":true,"id":6500},"label":{"__isSmartRef__":true,"id":6468},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":6509},"name":"ObjectEditorAddOpenCurlyBraceButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":6510},"renderContextTable":{"__isSmartRef__":true,"id":6511},"priorExtent":{"__isSmartRef__":true,"id":6512},"eventHandler":{"__isSmartRef__":true,"id":6513},"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":6514},"isCopyMorphRef":true,"morphRefId":22,"derivationIds":[213,"67D577AB-1BB3-4252-B0D4-99A23697F70A","A2FCBD72-EE0A-4D04-8A92-348AE43B41D7","A2345795-D086-4B81-84AF-2DEB8C0C2FFA","0A260566-FCDD-4DCF-8E29-9A08EACF6825","9AD1B434-5F24-4772-B3D6-D23B387A75A9","B62B376D-67B2-40F8-AE4F-5884DEF6B16A","E2B46975-BC6B-41CD-AB73-57C8D9494D46","51087BA0-A221-474A-BEC0-EA9AB0EB380E","528A9E32-235F-446F-8EB7-CF0BA19E8A6B","279F191C-5CAB-4956-B31D-3CDAA5F3254C","2E76486A-34BB-4FF3-8DBD-58187875A584","5B5D4208-AFC0-4761-993F-20EC461587C4","1F0AC3DA-5A18-4481-BA52-A47376831BB5","7095D942-3E83-4AA0-8536-7BF0655364A5","085F157A-94D9-4CEE-8E81-570E0EB3D206","C6BC8D39-27D9-4DE6-93FE-2B796BC40054","9BE71EE0-91FB-4989-AC52-35399D1C062A","AD56386A-212E-4380-B39E-ED9C49A56D17","21E65F69-3069-484C-8A67-EC50B3F45CF8","6A010B9B-E383-4B8A-9C50-3EDDB7DA3D05","27C59DC2-20F2-4588-A200-F1A851890EA3","C81856EC-F5B2-4B06-B029-88875EB1FAE0","155514AA-9529-4473-9824-610681EAE634","A4AD88FC-1B8F-4B42-B765-8C9ACEA6EAFC","92A37A56-F779-45B3-862E-0F1F98A5AE99","C2DB7939-5CE0-407C-A1EA-BA7F3939ADEB","1E42DF82-9D01-4FCD-A9EA-40DC44F1D5CE"],"isLockOwner":false,"databaseID":"294ac5bfbbe41ba349bc056e97d0b541","databaseRev":"1-7a2b71c21899effda01593ed0e35b2de","textMorph":{"__isSmartRef__":true,"id":4632},"prevSelectionRange":[177,177],"owner":{"__isSmartRef__":true,"id":4660},"_Rotation":0,"_Scale":0.9665550620990828,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6515},"__LivelyClassName__":"lively.morphic.Button"},"6468":{"submorphs":[],"scripts":[],"id":"91CDC051-31DB-4E97-9A5B-91C84038E92C","shape":{"__isSmartRef__":true,"id":6469},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6475},"textColor":{"__isSmartRef__":true,"id":6472},"owner":{"__isSmartRef__":true,"id":6467},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":6476}],"padding":{"__isSmartRef__":true,"id":6478},"_Padding":{"__isSmartRef__":true,"id":6479},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6480},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":6481},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":6482},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[214,"523747A8-85D2-4FA2-9C4A-C51786457E22","95516A91-5268-4C7E-A2E0-40B45D2EE1FA","FFE672EF-5731-4472-B296-7F6C7CA559FC","E2EECCEE-F80F-4AFD-BF9E-95BB6A9A1C93","355346D2-A7A5-4445-8845-6B44FDC07A7B","BD870722-965F-435D-B412-3AF6D1F49DF3","45A3F198-ABAE-42A6-B660-08BCA7C40AE2","FD49F8E1-A231-4125-9112-82254E92910A","5416C1DD-72C4-4E59-80E4-4A522F07FAD0","80195F0E-7261-4780-9770-8748BAEB2917","CC873A7E-B52D-407E-9520-68E7B9EC0495","A0A09E4A-A6B7-4889-B13E-8B3426963C02","59A024C9-FC71-4CCD-8B27-A8D0D8B92DE0","36E8077F-5B46-4524-A79C-E71DBB593873","CFCCA298-F726-470E-87D7-7EAF2828C66C","60110246-6DAE-4280-A65E-38C2D23350E4","057EE310-101B-464B-BBE1-E4D26614B11E","3546CBD4-9273-4BBA-8778-23B977698D57","B725D870-F18A-4533-AAC2-23EF207FD066","6A516C3A-70D1-468D-95E5-B97001BBF123","027ECAC4-3F43-4FEB-8696-54EF35D275CE","0062ABF9-3223-4C29-9EA0-31CD436D7B2F","78C309E7-54AA-4F93-B136-57DDA1AD156C","FC87CAD1-42DC-458F-BBF2-33BA173D42B2","8912F57B-7495-4C82-8964-400940A64C99","58C4D8A6-3C81-46F7-9CAD-754473960D73","3C74A117-48F4-4CBE-81E2-CC1EF56111A2"],"isLockOwner":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"6469":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6470},"_Extent":{"__isSmartRef__":true,"id":6471},"_BorderColor":{"__isSmartRef__":true,"id":6472},"renderContextTable":{"__isSmartRef__":true,"id":6473},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6474},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6470":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6471":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6472":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6473":{"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"},"6474":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6475":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6476":{"style":{"__isSmartRef__":true,"id":6477},"chunkOwner":{"__isSmartRef__":true,"id":6468},"storedString":"{","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"6477":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6478":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6479":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6480":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6481":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6482":{"morph":{"__isSmartRef__":true,"id":6468},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6483":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6484},"_Extent":{"__isSmartRef__":true,"id":6485},"_Fill":{"__isSmartRef__":true,"id":6486},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6496},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":6497},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6498},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6484":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6485":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6486":{"stops":[{"__isSmartRef__":true,"id":6487},{"__isSmartRef__":true,"id":6489},{"__isSmartRef__":true,"id":6491},{"__isSmartRef__":true,"id":6493}],"vector":{"__isSmartRef__":true,"id":6495},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6487":{"offset":0,"color":{"__isSmartRef__":true,"id":6488}},"6488":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6489":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6490}},"6490":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6491":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6492}},"6492":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6493":{"offset":1,"color":{"__isSmartRef__":true,"id":6494}},"6494":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6495":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6496":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6497":{"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"},"6498":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6499":{"x":629.6544232254928,"y":50.06219202934881,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6500":{"stops":[{"__isSmartRef__":true,"id":6501},{"__isSmartRef__":true,"id":6503},{"__isSmartRef__":true,"id":6505},{"__isSmartRef__":true,"id":6507}],"vector":{"__isSmartRef__":true,"id":6495},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6501":{"offset":0,"color":{"__isSmartRef__":true,"id":6502}},"6502":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6503":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6504}},"6504":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6505":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6506}},"6506":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6507":{"offset":1,"color":{"__isSmartRef__":true,"id":6508}},"6508":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6509":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6510":{"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"},"6511":{"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"},"6512":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6513":{"morph":{"__isSmartRef__":true,"id":6467},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6514":{"x":35.48371646380383,"y":-14.963503330335698,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6515":{"onMouseDown":{"__isSmartRef__":true,"id":6516}},"6516":{"varMapping":{"__isSmartRef__":true,"id":6517},"source":"function onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","funcProperties":{"__isSmartRef__":true,"id":6522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6517":{"this":{"__isSmartRef__":true,"id":6467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6518}},"6518":{"$super":{"__isSmartRef__":true,"id":6519}},"6519":{"varMapping":{"__isSmartRef__":true,"id":6520},"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":6521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6520":{"obj":{"__isSmartRef__":true,"id":6467},"name":"onMouseDown"},"6521":{},"6522":{"timestamp":{"__isSmartRef__":true,"id":6523},"user":"undefined","tags":[]},"6523":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit)"},"6524":{"submorphs":[{"__isSmartRef__":true,"id":6525}],"scripts":[],"id":"0597C51D-AE27-4078-9A9A-40597D17F724","shape":{"__isSmartRef__":true,"id":6540},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6556},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":6543},"lighterFill":{"__isSmartRef__":true,"id":6557},"label":{"__isSmartRef__":true,"id":6525},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":6566},"name":"ObjectEditorAddCloseCurlyBraceButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":6567},"renderContextTable":{"__isSmartRef__":true,"id":6568},"priorExtent":{"__isSmartRef__":true,"id":6569},"eventHandler":{"__isSmartRef__":true,"id":6570},"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":6571},"isCopyMorphRef":true,"morphRefId":22,"derivationIds":[213,"67D577AB-1BB3-4252-B0D4-99A23697F70A","A2FCBD72-EE0A-4D04-8A92-348AE43B41D7","A2345795-D086-4B81-84AF-2DEB8C0C2FFA","0A260566-FCDD-4DCF-8E29-9A08EACF6825","9AD1B434-5F24-4772-B3D6-D23B387A75A9","B62B376D-67B2-40F8-AE4F-5884DEF6B16A","E2B46975-BC6B-41CD-AB73-57C8D9494D46","51087BA0-A221-474A-BEC0-EA9AB0EB380E","528A9E32-235F-446F-8EB7-CF0BA19E8A6B","279F191C-5CAB-4956-B31D-3CDAA5F3254C","2E76486A-34BB-4FF3-8DBD-58187875A584","5B5D4208-AFC0-4761-993F-20EC461587C4","1F0AC3DA-5A18-4481-BA52-A47376831BB5","7095D942-3E83-4AA0-8536-7BF0655364A5","085F157A-94D9-4CEE-8E81-570E0EB3D206","C6BC8D39-27D9-4DE6-93FE-2B796BC40054","9BE71EE0-91FB-4989-AC52-35399D1C062A","AD56386A-212E-4380-B39E-ED9C49A56D17","21E65F69-3069-484C-8A67-EC50B3F45CF8","6A010B9B-E383-4B8A-9C50-3EDDB7DA3D05","27C59DC2-20F2-4588-A200-F1A851890EA3","C81856EC-F5B2-4B06-B029-88875EB1FAE0","155514AA-9529-4473-9824-610681EAE634","A4AD88FC-1B8F-4B42-B765-8C9ACEA6EAFC","92A37A56-F779-45B3-862E-0F1F98A5AE99","39DA3D7F-3B91-41C2-AE7E-200D45E74E2E","337398AF-848A-46E8-88FD-F1808AE3D706","9B9B6757-FF46-455F-9376-46D37E488EED"],"isLockOwner":false,"databaseID":"294ac5bfbbe41ba349bc056e97d0b472","databaseRev":"1-bb2776a98b020fc29ed0429680909100","textMorph":{"__isSmartRef__":true,"id":4632},"prevSelectionRange":[224,224],"owner":{"__isSmartRef__":true,"id":4660},"_Rotation":0,"_Scale":0.9360999518731563,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6572},"__LivelyClassName__":"lively.morphic.Button"},"6525":{"submorphs":[],"scripts":[],"id":"4CEA7A55-7DC7-4AEB-8BC9-F599BEAE9213","shape":{"__isSmartRef__":true,"id":6526},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6532},"textColor":{"__isSmartRef__":true,"id":6529},"owner":{"__isSmartRef__":true,"id":6524},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":6533}],"padding":{"__isSmartRef__":true,"id":6535},"_Padding":{"__isSmartRef__":true,"id":6536},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":6537},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":6538},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":6539},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[214,"523747A8-85D2-4FA2-9C4A-C51786457E22","95516A91-5268-4C7E-A2E0-40B45D2EE1FA","FFE672EF-5731-4472-B296-7F6C7CA559FC","E2EECCEE-F80F-4AFD-BF9E-95BB6A9A1C93","355346D2-A7A5-4445-8845-6B44FDC07A7B","BD870722-965F-435D-B412-3AF6D1F49DF3","45A3F198-ABAE-42A6-B660-08BCA7C40AE2","FD49F8E1-A231-4125-9112-82254E92910A","5416C1DD-72C4-4E59-80E4-4A522F07FAD0","80195F0E-7261-4780-9770-8748BAEB2917","CC873A7E-B52D-407E-9520-68E7B9EC0495","A0A09E4A-A6B7-4889-B13E-8B3426963C02","59A024C9-FC71-4CCD-8B27-A8D0D8B92DE0","36E8077F-5B46-4524-A79C-E71DBB593873","CFCCA298-F726-470E-87D7-7EAF2828C66C","60110246-6DAE-4280-A65E-38C2D23350E4","057EE310-101B-464B-BBE1-E4D26614B11E","3546CBD4-9273-4BBA-8778-23B977698D57","B725D870-F18A-4533-AAC2-23EF207FD066","6A516C3A-70D1-468D-95E5-B97001BBF123","027ECAC4-3F43-4FEB-8696-54EF35D275CE","0062ABF9-3223-4C29-9EA0-31CD436D7B2F","78C309E7-54AA-4F93-B136-57DDA1AD156C","FC87CAD1-42DC-458F-BBF2-33BA173D42B2","8912F57B-7495-4C82-8964-400940A64C99","A64E64C8-EC12-4D25-B11C-59C59B88EA0A","BF02642C-5DEB-43C9-A8A2-E005B8B06896","2E6D403B-C65C-41F5-8553-A2B06843131E"],"isLockOwner":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"6526":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6527},"_Extent":{"__isSmartRef__":true,"id":6528},"_BorderColor":{"__isSmartRef__":true,"id":6529},"renderContextTable":{"__isSmartRef__":true,"id":6530},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":6531},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6527":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6528":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6529":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6530":{"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"},"6531":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6532":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6533":{"style":{"__isSmartRef__":true,"id":6534},"chunkOwner":{"__isSmartRef__":true,"id":6525},"storedString":"}","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"6534":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"6535":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6536":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6537":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6538":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6539":{"morph":{"__isSmartRef__":true,"id":6525},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6540":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":6541},"_Extent":{"__isSmartRef__":true,"id":6542},"_Fill":{"__isSmartRef__":true,"id":6543},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6553},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":6554},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6555},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6541":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6542":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6543":{"stops":[{"__isSmartRef__":true,"id":6544},{"__isSmartRef__":true,"id":6546},{"__isSmartRef__":true,"id":6548},{"__isSmartRef__":true,"id":6550}],"vector":{"__isSmartRef__":true,"id":6552},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6544":{"offset":0,"color":{"__isSmartRef__":true,"id":6545}},"6545":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6546":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6547}},"6547":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6548":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6549}},"6549":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6550":{"offset":1,"color":{"__isSmartRef__":true,"id":6551}},"6551":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6552":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6553":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6554":{"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"},"6555":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6556":{"x":659.1513113792674,"y":50.288743574032424,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6557":{"stops":[{"__isSmartRef__":true,"id":6558},{"__isSmartRef__":true,"id":6560},{"__isSmartRef__":true,"id":6562},{"__isSmartRef__":true,"id":6564}],"vector":{"__isSmartRef__":true,"id":6552},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"6558":{"offset":0,"color":{"__isSmartRef__":true,"id":6559}},"6559":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6560":{"offset":0.4,"color":{"__isSmartRef__":true,"id":6561}},"6561":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6562":{"offset":0.6,"color":{"__isSmartRef__":true,"id":6563}},"6563":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6564":{"offset":1,"color":{"__isSmartRef__":true,"id":6565}},"6565":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6566":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6567":{"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"},"6568":{"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"},"6569":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6570":{"morph":{"__isSmartRef__":true,"id":6524},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6571":{"x":34.96726534728771,"y":-9.209407535266962,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6572":{"onMouseDown":{"__isSmartRef__":true,"id":6573}},"6573":{"varMapping":{"__isSmartRef__":true,"id":6574},"source":"function onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"}\", true, true);\n}","funcProperties":{"__isSmartRef__":true,"id":6579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6574":{"this":{"__isSmartRef__":true,"id":6524},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6575}},"6575":{"$super":{"__isSmartRef__":true,"id":6576}},"6576":{"varMapping":{"__isSmartRef__":true,"id":6577},"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":6578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6577":{"obj":{"__isSmartRef__":true,"id":6524},"name":"onMouseDown"},"6578":{},"6579":{"timestamp":{"__isSmartRef__":true,"id":6580},"user":"undefined","tags":[]},"6580":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:33 GMT+0200 (Mitteleuropäische Sommerzeit)"},"6581":{"target":{"__isSmartRef__":true,"id":4660},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":4654,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"6582":{"position":{"__isSmartRef__":true,"id":6583},"_Extent":{"__isSmartRef__":true,"id":6584},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6585},"_Fill":{"__isSmartRef__":true,"id":6586},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6587},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6588},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6583":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6584":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6585":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6586":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6587":{"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"},"6588":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6589":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":6590}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6590":{"date":{"__isSmartRef__":true,"id":6591},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"6591":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Mitteleuropäische Sommerzeit)"},"6592":{"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"},"6593":{"morph":{"__isSmartRef__":true,"id":4660},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6594":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6595":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"6596":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6597":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6598":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"currentHaloTarget","targetObj":{"__isSmartRef__":true,"id":4660},"targetMethodName":"updateTarget","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"6599":{"onrestore":{"__isSmartRef__":true,"id":6600},"setupConnections":{"__isSmartRef__":true,"id":6608},"displayInitialScript":{"__isSmartRef__":true,"id":6612},"displayJavaScriptSource":{"__isSmartRef__":true,"id":6616},"displaySourceForConnection":{"__isSmartRef__":true,"id":6620},"displaySourceForScript":{"__isSmartRef__":true,"id":6624},"generateSourceForConnection":{"__isSmartRef__":true,"id":6628},"generateSourceForScript":{"__isSmartRef__":true,"id":6632},"generateTargetCode":{"__isSmartRef__":true,"id":6636},"newConnection":{"__isSmartRef__":true,"id":6640},"newScript":{"__isSmartRef__":true,"id":6644},"reset":{"__isSmartRef__":true,"id":6648},"selectChangedContent":{"__isSmartRef__":true,"id":6652},"setTarget":{"__isSmartRef__":true,"id":6656},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":6660},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":6664},"updateLists":{"__isSmartRef__":true,"id":6668},"onShutdown":{"__isSmartRef__":true,"id":6672},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":6676},"update":{"__isSmartRef__":true,"id":6680},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":6684},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":6688},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":6692},"printTags":{"__isSmartRef__":true,"id":6700},"setTag":{"__isSmartRef__":true,"id":6704},"runScript":{"__isSmartRef__":true,"id":6708},"openPartTestRunner":{"__isSmartRef__":true,"id":6712},"saveScriptWithSource":{"__isSmartRef__":true,"id":6716},"removeTimeStampComment":{"__isSmartRef__":true,"id":6720},"updateTarget":{"__isSmartRef__":true,"id":6724}},"6600":{"varMapping":{"__isSmartRef__":true,"id":6601},"source":"function onrestore() {\n $super()\n this.setupConnections()\n this.beTool() \n}","funcProperties":{"__isSmartRef__":true,"id":6606},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6601":{"this":{"__isSmartRef__":true,"id":4660},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6602}},"6602":{"$super":{"__isSmartRef__":true,"id":6603}},"6603":{"varMapping":{"__isSmartRef__":true,"id":6604},"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":6605},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6604":{"obj":{"__isSmartRef__":true,"id":4660},"name":"onrestore"},"6605":{},"6606":{"timestamp":{"__isSmartRef__":true,"id":6607},"user":"huberthesse","tags":[]},"6607":{"isSerializedDate":true,"string":"Wed Mar 14 2012 16:40:05 GMT+0100 (Mitteleuropäische Zeit)"},"6608":{"varMapping":{"__isSmartRef__":true,"id":6609},"source":"function setupConnections() {\n this.worldConnection = connect(lively.morphic.World.current(), 'currentHaloTarget', this, 'updateTarget') \n}","funcProperties":{"__isSmartRef__":true,"id":6610},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6609":{"this":{"__isSmartRef__":true,"id":4660}},"6610":{"timestamp":{"__isSmartRef__":true,"id":6611},"user":"huberthesse","tags":[]},"6611":{"isSerializedDate":true,"string":"Wed Mar 14 2012 17:00:14 GMT+0100 (Mitteleuropäische Zeit)"},"6612":{"varMapping":{"__isSmartRef__":true,"id":6613},"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":6614},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6613":{"this":{"__isSmartRef__":true,"id":4660}},"6614":{"timestamp":{"__isSmartRef__":true,"id":6615},"user":"lauritz","tags":[]},"6615":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Mitteleuropäische Zeit)"},"6616":{"varMapping":{"__isSmartRef__":true,"id":6617},"source":"function displayJavaScriptSource(jsCode, scriptName) {\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 if (scriptName) {\n this.get('TagsEntry').textString = this.printTags(this.target[scriptName]);\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6618},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6617":{"this":{"__isSmartRef__":true,"id":4660}},"6618":{"timestamp":{"__isSmartRef__":true,"id":6619},"user":"fabian","tags":[]},"6619":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:50:49 GMT+0100 (Mitteleuropäische Zeit)"},"6620":{"varMapping":{"__isSmartRef__":true,"id":6621},"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":6622},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6621":{"this":{"__isSmartRef__":true,"id":4660}},"6622":{"timestamp":{"__isSmartRef__":true,"id":6623},"user":"conradcalmez","tags":[]},"6623":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Mitteleuropäische Zeit)"},"6624":{"varMapping":{"__isSmartRef__":true,"id":6625},"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, scriptName);\n}","funcProperties":{"__isSmartRef__":true,"id":6626},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6625":{"this":{"__isSmartRef__":true,"id":4660}},"6626":{"timestamp":{"__isSmartRef__":true,"id":6627},"user":"fabian","tags":[]},"6627":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:28:26 GMT+0100 (Mitteleuropäische Zeit)"},"6628":{"varMapping":{"__isSmartRef__":true,"id":6629},"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":6630},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6629":{"this":{"__isSmartRef__":true,"id":4660}},"6630":{"timestamp":{"__isSmartRef__":true,"id":6631},"user":"lauritz","tags":[]},"6631":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"6632":{"varMapping":{"__isSmartRef__":true,"id":6633},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = script.sourceString ||\n script.getOriginal().sourceString ||\n String(script);\n\n scriptSource = this.removeTimeStampComment(scriptSource);\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed on %s by %s \\n', script.timestamp, script.user);\n \n // FIXME: fix getOriginal!\n scriptSource = Strings.format('%s', scriptSource);\n\n return annotation + scriptSource;\n}","funcProperties":{"__isSmartRef__":true,"id":6634},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6633":{"this":{"__isSmartRef__":true,"id":4660}},"6634":{"timestamp":{"__isSmartRef__":true,"id":6635},"user":"robertkrahn","tags":[]},"6635":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:08:46 GMT+0100 (Mitteleuropäische Zeit)"},"6636":{"varMapping":{"__isSmartRef__":true,"id":6637},"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":6638},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6637":{"this":{"__isSmartRef__":true,"id":4660}},"6638":{"timestamp":{"__isSmartRef__":true,"id":6639},"user":"lauritz","tags":[]},"6639":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"6640":{"varMapping":{"__isSmartRef__":true,"id":6641},"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":6642},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6641":{"this":{"__isSmartRef__":true,"id":4660}},"6642":{"timestamp":{"__isSmartRef__":true,"id":6643},"user":"lauritz","tags":[]},"6643":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Mitteleuropäische Zeit)"},"6644":{"varMapping":{"__isSmartRef__":true,"id":6645},"source":"function newScript() {\n if (this.target) {\n var code = \"function SCRIPTNAME() {\\n \\n}\";\n this.displayJavaScriptSource(code);\n this.get('TagsEntry').textString = '[]';\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6646},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6645":{"this":{"__isSmartRef__":true,"id":4660}},"6646":{"timestamp":{"__isSmartRef__":true,"id":6647},"user":"fabian","tags":[]},"6647":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:15 GMT+0100 (Mitteleuropäische Zeit)"},"6648":{"varMapping":{"__isSmartRef__":true,"id":6649},"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.get('TagsEntry').textString = '[]';\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":6650},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6649":{"this":{"__isSmartRef__":true,"id":4660}},"6650":{"timestamp":{"__isSmartRef__":true,"id":6651},"user":"fabian","tags":[]},"6651":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:40 GMT+0100 (Mitteleuropäische Zeit)"},"6652":{"varMapping":{"__isSmartRef__":true,"id":6653},"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 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6815":{"this":{"__isSmartRef__":true,"id":6800}},"6816":{},"6817":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6818},"derivationIds":[null],"id":"D825E48F-702F-4BDA-8FE0-E51EA5F7FD8D","renderContextTable":{"__isSmartRef__":true,"id":6822},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6823},{"__isSmartRef__":true,"id":6825}],"eventHandler":{"__isSmartRef__":true,"id":6827},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6828},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6799},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6829},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6818":{"_Position":{"__isSmartRef__":true,"id":6819},"renderContextTable":{"__isSmartRef__":true,"id":6820},"_Extent":{"__isSmartRef__":true,"id":6821},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6819":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6820":{"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"},"6821":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6822":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6823":{"style":{"__isSmartRef__":true,"id":6824},"chunkOwner":{"__isSmartRef__":true,"id":6817},"storedString":"$$textString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6824":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6825":{"style":{"__isSmartRef__":true,"id":6826},"chunkOwner":{"__isSmartRef__":true,"id":6817},"storedString":": // changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by unde...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6826":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6827":{"morph":{"__isSmartRef__":true,"id":6817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6828":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6829":{"layoutText":{"__isSmartRef__":true,"id":6830}},"6830":{"varMapping":{"__isSmartRef__":true,"id":6831},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6831":{"this":{"__isSmartRef__":true,"id":6817}},"6832":{},"6833":{"_Position":{"__isSmartRef__":true,"id":6834},"renderContextTable":{"__isSmartRef__":true,"id":6835},"_Extent":{"__isSmartRef__":true,"id":6836},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6837},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6834":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6835":{"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"},"6836":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6837":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6838":{"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"},"6839":{"morph":{"__isSmartRef__":true,"id":6799},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6840":{"resizeWidth":true},"6841":{"submorphs":[{"__isSmartRef__":true,"id":6799}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6842},"derivationIds":[null],"id":"7185CE69-E506-4E0A-9B3B-CA0EA5C87D84","renderContextTable":{"__isSmartRef__":true,"id":6847},"eventHandler":{"__isSmartRef__":true,"id":6848},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6849},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6851},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":12191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12192},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6842":{"_Position":{"__isSmartRef__":true,"id":6843},"renderContextTable":{"__isSmartRef__":true,"id":6844},"_Extent":{"__isSmartRef__":true,"id":6845},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6846},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6843":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6844":{"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"},"6845":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6846":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6847":{"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"},"6848":{"morph":{"__isSmartRef__":true,"id":6841},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6849":{"layouter":{"__isSmartRef__":true,"id":6850},"resizeWidth":true},"6850":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6841},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6851":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6852":{"submorphs":[{"__isSmartRef__":true,"id":6841},{"__isSmartRef__":true,"id":6853},{"__isSmartRef__":true,"id":6937},{"__isSmartRef__":true,"id":7021},{"__isSmartRef__":true,"id":7105},{"__isSmartRef__":true,"id":7189},{"__isSmartRef__":true,"id":7273},{"__isSmartRef__":true,"id":7357},{"__isSmartRef__":true,"id":7441},{"__isSmartRef__":true,"id":7525},{"__isSmartRef__":true,"id":7609},{"__isSmartRef__":true,"id":7693},{"__isSmartRef__":true,"id":7777},{"__isSmartRef__":true,"id":7861},{"__isSmartRef__":true,"id":7945},{"__isSmartRef__":true,"id":8029},{"__isSmartRef__":true,"id":8113},{"__isSmartRef__":true,"id":8198},{"__isSmartRef__":true,"id":8282},{"__isSmartRef__":true,"id":8366},{"__isSmartRef__":true,"id":8450},{"__isSmartRef__":true,"id":8534},{"__isSmartRef__":true,"id":8618},{"__isSmartRef__":true,"id":8702},{"__isSmartRef__":true,"id":8786},{"__isSmartRef__":true,"id":8870},{"__isSmartRef__":true,"id":8954},{"__isSmartRef__":true,"id":9038},{"__isSmartRef__":true,"id":9122},{"__isSmartRef__":true,"id":9206},{"__isSmartRef__":true,"id":9290},{"__isSmartRef__":true,"id":9374},{"__isSmartRef__":true,"id":9458},{"__isSmartRef__":true,"id":9542},{"__isSmartRef__":true,"id":9626},{"__isSmartRef__":true,"id":9710},{"__isSmartRef__":true,"id":9794},{"__isSmartRef__":true,"id":9878},{"__isSmartRef__":true,"id":9962},{"__isSmartRef__":true,"id":10046},{"__isSmartRef__":true,"id":10130},{"__isSmartRef__":true,"id":10214},{"__isSmartRef__":true,"id":10298},{"__isSmartRef__":true,"id":10382},{"__isSmartRef__":true,"id":10466},{"__isSmartRef__":true,"id":10550},{"__isSmartRef__":true,"id":10634},{"__isSmartRef__":true,"id":10718},{"__isSmartRef__":true,"id":10802},{"__isSmartRef__":true,"id":10886},{"__isSmartRef__":true,"id":10970},{"__isSmartRef__":true,"id":11054},{"__isSmartRef__":true,"id":11138},{"__isSmartRef__":true,"id":11413},{"__isSmartRef__":true,"id":11497},{"__isSmartRef__":true,"id":11581},{"__isSmartRef__":true,"id":11665},{"__isSmartRef__":true,"id":11749},{"__isSmartRef__":true,"id":11833},{"__isSmartRef__":true,"id":11917},{"__isSmartRef__":true,"id":12001},{"__isSmartRef__":true,"id":12085}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12169},"derivationIds":[null],"id":"AE044B7B-7F77-4F9F-9A49-46477CB86CF3","renderContextTable":{"__isSmartRef__":true,"id":12174},"eventHandler":{"__isSmartRef__":true,"id":12175},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12176},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12178},"owner":{"__isSmartRef__":true,"id":4586},"_Position":{"__isSmartRef__":true,"id":12179},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12180},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6853":{"submorphs":[{"__isSmartRef__":true,"id":6854}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6918},"derivationIds":[null],"id":"65583519-B749-4186-970B-F8DCF7F4BF71","renderContextTable":{"__isSmartRef__":true,"id":6923},"eventHandler":{"__isSmartRef__":true,"id":6924},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6925},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6927},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":6928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6929},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6854":{"submorphs":[{"__isSmartRef__":true,"id":6855},{"__isSmartRef__":true,"id":6872}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6888},"derivationIds":[null],"id":"76E60C7B-3BB4-45FF-BF05-9A3F7466D23A","renderContextTable":{"__isSmartRef__":true,"id":6893},"eventHandler":{"__isSmartRef__":true,"id":6894},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6895},"grabbingEnabled":false,"draggingEnabled":false,"data":"left","propertyList":["0","1","2","3"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_Align","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":6855},"text":{"__isSmartRef__":true,"id":6872},"owner":{"__isSmartRef__":true,"id":6853},"_Position":{"__isSmartRef__":true,"id":6896},"priorExtent":{"__isSmartRef__":true,"id":6897},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6898},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6855":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6856},"derivationIds":[null],"id":"4C3B7FA0-5C7A-49EB-B192-79921DF9EE95","renderContextTable":{"__isSmartRef__":true,"id":6862},"eventHandler":{"__isSmartRef__":true,"id":6863},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6864},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6865},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6856":{"_Position":{"__isSmartRef__":true,"id":6857},"renderContextTable":{"__isSmartRef__":true,"id":6858},"_Extent":{"__isSmartRef__":true,"id":6859},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6860},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":6861},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6857":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6858":{"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"},"6859":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6860":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6861":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6862":{"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"},"6863":{"morph":{"__isSmartRef__":true,"id":6855},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6864":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6865":{"toggle":{"__isSmartRef__":true,"id":6866},"toggleExpansion":{"__isSmartRef__":true,"id":6869}},"6866":{"varMapping":{"__isSmartRef__":true,"id":6867},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6867":{"this":{"__isSmartRef__":true,"id":6855}},"6868":{},"6869":{"varMapping":{"__isSmartRef__":true,"id":6870},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6870":{"this":{"__isSmartRef__":true,"id":6855}},"6871":{},"6872":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6873},"derivationIds":[null],"id":"4C4EEC29-00B9-4A27-929F-422D1A56BB2B","renderContextTable":{"__isSmartRef__":true,"id":6877},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6878},{"__isSmartRef__":true,"id":6880}],"eventHandler":{"__isSmartRef__":true,"id":6882},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6883},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6884},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6873":{"_Position":{"__isSmartRef__":true,"id":6874},"renderContextTable":{"__isSmartRef__":true,"id":6875},"_Extent":{"__isSmartRef__":true,"id":6876},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6874":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6875":{"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"},"6876":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6877":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6878":{"style":{"__isSmartRef__":true,"id":6879},"chunkOwner":{"__isSmartRef__":true,"id":6872},"storedString":"_Align","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6879":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6880":{"style":{"__isSmartRef__":true,"id":6881},"chunkOwner":{"__isSmartRef__":true,"id":6872},"storedString":": left","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6881":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6882":{"morph":{"__isSmartRef__":true,"id":6872},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6883":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6884":{"layoutText":{"__isSmartRef__":true,"id":6885}},"6885":{"varMapping":{"__isSmartRef__":true,"id":6886},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6886":{"this":{"__isSmartRef__":true,"id":6872}},"6887":{},"6888":{"_Position":{"__isSmartRef__":true,"id":6889},"renderContextTable":{"__isSmartRef__":true,"id":6890},"_Extent":{"__isSmartRef__":true,"id":6891},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6892},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6889":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6890":{"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"},"6891":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6892":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6893":{"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"},"6894":{"morph":{"__isSmartRef__":true,"id":6854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6895":{"resizeWidth":true},"6896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6897":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6898":{"updateExpanderColor":{"__isSmartRef__":true,"id":6899},"onMouseDown":{"__isSmartRef__":true,"id":6902},"isRoot":{"__isSmartRef__":true,"id":6909},"displayValue":{"__isSmartRef__":true,"id":6912},"update":{"__isSmartRef__":true,"id":6915}},"6899":{"varMapping":{"__isSmartRef__":true,"id":6900},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6900":{"this":{"__isSmartRef__":true,"id":6854}},"6901":{},"6902":{"varMapping":{"__isSmartRef__":true,"id":6903},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6903":{"this":{"__isSmartRef__":true,"id":6854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6904}},"6904":{"$super":{"__isSmartRef__":true,"id":6905}},"6905":{"varMapping":{"__isSmartRef__":true,"id":6906},"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":6907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6906":{"obj":{"__isSmartRef__":true,"id":6854},"name":"onMouseDown"},"6907":{},"6908":{},"6909":{"varMapping":{"__isSmartRef__":true,"id":6910},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6910":{"this":{"__isSmartRef__":true,"id":6854}},"6911":{},"6912":{"varMapping":{"__isSmartRef__":true,"id":6913},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6913":{"this":{"__isSmartRef__":true,"id":6854}},"6914":{},"6915":{"varMapping":{"__isSmartRef__":true,"id":6916},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6916":{"this":{"__isSmartRef__":true,"id":6854}},"6917":{},"6918":{"_Position":{"__isSmartRef__":true,"id":6919},"renderContextTable":{"__isSmartRef__":true,"id":6920},"_Extent":{"__isSmartRef__":true,"id":6921},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6922},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6919":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6920":{"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"},"6921":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6922":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6923":{"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"},"6924":{"morph":{"__isSmartRef__":true,"id":6853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6925":{"layouter":{"__isSmartRef__":true,"id":6926},"resizeWidth":true},"6926":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6853},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6927":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6928":{"x":0,"y":1260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6929":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6930}},"6930":{"varMapping":{"__isSmartRef__":true,"id":6931},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6931":{"this":{"__isSmartRef__":true,"id":6853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6932}},"6932":{"$super":{"__isSmartRef__":true,"id":6933}},"6933":{"varMapping":{"__isSmartRef__":true,"id":6934},"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":6935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6934":{"obj":{"__isSmartRef__":true,"id":6853},"name":"getLayoutableSubmorphs"},"6935":{},"6936":{},"6937":{"submorphs":[{"__isSmartRef__":true,"id":6938}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7002},"derivationIds":[null],"id":"DE77703F-DC99-42D9-B45A-A566EE0B633E","renderContextTable":{"__isSmartRef__":true,"id":7007},"eventHandler":{"__isSmartRef__":true,"id":7008},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7009},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7011},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7012},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7013},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6938":{"submorphs":[{"__isSmartRef__":true,"id":6939},{"__isSmartRef__":true,"id":6956}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6972},"derivationIds":[null],"id":"49BFB102-159D-4971-847E-1599EC5F85B4","renderContextTable":{"__isSmartRef__":true,"id":6977},"eventHandler":{"__isSmartRef__":true,"id":6978},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6979},"grabbingEnabled":false,"draggingEnabled":false,"data":"auto","propertyList":["0","1","2","3"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_ClipMode","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":6939},"text":{"__isSmartRef__":true,"id":6956},"owner":{"__isSmartRef__":true,"id":6937},"_Position":{"__isSmartRef__":true,"id":6980},"priorExtent":{"__isSmartRef__":true,"id":6981},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6982},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6939":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6940},"derivationIds":[null],"id":"78781FCD-1F0B-420B-A1B6-95D5C89D6D80","renderContextTable":{"__isSmartRef__":true,"id":6946},"eventHandler":{"__isSmartRef__":true,"id":6947},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6948},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6949},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6940":{"_Position":{"__isSmartRef__":true,"id":6941},"renderContextTable":{"__isSmartRef__":true,"id":6942},"_Extent":{"__isSmartRef__":true,"id":6943},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6944},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":6945},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6941":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6942":{"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"},"6943":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6944":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6945":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6946":{"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"},"6947":{"morph":{"__isSmartRef__":true,"id":6939},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6948":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6949":{"toggle":{"__isSmartRef__":true,"id":6950},"toggleExpansion":{"__isSmartRef__":true,"id":6953}},"6950":{"varMapping":{"__isSmartRef__":true,"id":6951},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6951":{"this":{"__isSmartRef__":true,"id":6939}},"6952":{},"6953":{"varMapping":{"__isSmartRef__":true,"id":6954},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6954":{"this":{"__isSmartRef__":true,"id":6939}},"6955":{},"6956":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6957},"derivationIds":[null],"id":"3EBEF123-8A7E-4519-9EFF-A8AFE55F8242","renderContextTable":{"__isSmartRef__":true,"id":6961},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6962},{"__isSmartRef__":true,"id":6964}],"eventHandler":{"__isSmartRef__":true,"id":6966},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6967},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6968},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6957":{"_Position":{"__isSmartRef__":true,"id":6958},"renderContextTable":{"__isSmartRef__":true,"id":6959},"_Extent":{"__isSmartRef__":true,"id":6960},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6958":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6959":{"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"},"6960":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6961":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6962":{"style":{"__isSmartRef__":true,"id":6963},"chunkOwner":{"__isSmartRef__":true,"id":6956},"storedString":"_ClipMode","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6963":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6964":{"style":{"__isSmartRef__":true,"id":6965},"chunkOwner":{"__isSmartRef__":true,"id":6956},"storedString":": auto","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6965":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6966":{"morph":{"__isSmartRef__":true,"id":6956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6967":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6968":{"layoutText":{"__isSmartRef__":true,"id":6969}},"6969":{"varMapping":{"__isSmartRef__":true,"id":6970},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6970":{"this":{"__isSmartRef__":true,"id":6956}},"6971":{},"6972":{"_Position":{"__isSmartRef__":true,"id":6973},"renderContextTable":{"__isSmartRef__":true,"id":6974},"_Extent":{"__isSmartRef__":true,"id":6975},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6976},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6973":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6974":{"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"},"6975":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6976":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6977":{"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"},"6978":{"morph":{"__isSmartRef__":true,"id":6938},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6979":{"resizeWidth":true},"6980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6981":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6982":{"updateExpanderColor":{"__isSmartRef__":true,"id":6983},"onMouseDown":{"__isSmartRef__":true,"id":6986},"isRoot":{"__isSmartRef__":true,"id":6993},"displayValue":{"__isSmartRef__":true,"id":6996},"update":{"__isSmartRef__":true,"id":6999}},"6983":{"varMapping":{"__isSmartRef__":true,"id":6984},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6984":{"this":{"__isSmartRef__":true,"id":6938}},"6985":{},"6986":{"varMapping":{"__isSmartRef__":true,"id":6987},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6987":{"this":{"__isSmartRef__":true,"id":6938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6988}},"6988":{"$super":{"__isSmartRef__":true,"id":6989}},"6989":{"varMapping":{"__isSmartRef__":true,"id":6990},"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":6991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6990":{"obj":{"__isSmartRef__":true,"id":6938},"name":"onMouseDown"},"6991":{},"6992":{},"6993":{"varMapping":{"__isSmartRef__":true,"id":6994},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6994":{"this":{"__isSmartRef__":true,"id":6938}},"6995":{},"6996":{"varMapping":{"__isSmartRef__":true,"id":6997},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6997":{"this":{"__isSmartRef__":true,"id":6938}},"6998":{},"6999":{"varMapping":{"__isSmartRef__":true,"id":7000},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7000":{"this":{"__isSmartRef__":true,"id":6938}},"7001":{},"7002":{"_Position":{"__isSmartRef__":true,"id":7003},"renderContextTable":{"__isSmartRef__":true,"id":7004},"_Extent":{"__isSmartRef__":true,"id":7005},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7006},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7004":{"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"},"7005":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7006":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7007":{"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"},"7008":{"morph":{"__isSmartRef__":true,"id":6937},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7009":{"layouter":{"__isSmartRef__":true,"id":7010},"resizeWidth":true},"7010":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6937},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7011":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7012":{"x":0,"y":1240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7013":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7014}},"7014":{"varMapping":{"__isSmartRef__":true,"id":7015},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7015":{"this":{"__isSmartRef__":true,"id":6937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7016}},"7016":{"$super":{"__isSmartRef__":true,"id":7017}},"7017":{"varMapping":{"__isSmartRef__":true,"id":7018},"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":7019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7018":{"obj":{"__isSmartRef__":true,"id":6937},"name":"getLayoutableSubmorphs"},"7019":{},"7020":{},"7021":{"submorphs":[{"__isSmartRef__":true,"id":7022}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7086},"derivationIds":[null],"id":"DB031B53-0FE9-40E4-8308-98A361CECF18","renderContextTable":{"__isSmartRef__":true,"id":7091},"eventHandler":{"__isSmartRef__":true,"id":7092},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7093},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7095},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7096},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7097},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7022":{"submorphs":[{"__isSmartRef__":true,"id":7023},{"__isSmartRef__":true,"id":7040}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7056},"derivationIds":[null],"id":"7B029D19-D1A4-441A-82BD-72BFBD59B028","renderContextTable":{"__isSmartRef__":true,"id":7061},"eventHandler":{"__isSmartRef__":true,"id":7062},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7063},"grabbingEnabled":false,"draggingEnabled":false,"data":"Monaco,courier","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_FontFamily","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7023},"text":{"__isSmartRef__":true,"id":7040},"owner":{"__isSmartRef__":true,"id":7021},"_Position":{"__isSmartRef__":true,"id":7064},"priorExtent":{"__isSmartRef__":true,"id":7065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7066},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7023":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7024},"derivationIds":[null],"id":"4D5C6F82-8473-4F6B-9393-59E5C20EF239","renderContextTable":{"__isSmartRef__":true,"id":7030},"eventHandler":{"__isSmartRef__":true,"id":7031},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7032},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7033},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7024":{"_Position":{"__isSmartRef__":true,"id":7025},"renderContextTable":{"__isSmartRef__":true,"id":7026},"_Extent":{"__isSmartRef__":true,"id":7027},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7028},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7029},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7025":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7026":{"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"},"7027":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7028":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7029":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7030":{"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"},"7031":{"morph":{"__isSmartRef__":true,"id":7023},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7032":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7033":{"toggle":{"__isSmartRef__":true,"id":7034},"toggleExpansion":{"__isSmartRef__":true,"id":7037}},"7034":{"varMapping":{"__isSmartRef__":true,"id":7035},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7035":{"this":{"__isSmartRef__":true,"id":7023}},"7036":{},"7037":{"varMapping":{"__isSmartRef__":true,"id":7038},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7038":{"this":{"__isSmartRef__":true,"id":7023}},"7039":{},"7040":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7041},"derivationIds":[null],"id":"F9227DF8-054E-4270-BF76-412F401E913A","renderContextTable":{"__isSmartRef__":true,"id":7045},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7046},{"__isSmartRef__":true,"id":7048}],"eventHandler":{"__isSmartRef__":true,"id":7050},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7051},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7052},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7041":{"_Position":{"__isSmartRef__":true,"id":7042},"renderContextTable":{"__isSmartRef__":true,"id":7043},"_Extent":{"__isSmartRef__":true,"id":7044},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7042":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7043":{"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"},"7044":{"x":202.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7045":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7046":{"style":{"__isSmartRef__":true,"id":7047},"chunkOwner":{"__isSmartRef__":true,"id":7040},"storedString":"_FontFamily","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7047":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7048":{"style":{"__isSmartRef__":true,"id":7049},"chunkOwner":{"__isSmartRef__":true,"id":7040},"storedString":": Monaco,courier","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7049":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7050":{"morph":{"__isSmartRef__":true,"id":7040},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7051":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7052":{"layoutText":{"__isSmartRef__":true,"id":7053}},"7053":{"varMapping":{"__isSmartRef__":true,"id":7054},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7054":{"this":{"__isSmartRef__":true,"id":7040}},"7055":{},"7056":{"_Position":{"__isSmartRef__":true,"id":7057},"renderContextTable":{"__isSmartRef__":true,"id":7058},"_Extent":{"__isSmartRef__":true,"id":7059},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7060},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7057":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7058":{"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"},"7059":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7060":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7061":{"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"},"7062":{"morph":{"__isSmartRef__":true,"id":7022},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7063":{"resizeWidth":true},"7064":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7065":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7066":{"updateExpanderColor":{"__isSmartRef__":true,"id":7067},"onMouseDown":{"__isSmartRef__":true,"id":7070},"isRoot":{"__isSmartRef__":true,"id":7077},"displayValue":{"__isSmartRef__":true,"id":7080},"update":{"__isSmartRef__":true,"id":7083}},"7067":{"varMapping":{"__isSmartRef__":true,"id":7068},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7068":{"this":{"__isSmartRef__":true,"id":7022}},"7069":{},"7070":{"varMapping":{"__isSmartRef__":true,"id":7071},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7071":{"this":{"__isSmartRef__":true,"id":7022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7072}},"7072":{"$super":{"__isSmartRef__":true,"id":7073}},"7073":{"varMapping":{"__isSmartRef__":true,"id":7074},"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":7075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7074":{"obj":{"__isSmartRef__":true,"id":7022},"name":"onMouseDown"},"7075":{},"7076":{},"7077":{"varMapping":{"__isSmartRef__":true,"id":7078},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7078":{"this":{"__isSmartRef__":true,"id":7022}},"7079":{},"7080":{"varMapping":{"__isSmartRef__":true,"id":7081},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7081":{"this":{"__isSmartRef__":true,"id":7022}},"7082":{},"7083":{"varMapping":{"__isSmartRef__":true,"id":7084},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7084":{"this":{"__isSmartRef__":true,"id":7022}},"7085":{},"7086":{"_Position":{"__isSmartRef__":true,"id":7087},"renderContextTable":{"__isSmartRef__":true,"id":7088},"_Extent":{"__isSmartRef__":true,"id":7089},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7090},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7087":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7088":{"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"},"7089":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7090":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7091":{"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"},"7092":{"morph":{"__isSmartRef__":true,"id":7021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7093":{"layouter":{"__isSmartRef__":true,"id":7094},"resizeWidth":true},"7094":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7021},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7095":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7096":{"x":0,"y":1220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7097":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7098}},"7098":{"varMapping":{"__isSmartRef__":true,"id":7099},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7099":{"this":{"__isSmartRef__":true,"id":7021},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7100}},"7100":{"$super":{"__isSmartRef__":true,"id":7101}},"7101":{"varMapping":{"__isSmartRef__":true,"id":7102},"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":7103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7102":{"obj":{"__isSmartRef__":true,"id":7021},"name":"getLayoutableSubmorphs"},"7103":{},"7104":{},"7105":{"submorphs":[{"__isSmartRef__":true,"id":7106}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7170},"derivationIds":[null],"id":"1697AF85-8984-41D3-9354-76D53A5A18BC","renderContextTable":{"__isSmartRef__":true,"id":7175},"eventHandler":{"__isSmartRef__":true,"id":7176},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7177},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7179},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7180},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7181},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7106":{"submorphs":[{"__isSmartRef__":true,"id":7107},{"__isSmartRef__":true,"id":7124}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7140},"derivationIds":[null],"id":"DC8C2D18-8756-424C-AD63-B83FF9F2278E","renderContextTable":{"__isSmartRef__":true,"id":7145},"eventHandler":{"__isSmartRef__":true,"id":7146},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7147},"grabbingEnabled":false,"draggingEnabled":false,"data":9,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_FontSize","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7107},"text":{"__isSmartRef__":true,"id":7124},"owner":{"__isSmartRef__":true,"id":7105},"_Position":{"__isSmartRef__":true,"id":7148},"priorExtent":{"__isSmartRef__":true,"id":7149},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7150},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7107":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7108},"derivationIds":[null],"id":"49C22091-E8D0-441E-9EA1-4EF01DC77A4C","renderContextTable":{"__isSmartRef__":true,"id":7114},"eventHandler":{"__isSmartRef__":true,"id":7115},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7116},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7117},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7108":{"_Position":{"__isSmartRef__":true,"id":7109},"renderContextTable":{"__isSmartRef__":true,"id":7110},"_Extent":{"__isSmartRef__":true,"id":7111},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7112},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7113},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7109":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7110":{"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"},"7111":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7112":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7113":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7114":{"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"},"7115":{"morph":{"__isSmartRef__":true,"id":7107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7116":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7117":{"toggle":{"__isSmartRef__":true,"id":7118},"toggleExpansion":{"__isSmartRef__":true,"id":7121}},"7118":{"varMapping":{"__isSmartRef__":true,"id":7119},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7119":{"this":{"__isSmartRef__":true,"id":7107}},"7120":{},"7121":{"varMapping":{"__isSmartRef__":true,"id":7122},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7122":{"this":{"__isSmartRef__":true,"id":7107}},"7123":{},"7124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7125},"derivationIds":[null],"id":"1A996F46-3B31-441F-8095-8CE7C2BA2980","renderContextTable":{"__isSmartRef__":true,"id":7129},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7130},{"__isSmartRef__":true,"id":7132}],"eventHandler":{"__isSmartRef__":true,"id":7134},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7135},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7136},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7125":{"_Position":{"__isSmartRef__":true,"id":7126},"renderContextTable":{"__isSmartRef__":true,"id":7127},"_Extent":{"__isSmartRef__":true,"id":7128},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7126":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7127":{"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"},"7128":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7129":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7130":{"style":{"__isSmartRef__":true,"id":7131},"chunkOwner":{"__isSmartRef__":true,"id":7124},"storedString":"_FontSize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7131":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7132":{"style":{"__isSmartRef__":true,"id":7133},"chunkOwner":{"__isSmartRef__":true,"id":7124},"storedString":": 9","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7133":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7134":{"morph":{"__isSmartRef__":true,"id":7124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7135":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7136":{"layoutText":{"__isSmartRef__":true,"id":7137}},"7137":{"varMapping":{"__isSmartRef__":true,"id":7138},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7138":{"this":{"__isSmartRef__":true,"id":7124}},"7139":{},"7140":{"_Position":{"__isSmartRef__":true,"id":7141},"renderContextTable":{"__isSmartRef__":true,"id":7142},"_Extent":{"__isSmartRef__":true,"id":7143},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7144},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7141":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7142":{"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"},"7143":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7144":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7145":{"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"},"7146":{"morph":{"__isSmartRef__":true,"id":7106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7147":{"resizeWidth":true},"7148":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7149":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7150":{"updateExpanderColor":{"__isSmartRef__":true,"id":7151},"onMouseDown":{"__isSmartRef__":true,"id":7154},"isRoot":{"__isSmartRef__":true,"id":7161},"displayValue":{"__isSmartRef__":true,"id":7164},"update":{"__isSmartRef__":true,"id":7167}},"7151":{"varMapping":{"__isSmartRef__":true,"id":7152},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7152":{"this":{"__isSmartRef__":true,"id":7106}},"7153":{},"7154":{"varMapping":{"__isSmartRef__":true,"id":7155},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7155":{"this":{"__isSmartRef__":true,"id":7106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7156}},"7156":{"$super":{"__isSmartRef__":true,"id":7157}},"7157":{"varMapping":{"__isSmartRef__":true,"id":7158},"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":7159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7158":{"obj":{"__isSmartRef__":true,"id":7106},"name":"onMouseDown"},"7159":{},"7160":{},"7161":{"varMapping":{"__isSmartRef__":true,"id":7162},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7162":{"this":{"__isSmartRef__":true,"id":7106}},"7163":{},"7164":{"varMapping":{"__isSmartRef__":true,"id":7165},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7165":{"this":{"__isSmartRef__":true,"id":7106}},"7166":{},"7167":{"varMapping":{"__isSmartRef__":true,"id":7168},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7168":{"this":{"__isSmartRef__":true,"id":7106}},"7169":{},"7170":{"_Position":{"__isSmartRef__":true,"id":7171},"renderContextTable":{"__isSmartRef__":true,"id":7172},"_Extent":{"__isSmartRef__":true,"id":7173},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7174},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7171":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7172":{"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"},"7173":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7174":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7175":{"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"},"7176":{"morph":{"__isSmartRef__":true,"id":7105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7177":{"layouter":{"__isSmartRef__":true,"id":7178},"resizeWidth":true},"7178":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7105},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7179":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7180":{"x":0,"y":1200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7181":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7182}},"7182":{"varMapping":{"__isSmartRef__":true,"id":7183},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7183":{"this":{"__isSmartRef__":true,"id":7105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7184}},"7184":{"$super":{"__isSmartRef__":true,"id":7185}},"7185":{"varMapping":{"__isSmartRef__":true,"id":7186},"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":7187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7186":{"obj":{"__isSmartRef__":true,"id":7105},"name":"getLayoutableSubmorphs"},"7187":{},"7188":{},"7189":{"submorphs":[{"__isSmartRef__":true,"id":7190}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7254},"derivationIds":[null],"id":"D0776E9D-3149-451C-AC7C-B3CB03C65491","renderContextTable":{"__isSmartRef__":true,"id":7259},"eventHandler":{"__isSmartRef__":true,"id":7260},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7261},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7263},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7264},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7265},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7190":{"submorphs":[{"__isSmartRef__":true,"id":7191},{"__isSmartRef__":true,"id":7208}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7224},"derivationIds":[null],"id":"E0CA1A41-7843-4598-ABD1-983F45554F9F","renderContextTable":{"__isSmartRef__":true,"id":7229},"eventHandler":{"__isSmartRef__":true,"id":7230},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7231},"grabbingEnabled":false,"draggingEnabled":false,"data":null,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_MaxTextHeight","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7191},"text":{"__isSmartRef__":true,"id":7208},"owner":{"__isSmartRef__":true,"id":7189},"_Position":{"__isSmartRef__":true,"id":7232},"priorExtent":{"__isSmartRef__":true,"id":7233},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7234},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7191":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7192},"derivationIds":[null],"id":"139D4998-027D-404E-9AF7-4F9A736A45B1","renderContextTable":{"__isSmartRef__":true,"id":7198},"eventHandler":{"__isSmartRef__":true,"id":7199},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7200},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7201},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7192":{"_Position":{"__isSmartRef__":true,"id":7193},"renderContextTable":{"__isSmartRef__":true,"id":7194},"_Extent":{"__isSmartRef__":true,"id":7195},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7196},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7197},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7193":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7194":{"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"},"7195":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7196":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7197":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7198":{"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"},"7199":{"morph":{"__isSmartRef__":true,"id":7191},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7200":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7201":{"toggle":{"__isSmartRef__":true,"id":7202},"toggleExpansion":{"__isSmartRef__":true,"id":7205}},"7202":{"varMapping":{"__isSmartRef__":true,"id":7203},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7203":{"this":{"__isSmartRef__":true,"id":7191}},"7204":{},"7205":{"varMapping":{"__isSmartRef__":true,"id":7206},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7206":{"this":{"__isSmartRef__":true,"id":7191}},"7207":{},"7208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7209},"derivationIds":[null],"id":"A721DA2E-5083-4993-8D6F-260ECD4BCF30","renderContextTable":{"__isSmartRef__":true,"id":7213},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7214},{"__isSmartRef__":true,"id":7216}],"eventHandler":{"__isSmartRef__":true,"id":7218},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7219},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7220},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7209":{"_Position":{"__isSmartRef__":true,"id":7210},"renderContextTable":{"__isSmartRef__":true,"id":7211},"_Extent":{"__isSmartRef__":true,"id":7212},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7210":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7211":{"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"},"7212":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7213":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7214":{"style":{"__isSmartRef__":true,"id":7215},"chunkOwner":{"__isSmartRef__":true,"id":7208},"storedString":"_MaxTextHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7215":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7216":{"style":{"__isSmartRef__":true,"id":7217},"chunkOwner":{"__isSmartRef__":true,"id":7208},"storedString":": null","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7217":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7218":{"morph":{"__isSmartRef__":true,"id":7208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7219":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7220":{"layoutText":{"__isSmartRef__":true,"id":7221}},"7221":{"varMapping":{"__isSmartRef__":true,"id":7222},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7222":{"this":{"__isSmartRef__":true,"id":7208}},"7223":{},"7224":{"_Position":{"__isSmartRef__":true,"id":7225},"renderContextTable":{"__isSmartRef__":true,"id":7226},"_Extent":{"__isSmartRef__":true,"id":7227},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7228},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7225":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7226":{"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"},"7227":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7228":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7229":{"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"},"7230":{"morph":{"__isSmartRef__":true,"id":7190},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7231":{"resizeWidth":true},"7232":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7233":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7234":{"updateExpanderColor":{"__isSmartRef__":true,"id":7235},"onMouseDown":{"__isSmartRef__":true,"id":7238},"isRoot":{"__isSmartRef__":true,"id":7245},"displayValue":{"__isSmartRef__":true,"id":7248},"update":{"__isSmartRef__":true,"id":7251}},"7235":{"varMapping":{"__isSmartRef__":true,"id":7236},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7236":{"this":{"__isSmartRef__":true,"id":7190}},"7237":{},"7238":{"varMapping":{"__isSmartRef__":true,"id":7239},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7239":{"this":{"__isSmartRef__":true,"id":7190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7240}},"7240":{"$super":{"__isSmartRef__":true,"id":7241}},"7241":{"varMapping":{"__isSmartRef__":true,"id":7242},"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":7243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7242":{"obj":{"__isSmartRef__":true,"id":7190},"name":"onMouseDown"},"7243":{},"7244":{},"7245":{"varMapping":{"__isSmartRef__":true,"id":7246},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7246":{"this":{"__isSmartRef__":true,"id":7190}},"7247":{},"7248":{"varMapping":{"__isSmartRef__":true,"id":7249},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7249":{"this":{"__isSmartRef__":true,"id":7190}},"7250":{},"7251":{"varMapping":{"__isSmartRef__":true,"id":7252},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7252":{"this":{"__isSmartRef__":true,"id":7190}},"7253":{},"7254":{"_Position":{"__isSmartRef__":true,"id":7255},"renderContextTable":{"__isSmartRef__":true,"id":7256},"_Extent":{"__isSmartRef__":true,"id":7257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7258},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7256":{"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"},"7257":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7259":{"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"},"7260":{"morph":{"__isSmartRef__":true,"id":7189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7261":{"layouter":{"__isSmartRef__":true,"id":7262},"resizeWidth":true},"7262":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7189},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7263":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7264":{"x":0,"y":1180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7265":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7266}},"7266":{"varMapping":{"__isSmartRef__":true,"id":7267},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7267":{"this":{"__isSmartRef__":true,"id":7189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7268}},"7268":{"$super":{"__isSmartRef__":true,"id":7269}},"7269":{"varMapping":{"__isSmartRef__":true,"id":7270},"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":7271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7270":{"obj":{"__isSmartRef__":true,"id":7189},"name":"getLayoutableSubmorphs"},"7271":{},"7272":{},"7273":{"submorphs":[{"__isSmartRef__":true,"id":7274}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7338},"derivationIds":[null],"id":"383AF4A1-7120-47C0-BAF3-0CB92F70FAFB","renderContextTable":{"__isSmartRef__":true,"id":7343},"eventHandler":{"__isSmartRef__":true,"id":7344},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7345},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7347},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7349},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7274":{"submorphs":[{"__isSmartRef__":true,"id":7275},{"__isSmartRef__":true,"id":7292}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7308},"derivationIds":[null],"id":"4B5BC98E-AB15-44B9-85E5-27CBCF098C19","renderContextTable":{"__isSmartRef__":true,"id":7313},"eventHandler":{"__isSmartRef__":true,"id":7314},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7315},"grabbingEnabled":false,"draggingEnabled":false,"data":688,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_MaxTextWidth","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7275},"text":{"__isSmartRef__":true,"id":7292},"owner":{"__isSmartRef__":true,"id":7273},"_Position":{"__isSmartRef__":true,"id":7316},"priorExtent":{"__isSmartRef__":true,"id":7317},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7318},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7275":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7276},"derivationIds":[null],"id":"9B310947-0940-4E28-BB66-F0E155C1866D","renderContextTable":{"__isSmartRef__":true,"id":7282},"eventHandler":{"__isSmartRef__":true,"id":7283},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7284},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7285},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7276":{"_Position":{"__isSmartRef__":true,"id":7277},"renderContextTable":{"__isSmartRef__":true,"id":7278},"_Extent":{"__isSmartRef__":true,"id":7279},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7280},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7281},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7277":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7278":{"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"},"7279":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7280":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7281":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7282":{"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"},"7283":{"morph":{"__isSmartRef__":true,"id":7275},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7284":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7285":{"toggle":{"__isSmartRef__":true,"id":7286},"toggleExpansion":{"__isSmartRef__":true,"id":7289}},"7286":{"varMapping":{"__isSmartRef__":true,"id":7287},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7287":{"this":{"__isSmartRef__":true,"id":7275}},"7288":{},"7289":{"varMapping":{"__isSmartRef__":true,"id":7290},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7290":{"this":{"__isSmartRef__":true,"id":7275}},"7291":{},"7292":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7293},"derivationIds":[null],"id":"0DF59F3E-6182-4B87-93A8-2FA6F742281D","renderContextTable":{"__isSmartRef__":true,"id":7297},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7298},{"__isSmartRef__":true,"id":7300}],"eventHandler":{"__isSmartRef__":true,"id":7302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7303},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7304},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7293":{"_Position":{"__isSmartRef__":true,"id":7294},"renderContextTable":{"__isSmartRef__":true,"id":7295},"_Extent":{"__isSmartRef__":true,"id":7296},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7294":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7295":{"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"},"7296":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7297":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7298":{"style":{"__isSmartRef__":true,"id":7299},"chunkOwner":{"__isSmartRef__":true,"id":7292},"storedString":"_MaxTextWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7299":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7300":{"style":{"__isSmartRef__":true,"id":7301},"chunkOwner":{"__isSmartRef__":true,"id":7292},"storedString":": 688","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7301":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7302":{"morph":{"__isSmartRef__":true,"id":7292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7304":{"layoutText":{"__isSmartRef__":true,"id":7305}},"7305":{"varMapping":{"__isSmartRef__":true,"id":7306},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7306":{"this":{"__isSmartRef__":true,"id":7292}},"7307":{},"7308":{"_Position":{"__isSmartRef__":true,"id":7309},"renderContextTable":{"__isSmartRef__":true,"id":7310},"_Extent":{"__isSmartRef__":true,"id":7311},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7312},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7309":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7310":{"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"},"7311":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7312":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7313":{"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"},"7314":{"morph":{"__isSmartRef__":true,"id":7274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7315":{"resizeWidth":true},"7316":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7317":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7318":{"updateExpanderColor":{"__isSmartRef__":true,"id":7319},"onMouseDown":{"__isSmartRef__":true,"id":7322},"isRoot":{"__isSmartRef__":true,"id":7329},"displayValue":{"__isSmartRef__":true,"id":7332},"update":{"__isSmartRef__":true,"id":7335}},"7319":{"varMapping":{"__isSmartRef__":true,"id":7320},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7320":{"this":{"__isSmartRef__":true,"id":7274}},"7321":{},"7322":{"varMapping":{"__isSmartRef__":true,"id":7323},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7323":{"this":{"__isSmartRef__":true,"id":7274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7324}},"7324":{"$super":{"__isSmartRef__":true,"id":7325}},"7325":{"varMapping":{"__isSmartRef__":true,"id":7326},"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":7327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7326":{"obj":{"__isSmartRef__":true,"id":7274},"name":"onMouseDown"},"7327":{},"7328":{},"7329":{"varMapping":{"__isSmartRef__":true,"id":7330},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7330":{"this":{"__isSmartRef__":true,"id":7274}},"7331":{},"7332":{"varMapping":{"__isSmartRef__":true,"id":7333},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7333":{"this":{"__isSmartRef__":true,"id":7274}},"7334":{},"7335":{"varMapping":{"__isSmartRef__":true,"id":7336},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7336":{"this":{"__isSmartRef__":true,"id":7274}},"7337":{},"7338":{"_Position":{"__isSmartRef__":true,"id":7339},"renderContextTable":{"__isSmartRef__":true,"id":7340},"_Extent":{"__isSmartRef__":true,"id":7341},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7342},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7339":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7340":{"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"},"7341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7342":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7343":{"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"},"7344":{"morph":{"__isSmartRef__":true,"id":7273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7345":{"layouter":{"__isSmartRef__":true,"id":7346},"resizeWidth":true},"7346":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7273},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7347":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7348":{"x":0,"y":1160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7349":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7350}},"7350":{"varMapping":{"__isSmartRef__":true,"id":7351},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7351":{"this":{"__isSmartRef__":true,"id":7273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7352}},"7352":{"$super":{"__isSmartRef__":true,"id":7353}},"7353":{"varMapping":{"__isSmartRef__":true,"id":7354},"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":7355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7354":{"obj":{"__isSmartRef__":true,"id":7273},"name":"getLayoutableSubmorphs"},"7355":{},"7356":{},"7357":{"submorphs":[{"__isSmartRef__":true,"id":7358}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7422},"derivationIds":[null],"id":"8B1154CE-443F-4D52-8942-7970A9FE2EBA","renderContextTable":{"__isSmartRef__":true,"id":7427},"eventHandler":{"__isSmartRef__":true,"id":7428},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7429},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7431},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7432},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7433},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7358":{"submorphs":[{"__isSmartRef__":true,"id":7359},{"__isSmartRef__":true,"id":7376}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7392},"derivationIds":[null],"id":"7D75B7D3-D62D-44F6-9C09-6A8AB027E5C9","renderContextTable":{"__isSmartRef__":true,"id":7397},"eventHandler":{"__isSmartRef__":true,"id":7398},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7399},"grabbingEnabled":false,"draggingEnabled":false,"data":null,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_MinTextHeight","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7359},"text":{"__isSmartRef__":true,"id":7376},"owner":{"__isSmartRef__":true,"id":7357},"_Position":{"__isSmartRef__":true,"id":7400},"priorExtent":{"__isSmartRef__":true,"id":7401},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7402},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7359":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7360},"derivationIds":[null],"id":"077D3CDA-F93C-43F2-95D4-FCE3D52D0784","renderContextTable":{"__isSmartRef__":true,"id":7366},"eventHandler":{"__isSmartRef__":true,"id":7367},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7368},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7369},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7360":{"_Position":{"__isSmartRef__":true,"id":7361},"renderContextTable":{"__isSmartRef__":true,"id":7362},"_Extent":{"__isSmartRef__":true,"id":7363},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7364},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7365},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7361":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7362":{"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"},"7363":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7364":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7365":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7366":{"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"},"7367":{"morph":{"__isSmartRef__":true,"id":7359},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7368":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7369":{"toggle":{"__isSmartRef__":true,"id":7370},"toggleExpansion":{"__isSmartRef__":true,"id":7373}},"7370":{"varMapping":{"__isSmartRef__":true,"id":7371},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7371":{"this":{"__isSmartRef__":true,"id":7359}},"7372":{},"7373":{"varMapping":{"__isSmartRef__":true,"id":7374},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7374":{"this":{"__isSmartRef__":true,"id":7359}},"7375":{},"7376":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7377},"derivationIds":[null],"id":"0381360C-22E2-4BA8-93FE-6A177B2FDD37","renderContextTable":{"__isSmartRef__":true,"id":7381},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7382},{"__isSmartRef__":true,"id":7384}],"eventHandler":{"__isSmartRef__":true,"id":7386},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7387},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7388},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7377":{"_Position":{"__isSmartRef__":true,"id":7378},"renderContextTable":{"__isSmartRef__":true,"id":7379},"_Extent":{"__isSmartRef__":true,"id":7380},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7378":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7379":{"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"},"7380":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7381":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7382":{"style":{"__isSmartRef__":true,"id":7383},"chunkOwner":{"__isSmartRef__":true,"id":7376},"storedString":"_MinTextHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7383":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7384":{"style":{"__isSmartRef__":true,"id":7385},"chunkOwner":{"__isSmartRef__":true,"id":7376},"storedString":": null","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7385":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7386":{"morph":{"__isSmartRef__":true,"id":7376},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7387":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7388":{"layoutText":{"__isSmartRef__":true,"id":7389}},"7389":{"varMapping":{"__isSmartRef__":true,"id":7390},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7390":{"this":{"__isSmartRef__":true,"id":7376}},"7391":{},"7392":{"_Position":{"__isSmartRef__":true,"id":7393},"renderContextTable":{"__isSmartRef__":true,"id":7394},"_Extent":{"__isSmartRef__":true,"id":7395},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7396},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7393":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7394":{"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"},"7395":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7396":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7397":{"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"},"7398":{"morph":{"__isSmartRef__":true,"id":7358},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7399":{"resizeWidth":true},"7400":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7401":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7402":{"updateExpanderColor":{"__isSmartRef__":true,"id":7403},"onMouseDown":{"__isSmartRef__":true,"id":7406},"isRoot":{"__isSmartRef__":true,"id":7413},"displayValue":{"__isSmartRef__":true,"id":7416},"update":{"__isSmartRef__":true,"id":7419}},"7403":{"varMapping":{"__isSmartRef__":true,"id":7404},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7404":{"this":{"__isSmartRef__":true,"id":7358}},"7405":{},"7406":{"varMapping":{"__isSmartRef__":true,"id":7407},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7407":{"this":{"__isSmartRef__":true,"id":7358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7408}},"7408":{"$super":{"__isSmartRef__":true,"id":7409}},"7409":{"varMapping":{"__isSmartRef__":true,"id":7410},"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":7411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7410":{"obj":{"__isSmartRef__":true,"id":7358},"name":"onMouseDown"},"7411":{},"7412":{},"7413":{"varMapping":{"__isSmartRef__":true,"id":7414},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7414":{"this":{"__isSmartRef__":true,"id":7358}},"7415":{},"7416":{"varMapping":{"__isSmartRef__":true,"id":7417},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7417":{"this":{"__isSmartRef__":true,"id":7358}},"7418":{},"7419":{"varMapping":{"__isSmartRef__":true,"id":7420},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7420":{"this":{"__isSmartRef__":true,"id":7358}},"7421":{},"7422":{"_Position":{"__isSmartRef__":true,"id":7423},"renderContextTable":{"__isSmartRef__":true,"id":7424},"_Extent":{"__isSmartRef__":true,"id":7425},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7426},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7423":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7424":{"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"},"7425":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7426":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7427":{"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"},"7428":{"morph":{"__isSmartRef__":true,"id":7357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7429":{"layouter":{"__isSmartRef__":true,"id":7430},"resizeWidth":true},"7430":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7357},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7431":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7432":{"x":0,"y":1140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7433":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7434}},"7434":{"varMapping":{"__isSmartRef__":true,"id":7435},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7435":{"this":{"__isSmartRef__":true,"id":7357},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7436}},"7436":{"$super":{"__isSmartRef__":true,"id":7437}},"7437":{"varMapping":{"__isSmartRef__":true,"id":7438},"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":7439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7438":{"obj":{"__isSmartRef__":true,"id":7357},"name":"getLayoutableSubmorphs"},"7439":{},"7440":{},"7441":{"submorphs":[{"__isSmartRef__":true,"id":7442}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7506},"derivationIds":[null],"id":"BCD1C7F7-B51B-4216-A604-BE429AC7DFEB","renderContextTable":{"__isSmartRef__":true,"id":7511},"eventHandler":{"__isSmartRef__":true,"id":7512},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7513},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7515},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7516},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7517},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7442":{"submorphs":[{"__isSmartRef__":true,"id":7443},{"__isSmartRef__":true,"id":7460}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7476},"derivationIds":[null],"id":"787014C0-6134-4D7C-9804-7CA1A3DF2384","renderContextTable":{"__isSmartRef__":true,"id":7481},"eventHandler":{"__isSmartRef__":true,"id":7482},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7483},"grabbingEnabled":false,"draggingEnabled":false,"data":688,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_MinTextWidth","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7443},"text":{"__isSmartRef__":true,"id":7460},"owner":{"__isSmartRef__":true,"id":7441},"_Position":{"__isSmartRef__":true,"id":7484},"priorExtent":{"__isSmartRef__":true,"id":7485},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7486},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7443":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7444},"derivationIds":[null],"id":"EFDC236E-1FC8-41BF-A019-02C2635EB2E3","renderContextTable":{"__isSmartRef__":true,"id":7450},"eventHandler":{"__isSmartRef__":true,"id":7451},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7452},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7453},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7444":{"_Position":{"__isSmartRef__":true,"id":7445},"renderContextTable":{"__isSmartRef__":true,"id":7446},"_Extent":{"__isSmartRef__":true,"id":7447},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7448},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7449},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7445":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7446":{"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"},"7447":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7448":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7449":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7450":{"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"},"7451":{"morph":{"__isSmartRef__":true,"id":7443},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7452":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7453":{"toggle":{"__isSmartRef__":true,"id":7454},"toggleExpansion":{"__isSmartRef__":true,"id":7457}},"7454":{"varMapping":{"__isSmartRef__":true,"id":7455},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7455":{"this":{"__isSmartRef__":true,"id":7443}},"7456":{},"7457":{"varMapping":{"__isSmartRef__":true,"id":7458},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7458":{"this":{"__isSmartRef__":true,"id":7443}},"7459":{},"7460":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7461},"derivationIds":[null],"id":"2C8A9D96-A85E-4BB7-B457-20EEAE742EB2","renderContextTable":{"__isSmartRef__":true,"id":7465},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7466},{"__isSmartRef__":true,"id":7468}],"eventHandler":{"__isSmartRef__":true,"id":7470},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7471},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7472},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7461":{"_Position":{"__isSmartRef__":true,"id":7462},"renderContextTable":{"__isSmartRef__":true,"id":7463},"_Extent":{"__isSmartRef__":true,"id":7464},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7462":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7463":{"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"},"7464":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7465":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7466":{"style":{"__isSmartRef__":true,"id":7467},"chunkOwner":{"__isSmartRef__":true,"id":7460},"storedString":"_MinTextWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7467":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7468":{"style":{"__isSmartRef__":true,"id":7469},"chunkOwner":{"__isSmartRef__":true,"id":7460},"storedString":": 688","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7469":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7470":{"morph":{"__isSmartRef__":true,"id":7460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7471":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7472":{"layoutText":{"__isSmartRef__":true,"id":7473}},"7473":{"varMapping":{"__isSmartRef__":true,"id":7474},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7474":{"this":{"__isSmartRef__":true,"id":7460}},"7475":{},"7476":{"_Position":{"__isSmartRef__":true,"id":7477},"renderContextTable":{"__isSmartRef__":true,"id":7478},"_Extent":{"__isSmartRef__":true,"id":7479},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7480},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7477":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7478":{"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"},"7479":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7480":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7481":{"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"},"7482":{"morph":{"__isSmartRef__":true,"id":7442},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7483":{"resizeWidth":true},"7484":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7485":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7486":{"updateExpanderColor":{"__isSmartRef__":true,"id":7487},"onMouseDown":{"__isSmartRef__":true,"id":7490},"isRoot":{"__isSmartRef__":true,"id":7497},"displayValue":{"__isSmartRef__":true,"id":7500},"update":{"__isSmartRef__":true,"id":7503}},"7487":{"varMapping":{"__isSmartRef__":true,"id":7488},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7488":{"this":{"__isSmartRef__":true,"id":7442}},"7489":{},"7490":{"varMapping":{"__isSmartRef__":true,"id":7491},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7491":{"this":{"__isSmartRef__":true,"id":7442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7492}},"7492":{"$super":{"__isSmartRef__":true,"id":7493}},"7493":{"varMapping":{"__isSmartRef__":true,"id":7494},"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":7495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7494":{"obj":{"__isSmartRef__":true,"id":7442},"name":"onMouseDown"},"7495":{},"7496":{},"7497":{"varMapping":{"__isSmartRef__":true,"id":7498},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7498":{"this":{"__isSmartRef__":true,"id":7442}},"7499":{},"7500":{"varMapping":{"__isSmartRef__":true,"id":7501},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7501":{"this":{"__isSmartRef__":true,"id":7442}},"7502":{},"7503":{"varMapping":{"__isSmartRef__":true,"id":7504},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7504":{"this":{"__isSmartRef__":true,"id":7442}},"7505":{},"7506":{"_Position":{"__isSmartRef__":true,"id":7507},"renderContextTable":{"__isSmartRef__":true,"id":7508},"_Extent":{"__isSmartRef__":true,"id":7509},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7510},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7507":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7508":{"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"},"7509":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7510":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7511":{"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"},"7512":{"morph":{"__isSmartRef__":true,"id":7441},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7513":{"layouter":{"__isSmartRef__":true,"id":7514},"resizeWidth":true},"7514":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7441},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7515":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7516":{"x":0,"y":1120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7517":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7518}},"7518":{"varMapping":{"__isSmartRef__":true,"id":7519},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7519":{"this":{"__isSmartRef__":true,"id":7441},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7520}},"7520":{"$super":{"__isSmartRef__":true,"id":7521}},"7521":{"varMapping":{"__isSmartRef__":true,"id":7522},"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":7523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7522":{"obj":{"__isSmartRef__":true,"id":7441},"name":"getLayoutableSubmorphs"},"7523":{},"7524":{},"7525":{"submorphs":[{"__isSmartRef__":true,"id":7526}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7590},"derivationIds":[null],"id":"75822847-DFEA-45E1-9B7D-C856F16BACFF","renderContextTable":{"__isSmartRef__":true,"id":7595},"eventHandler":{"__isSmartRef__":true,"id":7596},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7597},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7599},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7600},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7601},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7526":{"submorphs":[{"__isSmartRef__":true,"id":7527},{"__isSmartRef__":true,"id":7544}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7560},"derivationIds":[null],"id":"41C11917-F355-4948-9193-D070A13D62C0","renderContextTable":{"__isSmartRef__":true,"id":7565},"eventHandler":{"__isSmartRef__":true,"id":7566},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7567},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4640},"propertyList":["x","y","width","height","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_Padding","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7527},"text":{"__isSmartRef__":true,"id":7544},"owner":{"__isSmartRef__":true,"id":7525},"_Position":{"__isSmartRef__":true,"id":7568},"priorExtent":{"__isSmartRef__":true,"id":7569},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7570},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7527":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7528},"derivationIds":[null],"id":"750C5A12-45A7-4ACA-8AB4-EE157964107A","renderContextTable":{"__isSmartRef__":true,"id":7534},"eventHandler":{"__isSmartRef__":true,"id":7535},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7536},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7537},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7528":{"_Position":{"__isSmartRef__":true,"id":7529},"renderContextTable":{"__isSmartRef__":true,"id":7530},"_Extent":{"__isSmartRef__":true,"id":7531},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7532},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7533},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7529":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7530":{"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"},"7531":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7532":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7533":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7534":{"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"},"7535":{"morph":{"__isSmartRef__":true,"id":7527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7536":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7537":{"toggle":{"__isSmartRef__":true,"id":7538},"toggleExpansion":{"__isSmartRef__":true,"id":7541}},"7538":{"varMapping":{"__isSmartRef__":true,"id":7539},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7539":{"this":{"__isSmartRef__":true,"id":7527}},"7540":{},"7541":{"varMapping":{"__isSmartRef__":true,"id":7542},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7542":{"this":{"__isSmartRef__":true,"id":7527}},"7543":{},"7544":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7545},"derivationIds":[null],"id":"CAEA13A3-B565-4291-B696-7EFF6F3A199B","renderContextTable":{"__isSmartRef__":true,"id":7549},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7550},{"__isSmartRef__":true,"id":7552}],"eventHandler":{"__isSmartRef__":true,"id":7554},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7555},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7556},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7545":{"_Position":{"__isSmartRef__":true,"id":7546},"renderContextTable":{"__isSmartRef__":true,"id":7547},"_Extent":{"__isSmartRef__":true,"id":7548},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7546":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7547":{"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"},"7548":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7549":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7550":{"style":{"__isSmartRef__":true,"id":7551},"chunkOwner":{"__isSmartRef__":true,"id":7544},"storedString":"_Padding","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7551":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7552":{"style":{"__isSmartRef__":true,"id":7553},"chunkOwner":{"__isSmartRef__":true,"id":7544},"storedString":": Rectangle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7553":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7554":{"morph":{"__isSmartRef__":true,"id":7544},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7556":{"layoutText":{"__isSmartRef__":true,"id":7557}},"7557":{"varMapping":{"__isSmartRef__":true,"id":7558},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7558":{"this":{"__isSmartRef__":true,"id":7544}},"7559":{},"7560":{"_Position":{"__isSmartRef__":true,"id":7561},"renderContextTable":{"__isSmartRef__":true,"id":7562},"_Extent":{"__isSmartRef__":true,"id":7563},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7564},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7561":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7562":{"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"},"7563":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7564":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7565":{"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"},"7566":{"morph":{"__isSmartRef__":true,"id":7526},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7567":{"resizeWidth":true},"7568":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7569":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7570":{"updateExpanderColor":{"__isSmartRef__":true,"id":7571},"onMouseDown":{"__isSmartRef__":true,"id":7574},"isRoot":{"__isSmartRef__":true,"id":7581},"displayValue":{"__isSmartRef__":true,"id":7584},"update":{"__isSmartRef__":true,"id":7587}},"7571":{"varMapping":{"__isSmartRef__":true,"id":7572},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7572":{"this":{"__isSmartRef__":true,"id":7526}},"7573":{},"7574":{"varMapping":{"__isSmartRef__":true,"id":7575},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7575":{"this":{"__isSmartRef__":true,"id":7526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7576}},"7576":{"$super":{"__isSmartRef__":true,"id":7577}},"7577":{"varMapping":{"__isSmartRef__":true,"id":7578},"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":7579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7578":{"obj":{"__isSmartRef__":true,"id":7526},"name":"onMouseDown"},"7579":{},"7580":{},"7581":{"varMapping":{"__isSmartRef__":true,"id":7582},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7582":{"this":{"__isSmartRef__":true,"id":7526}},"7583":{},"7584":{"varMapping":{"__isSmartRef__":true,"id":7585},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7585":{"this":{"__isSmartRef__":true,"id":7526}},"7586":{},"7587":{"varMapping":{"__isSmartRef__":true,"id":7588},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7588":{"this":{"__isSmartRef__":true,"id":7526}},"7589":{},"7590":{"_Position":{"__isSmartRef__":true,"id":7591},"renderContextTable":{"__isSmartRef__":true,"id":7592},"_Extent":{"__isSmartRef__":true,"id":7593},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7594},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7591":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7592":{"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"},"7593":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7594":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7595":{"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"},"7596":{"morph":{"__isSmartRef__":true,"id":7525},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7597":{"layouter":{"__isSmartRef__":true,"id":7598},"resizeWidth":true},"7598":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7525},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7599":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7600":{"x":0,"y":1100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7601":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7602}},"7602":{"varMapping":{"__isSmartRef__":true,"id":7603},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7603":{"this":{"__isSmartRef__":true,"id":7525},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7604}},"7604":{"$super":{"__isSmartRef__":true,"id":7605}},"7605":{"varMapping":{"__isSmartRef__":true,"id":7606},"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":7607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7606":{"obj":{"__isSmartRef__":true,"id":7525},"name":"getLayoutableSubmorphs"},"7607":{},"7608":{},"7609":{"submorphs":[{"__isSmartRef__":true,"id":7610}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7674},"derivationIds":[null],"id":"39E2B2EE-1A3E-4E3B-AC34-65074BDE505A","renderContextTable":{"__isSmartRef__":true,"id":7679},"eventHandler":{"__isSmartRef__":true,"id":7680},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7681},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7683},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7684},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7685},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7610":{"submorphs":[{"__isSmartRef__":true,"id":7611},{"__isSmartRef__":true,"id":7628}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7644},"derivationIds":[null],"id":"4C799B53-52E1-45AF-8F8D-048DDD7648E0","renderContextTable":{"__isSmartRef__":true,"id":7649},"eventHandler":{"__isSmartRef__":true,"id":7650},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7651},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":6757},"propertyList":["x","y","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_Position","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7611},"text":{"__isSmartRef__":true,"id":7628},"owner":{"__isSmartRef__":true,"id":7609},"_Position":{"__isSmartRef__":true,"id":7652},"priorExtent":{"__isSmartRef__":true,"id":7653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7654},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7611":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7612},"derivationIds":[null],"id":"EBCDD709-4CC7-4EA1-80EC-E15777950136","renderContextTable":{"__isSmartRef__":true,"id":7618},"eventHandler":{"__isSmartRef__":true,"id":7619},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7620},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7610},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7621},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7612":{"_Position":{"__isSmartRef__":true,"id":7613},"renderContextTable":{"__isSmartRef__":true,"id":7614},"_Extent":{"__isSmartRef__":true,"id":7615},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7616},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7617},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7613":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7614":{"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"},"7615":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7616":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7617":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7618":{"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"},"7619":{"morph":{"__isSmartRef__":true,"id":7611},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7620":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7621":{"toggle":{"__isSmartRef__":true,"id":7622},"toggleExpansion":{"__isSmartRef__":true,"id":7625}},"7622":{"varMapping":{"__isSmartRef__":true,"id":7623},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7623":{"this":{"__isSmartRef__":true,"id":7611}},"7624":{},"7625":{"varMapping":{"__isSmartRef__":true,"id":7626},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7626":{"this":{"__isSmartRef__":true,"id":7611}},"7627":{},"7628":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7629},"derivationIds":[null],"id":"1283D0BC-10DD-4EB7-8619-126F64C67B5C","renderContextTable":{"__isSmartRef__":true,"id":7633},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7634},{"__isSmartRef__":true,"id":7636}],"eventHandler":{"__isSmartRef__":true,"id":7638},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7639},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7610},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7640},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7629":{"_Position":{"__isSmartRef__":true,"id":7630},"renderContextTable":{"__isSmartRef__":true,"id":7631},"_Extent":{"__isSmartRef__":true,"id":7632},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7630":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7631":{"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"},"7632":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7633":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7634":{"style":{"__isSmartRef__":true,"id":7635},"chunkOwner":{"__isSmartRef__":true,"id":7628},"storedString":"_Position","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7635":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7636":{"style":{"__isSmartRef__":true,"id":7637},"chunkOwner":{"__isSmartRef__":true,"id":7628},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7637":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7638":{"morph":{"__isSmartRef__":true,"id":7628},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7639":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7640":{"layoutText":{"__isSmartRef__":true,"id":7641}},"7641":{"varMapping":{"__isSmartRef__":true,"id":7642},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7642":{"this":{"__isSmartRef__":true,"id":7628}},"7643":{},"7644":{"_Position":{"__isSmartRef__":true,"id":7645},"renderContextTable":{"__isSmartRef__":true,"id":7646},"_Extent":{"__isSmartRef__":true,"id":7647},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7648},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7645":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7646":{"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"},"7647":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7648":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7649":{"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"},"7650":{"morph":{"__isSmartRef__":true,"id":7610},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7651":{"resizeWidth":true},"7652":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7653":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7654":{"updateExpanderColor":{"__isSmartRef__":true,"id":7655},"onMouseDown":{"__isSmartRef__":true,"id":7658},"isRoot":{"__isSmartRef__":true,"id":7665},"displayValue":{"__isSmartRef__":true,"id":7668},"update":{"__isSmartRef__":true,"id":7671}},"7655":{"varMapping":{"__isSmartRef__":true,"id":7656},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7656":{"this":{"__isSmartRef__":true,"id":7610}},"7657":{},"7658":{"varMapping":{"__isSmartRef__":true,"id":7659},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7659":{"this":{"__isSmartRef__":true,"id":7610},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7660}},"7660":{"$super":{"__isSmartRef__":true,"id":7661}},"7661":{"varMapping":{"__isSmartRef__":true,"id":7662},"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":7663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7662":{"obj":{"__isSmartRef__":true,"id":7610},"name":"onMouseDown"},"7663":{},"7664":{},"7665":{"varMapping":{"__isSmartRef__":true,"id":7666},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7666":{"this":{"__isSmartRef__":true,"id":7610}},"7667":{},"7668":{"varMapping":{"__isSmartRef__":true,"id":7669},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7669":{"this":{"__isSmartRef__":true,"id":7610}},"7670":{},"7671":{"varMapping":{"__isSmartRef__":true,"id":7672},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7672":{"this":{"__isSmartRef__":true,"id":7610}},"7673":{},"7674":{"_Position":{"__isSmartRef__":true,"id":7675},"renderContextTable":{"__isSmartRef__":true,"id":7676},"_Extent":{"__isSmartRef__":true,"id":7677},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7678},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7675":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7676":{"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"},"7677":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7678":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7679":{"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"},"7680":{"morph":{"__isSmartRef__":true,"id":7609},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7681":{"layouter":{"__isSmartRef__":true,"id":7682},"resizeWidth":true},"7682":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7609},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7683":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7684":{"x":0,"y":1080,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7685":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7686}},"7686":{"varMapping":{"__isSmartRef__":true,"id":7687},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7687":{"this":{"__isSmartRef__":true,"id":7609},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7688}},"7688":{"$super":{"__isSmartRef__":true,"id":7689}},"7689":{"varMapping":{"__isSmartRef__":true,"id":7690},"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":7691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7690":{"obj":{"__isSmartRef__":true,"id":7609},"name":"getLayoutableSubmorphs"},"7691":{},"7692":{},"7693":{"submorphs":[{"__isSmartRef__":true,"id":7694}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7758},"derivationIds":[null],"id":"DF81C93F-1331-441B-B9BC-9359CBD9816B","renderContextTable":{"__isSmartRef__":true,"id":7763},"eventHandler":{"__isSmartRef__":true,"id":7764},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7765},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7767},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7768},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7769},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7694":{"submorphs":[{"__isSmartRef__":true,"id":7695},{"__isSmartRef__":true,"id":7712}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7728},"derivationIds":[null],"id":"001423AE-177F-4E5C-B734-9F900CB8A47F","renderContextTable":{"__isSmartRef__":true,"id":7733},"eventHandler":{"__isSmartRef__":true,"id":7734},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7735},"grabbingEnabled":false,"draggingEnabled":false,"data":0,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_Rotation","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7695},"text":{"__isSmartRef__":true,"id":7712},"owner":{"__isSmartRef__":true,"id":7693},"_Position":{"__isSmartRef__":true,"id":7736},"priorExtent":{"__isSmartRef__":true,"id":7737},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7738},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7695":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7696},"derivationIds":[null],"id":"E17F6628-7D6A-46D9-8D4C-DFE27F29BD25","renderContextTable":{"__isSmartRef__":true,"id":7702},"eventHandler":{"__isSmartRef__":true,"id":7703},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7704},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7694},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7705},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7696":{"_Position":{"__isSmartRef__":true,"id":7697},"renderContextTable":{"__isSmartRef__":true,"id":7698},"_Extent":{"__isSmartRef__":true,"id":7699},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7700},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7701},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7697":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7698":{"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"},"7699":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7700":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7701":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7702":{"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"},"7703":{"morph":{"__isSmartRef__":true,"id":7695},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7704":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7705":{"toggle":{"__isSmartRef__":true,"id":7706},"toggleExpansion":{"__isSmartRef__":true,"id":7709}},"7706":{"varMapping":{"__isSmartRef__":true,"id":7707},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7707":{"this":{"__isSmartRef__":true,"id":7695}},"7708":{},"7709":{"varMapping":{"__isSmartRef__":true,"id":7710},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7710":{"this":{"__isSmartRef__":true,"id":7695}},"7711":{},"7712":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7713},"derivationIds":[null],"id":"E6CBEC70-CA91-4640-98FE-90050A301186","renderContextTable":{"__isSmartRef__":true,"id":7717},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7718},{"__isSmartRef__":true,"id":7720}],"eventHandler":{"__isSmartRef__":true,"id":7722},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7723},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7694},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7724},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7713":{"_Position":{"__isSmartRef__":true,"id":7714},"renderContextTable":{"__isSmartRef__":true,"id":7715},"_Extent":{"__isSmartRef__":true,"id":7716},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7714":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7715":{"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"},"7716":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7717":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7718":{"style":{"__isSmartRef__":true,"id":7719},"chunkOwner":{"__isSmartRef__":true,"id":7712},"storedString":"_Rotation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7719":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7720":{"style":{"__isSmartRef__":true,"id":7721},"chunkOwner":{"__isSmartRef__":true,"id":7712},"storedString":": 0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7721":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7722":{"morph":{"__isSmartRef__":true,"id":7712},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7723":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7724":{"layoutText":{"__isSmartRef__":true,"id":7725}},"7725":{"varMapping":{"__isSmartRef__":true,"id":7726},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7726":{"this":{"__isSmartRef__":true,"id":7712}},"7727":{},"7728":{"_Position":{"__isSmartRef__":true,"id":7729},"renderContextTable":{"__isSmartRef__":true,"id":7730},"_Extent":{"__isSmartRef__":true,"id":7731},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7732},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7729":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7730":{"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"},"7731":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7732":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7733":{"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"},"7734":{"morph":{"__isSmartRef__":true,"id":7694},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7735":{"resizeWidth":true},"7736":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7737":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7738":{"updateExpanderColor":{"__isSmartRef__":true,"id":7739},"onMouseDown":{"__isSmartRef__":true,"id":7742},"isRoot":{"__isSmartRef__":true,"id":7749},"displayValue":{"__isSmartRef__":true,"id":7752},"update":{"__isSmartRef__":true,"id":7755}},"7739":{"varMapping":{"__isSmartRef__":true,"id":7740},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7740":{"this":{"__isSmartRef__":true,"id":7694}},"7741":{},"7742":{"varMapping":{"__isSmartRef__":true,"id":7743},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7743":{"this":{"__isSmartRef__":true,"id":7694},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7744}},"7744":{"$super":{"__isSmartRef__":true,"id":7745}},"7745":{"varMapping":{"__isSmartRef__":true,"id":7746},"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":7747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7746":{"obj":{"__isSmartRef__":true,"id":7694},"name":"onMouseDown"},"7747":{},"7748":{},"7749":{"varMapping":{"__isSmartRef__":true,"id":7750},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7750":{"this":{"__isSmartRef__":true,"id":7694}},"7751":{},"7752":{"varMapping":{"__isSmartRef__":true,"id":7753},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7753":{"this":{"__isSmartRef__":true,"id":7694}},"7754":{},"7755":{"varMapping":{"__isSmartRef__":true,"id":7756},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7756":{"this":{"__isSmartRef__":true,"id":7694}},"7757":{},"7758":{"_Position":{"__isSmartRef__":true,"id":7759},"renderContextTable":{"__isSmartRef__":true,"id":7760},"_Extent":{"__isSmartRef__":true,"id":7761},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7762},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7759":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7760":{"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"},"7761":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7762":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7763":{"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"},"7764":{"morph":{"__isSmartRef__":true,"id":7693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7765":{"layouter":{"__isSmartRef__":true,"id":7766},"resizeWidth":true},"7766":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7693},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7767":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7768":{"x":0,"y":1060,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7769":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7770}},"7770":{"varMapping":{"__isSmartRef__":true,"id":7771},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7771":{"this":{"__isSmartRef__":true,"id":7693},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7772}},"7772":{"$super":{"__isSmartRef__":true,"id":7773}},"7773":{"varMapping":{"__isSmartRef__":true,"id":7774},"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":7775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7774":{"obj":{"__isSmartRef__":true,"id":7693},"name":"getLayoutableSubmorphs"},"7775":{},"7776":{},"7777":{"submorphs":[{"__isSmartRef__":true,"id":7778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7842},"derivationIds":[null],"id":"3776D700-29BC-4768-BAB4-696A7ADD34D6","renderContextTable":{"__isSmartRef__":true,"id":7847},"eventHandler":{"__isSmartRef__":true,"id":7848},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7849},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7851},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7853},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7778":{"submorphs":[{"__isSmartRef__":true,"id":7779},{"__isSmartRef__":true,"id":7796}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7812},"derivationIds":[null],"id":"E0C0340F-5D33-466A-A0B0-A587C3BA0EA1","renderContextTable":{"__isSmartRef__":true,"id":7817},"eventHandler":{"__isSmartRef__":true,"id":7818},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7819},"grabbingEnabled":false,"draggingEnabled":false,"data":1,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_Scale","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7779},"text":{"__isSmartRef__":true,"id":7796},"owner":{"__isSmartRef__":true,"id":7777},"_Position":{"__isSmartRef__":true,"id":7820},"priorExtent":{"__isSmartRef__":true,"id":7821},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7822},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7779":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7780},"derivationIds":[null],"id":"645D5953-2B3F-4B4F-A2AC-3F62EDE3625E","renderContextTable":{"__isSmartRef__":true,"id":7786},"eventHandler":{"__isSmartRef__":true,"id":7787},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7788},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7778},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7789},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7780":{"_Position":{"__isSmartRef__":true,"id":7781},"renderContextTable":{"__isSmartRef__":true,"id":7782},"_Extent":{"__isSmartRef__":true,"id":7783},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7784},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7785},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7781":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7782":{"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"},"7783":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7784":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7785":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7786":{"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"},"7787":{"morph":{"__isSmartRef__":true,"id":7779},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7788":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7789":{"toggle":{"__isSmartRef__":true,"id":7790},"toggleExpansion":{"__isSmartRef__":true,"id":7793}},"7790":{"varMapping":{"__isSmartRef__":true,"id":7791},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7791":{"this":{"__isSmartRef__":true,"id":7779}},"7792":{},"7793":{"varMapping":{"__isSmartRef__":true,"id":7794},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7794":{"this":{"__isSmartRef__":true,"id":7779}},"7795":{},"7796":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7797},"derivationIds":[null],"id":"886F7E09-8445-4AC2-ABA8-F8146EBB13DA","renderContextTable":{"__isSmartRef__":true,"id":7801},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7802},{"__isSmartRef__":true,"id":7804}],"eventHandler":{"__isSmartRef__":true,"id":7806},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7807},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7778},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7808},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7797":{"_Position":{"__isSmartRef__":true,"id":7798},"renderContextTable":{"__isSmartRef__":true,"id":7799},"_Extent":{"__isSmartRef__":true,"id":7800},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7798":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7799":{"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"},"7800":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7801":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7802":{"style":{"__isSmartRef__":true,"id":7803},"chunkOwner":{"__isSmartRef__":true,"id":7796},"storedString":"_Scale","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7803":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7804":{"style":{"__isSmartRef__":true,"id":7805},"chunkOwner":{"__isSmartRef__":true,"id":7796},"storedString":": 1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7805":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7806":{"morph":{"__isSmartRef__":true,"id":7796},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7807":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7808":{"layoutText":{"__isSmartRef__":true,"id":7809}},"7809":{"varMapping":{"__isSmartRef__":true,"id":7810},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7810":{"this":{"__isSmartRef__":true,"id":7796}},"7811":{},"7812":{"_Position":{"__isSmartRef__":true,"id":7813},"renderContextTable":{"__isSmartRef__":true,"id":7814},"_Extent":{"__isSmartRef__":true,"id":7815},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7816},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7813":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7814":{"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"},"7815":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7816":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7817":{"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"},"7818":{"morph":{"__isSmartRef__":true,"id":7778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7819":{"resizeWidth":true},"7820":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7821":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7822":{"updateExpanderColor":{"__isSmartRef__":true,"id":7823},"onMouseDown":{"__isSmartRef__":true,"id":7826},"isRoot":{"__isSmartRef__":true,"id":7833},"displayValue":{"__isSmartRef__":true,"id":7836},"update":{"__isSmartRef__":true,"id":7839}},"7823":{"varMapping":{"__isSmartRef__":true,"id":7824},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7824":{"this":{"__isSmartRef__":true,"id":7778}},"7825":{},"7826":{"varMapping":{"__isSmartRef__":true,"id":7827},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7827":{"this":{"__isSmartRef__":true,"id":7778},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7828}},"7828":{"$super":{"__isSmartRef__":true,"id":7829}},"7829":{"varMapping":{"__isSmartRef__":true,"id":7830},"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":7831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7830":{"obj":{"__isSmartRef__":true,"id":7778},"name":"onMouseDown"},"7831":{},"7832":{},"7833":{"varMapping":{"__isSmartRef__":true,"id":7834},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7834":{"this":{"__isSmartRef__":true,"id":7778}},"7835":{},"7836":{"varMapping":{"__isSmartRef__":true,"id":7837},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7837":{"this":{"__isSmartRef__":true,"id":7778}},"7838":{},"7839":{"varMapping":{"__isSmartRef__":true,"id":7840},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7840":{"this":{"__isSmartRef__":true,"id":7778}},"7841":{},"7842":{"_Position":{"__isSmartRef__":true,"id":7843},"renderContextTable":{"__isSmartRef__":true,"id":7844},"_Extent":{"__isSmartRef__":true,"id":7845},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7846},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7843":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7844":{"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"},"7845":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7846":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7847":{"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"},"7848":{"morph":{"__isSmartRef__":true,"id":7777},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7849":{"layouter":{"__isSmartRef__":true,"id":7850},"resizeWidth":true},"7850":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7777},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7851":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7852":{"x":0,"y":1040,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7853":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7854}},"7854":{"varMapping":{"__isSmartRef__":true,"id":7855},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7855":{"this":{"__isSmartRef__":true,"id":7777},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7856}},"7856":{"$super":{"__isSmartRef__":true,"id":7857}},"7857":{"varMapping":{"__isSmartRef__":true,"id":7858},"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":7859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7858":{"obj":{"__isSmartRef__":true,"id":7777},"name":"getLayoutableSubmorphs"},"7859":{},"7860":{},"7861":{"submorphs":[{"__isSmartRef__":true,"id":7862}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7926},"derivationIds":[null],"id":"4223D04B-EF71-44B4-948B-EA548FA39BC5","renderContextTable":{"__isSmartRef__":true,"id":7931},"eventHandler":{"__isSmartRef__":true,"id":7932},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7933},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7935},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":7936},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7937},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7862":{"submorphs":[{"__isSmartRef__":true,"id":7863},{"__isSmartRef__":true,"id":7880}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7896},"derivationIds":[null],"id":"54DB6E01-0B11-463E-A1E7-107ED3AD4A9E","renderContextTable":{"__isSmartRef__":true,"id":7901},"eventHandler":{"__isSmartRef__":true,"id":7902},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7903},"grabbingEnabled":false,"draggingEnabled":false,"data":"pre-wrap","propertyList":["0","1","2","3","4","5","6","7"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_WhiteSpaceHandling","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7863},"text":{"__isSmartRef__":true,"id":7880},"owner":{"__isSmartRef__":true,"id":7861},"_Position":{"__isSmartRef__":true,"id":7904},"priorExtent":{"__isSmartRef__":true,"id":7905},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7906},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7863":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7864},"derivationIds":[null],"id":"9723DEA0-70B9-4F99-88AF-C7C4291FB9B9","renderContextTable":{"__isSmartRef__":true,"id":7870},"eventHandler":{"__isSmartRef__":true,"id":7871},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7872},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7862},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7873},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7864":{"_Position":{"__isSmartRef__":true,"id":7865},"renderContextTable":{"__isSmartRef__":true,"id":7866},"_Extent":{"__isSmartRef__":true,"id":7867},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7868},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7869},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7865":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7866":{"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"},"7867":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7868":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7869":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7870":{"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"},"7871":{"morph":{"__isSmartRef__":true,"id":7863},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7872":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7873":{"toggle":{"__isSmartRef__":true,"id":7874},"toggleExpansion":{"__isSmartRef__":true,"id":7877}},"7874":{"varMapping":{"__isSmartRef__":true,"id":7875},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7875":{"this":{"__isSmartRef__":true,"id":7863}},"7876":{},"7877":{"varMapping":{"__isSmartRef__":true,"id":7878},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7878":{"this":{"__isSmartRef__":true,"id":7863}},"7879":{},"7880":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7881},"derivationIds":[null],"id":"56BD0F56-68BC-4895-8878-9C3F67C835DA","renderContextTable":{"__isSmartRef__":true,"id":7885},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7886},{"__isSmartRef__":true,"id":7888}],"eventHandler":{"__isSmartRef__":true,"id":7890},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7891},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7862},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7892},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7881":{"_Position":{"__isSmartRef__":true,"id":7882},"renderContextTable":{"__isSmartRef__":true,"id":7883},"_Extent":{"__isSmartRef__":true,"id":7884},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7882":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7883":{"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"},"7884":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7885":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7886":{"style":{"__isSmartRef__":true,"id":7887},"chunkOwner":{"__isSmartRef__":true,"id":7880},"storedString":"_WhiteSpaceHandling","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7887":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7888":{"style":{"__isSmartRef__":true,"id":7889},"chunkOwner":{"__isSmartRef__":true,"id":7880},"storedString":": pre-wrap","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7889":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7890":{"morph":{"__isSmartRef__":true,"id":7880},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7891":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7892":{"layoutText":{"__isSmartRef__":true,"id":7893}},"7893":{"varMapping":{"__isSmartRef__":true,"id":7894},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7894":{"this":{"__isSmartRef__":true,"id":7880}},"7895":{},"7896":{"_Position":{"__isSmartRef__":true,"id":7897},"renderContextTable":{"__isSmartRef__":true,"id":7898},"_Extent":{"__isSmartRef__":true,"id":7899},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7900},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7897":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7898":{"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"},"7899":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7900":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7901":{"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"},"7902":{"morph":{"__isSmartRef__":true,"id":7862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7903":{"resizeWidth":true},"7904":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7905":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7906":{"updateExpanderColor":{"__isSmartRef__":true,"id":7907},"onMouseDown":{"__isSmartRef__":true,"id":7910},"isRoot":{"__isSmartRef__":true,"id":7917},"displayValue":{"__isSmartRef__":true,"id":7920},"update":{"__isSmartRef__":true,"id":7923}},"7907":{"varMapping":{"__isSmartRef__":true,"id":7908},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7908":{"this":{"__isSmartRef__":true,"id":7862}},"7909":{},"7910":{"varMapping":{"__isSmartRef__":true,"id":7911},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7911":{"this":{"__isSmartRef__":true,"id":7862},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7912}},"7912":{"$super":{"__isSmartRef__":true,"id":7913}},"7913":{"varMapping":{"__isSmartRef__":true,"id":7914},"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":7915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7914":{"obj":{"__isSmartRef__":true,"id":7862},"name":"onMouseDown"},"7915":{},"7916":{},"7917":{"varMapping":{"__isSmartRef__":true,"id":7918},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7918":{"this":{"__isSmartRef__":true,"id":7862}},"7919":{},"7920":{"varMapping":{"__isSmartRef__":true,"id":7921},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7921":{"this":{"__isSmartRef__":true,"id":7862}},"7922":{},"7923":{"varMapping":{"__isSmartRef__":true,"id":7924},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7924":{"this":{"__isSmartRef__":true,"id":7862}},"7925":{},"7926":{"_Position":{"__isSmartRef__":true,"id":7927},"renderContextTable":{"__isSmartRef__":true,"id":7928},"_Extent":{"__isSmartRef__":true,"id":7929},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7930},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7927":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7928":{"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"},"7929":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7930":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7931":{"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"},"7932":{"morph":{"__isSmartRef__":true,"id":7861},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7933":{"layouter":{"__isSmartRef__":true,"id":7934},"resizeWidth":true},"7934":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7861},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7936":{"x":0,"y":1020,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7937":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7938}},"7938":{"varMapping":{"__isSmartRef__":true,"id":7939},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7939":{"this":{"__isSmartRef__":true,"id":7861},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7940}},"7940":{"$super":{"__isSmartRef__":true,"id":7941}},"7941":{"varMapping":{"__isSmartRef__":true,"id":7942},"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":7943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7942":{"obj":{"__isSmartRef__":true,"id":7861},"name":"getLayoutableSubmorphs"},"7943":{},"7944":{},"7945":{"submorphs":[{"__isSmartRef__":true,"id":7946}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8010},"derivationIds":[null],"id":"8AA6CAD1-1162-4CB3-A075-D77D344C425D","renderContextTable":{"__isSmartRef__":true,"id":8015},"eventHandler":{"__isSmartRef__":true,"id":8016},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8017},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8019},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8020},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8021},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7946":{"submorphs":[{"__isSmartRef__":true,"id":7947},{"__isSmartRef__":true,"id":7964}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7980},"derivationIds":[null],"id":"E85603FD-DB5E-498F-918B-DCBF02BCC52C","renderContextTable":{"__isSmartRef__":true,"id":7985},"eventHandler":{"__isSmartRef__":true,"id":7986},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7987},"grabbingEnabled":false,"draggingEnabled":false,"data":"Global.lively.morphic.TextCore","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"__SourceModuleName__","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":7947},"text":{"__isSmartRef__":true,"id":7964},"owner":{"__isSmartRef__":true,"id":7945},"_Position":{"__isSmartRef__":true,"id":7988},"priorExtent":{"__isSmartRef__":true,"id":7989},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7990},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7947":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7948},"derivationIds":[null],"id":"4D46E401-CF2B-4831-98EA-90F9FB2CCE6B","renderContextTable":{"__isSmartRef__":true,"id":7954},"eventHandler":{"__isSmartRef__":true,"id":7955},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7956},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7946},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7957},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7948":{"_Position":{"__isSmartRef__":true,"id":7949},"renderContextTable":{"__isSmartRef__":true,"id":7950},"_Extent":{"__isSmartRef__":true,"id":7951},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7952},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":7953},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7949":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7950":{"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"},"7951":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7952":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7953":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7954":{"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"},"7955":{"morph":{"__isSmartRef__":true,"id":7947},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7956":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7957":{"toggle":{"__isSmartRef__":true,"id":7958},"toggleExpansion":{"__isSmartRef__":true,"id":7961}},"7958":{"varMapping":{"__isSmartRef__":true,"id":7959},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7959":{"this":{"__isSmartRef__":true,"id":7947}},"7960":{},"7961":{"varMapping":{"__isSmartRef__":true,"id":7962},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7962":{"this":{"__isSmartRef__":true,"id":7947}},"7963":{},"7964":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7965},"derivationIds":[null],"id":"633CC75D-387F-4B9A-9EFE-05DD621CD036","renderContextTable":{"__isSmartRef__":true,"id":7969},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7970},{"__isSmartRef__":true,"id":7972}],"eventHandler":{"__isSmartRef__":true,"id":7974},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7975},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7946},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7976},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7965":{"_Position":{"__isSmartRef__":true,"id":7966},"renderContextTable":{"__isSmartRef__":true,"id":7967},"_Extent":{"__isSmartRef__":true,"id":7968},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7966":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7967":{"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"},"7968":{"x":390,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7969":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7970":{"style":{"__isSmartRef__":true,"id":7971},"chunkOwner":{"__isSmartRef__":true,"id":7964},"storedString":"__SourceModuleName__","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7971":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7972":{"style":{"__isSmartRef__":true,"id":7973},"chunkOwner":{"__isSmartRef__":true,"id":7964},"storedString":": Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7973":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7974":{"morph":{"__isSmartRef__":true,"id":7964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7975":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7976":{"layoutText":{"__isSmartRef__":true,"id":7977}},"7977":{"varMapping":{"__isSmartRef__":true,"id":7978},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7978":{"this":{"__isSmartRef__":true,"id":7964}},"7979":{},"7980":{"_Position":{"__isSmartRef__":true,"id":7981},"renderContextTable":{"__isSmartRef__":true,"id":7982},"_Extent":{"__isSmartRef__":true,"id":7983},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7984},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7981":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7982":{"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"},"7983":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7984":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7985":{"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"},"7986":{"morph":{"__isSmartRef__":true,"id":7946},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7987":{"resizeWidth":true},"7988":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7989":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7990":{"updateExpanderColor":{"__isSmartRef__":true,"id":7991},"onMouseDown":{"__isSmartRef__":true,"id":7994},"isRoot":{"__isSmartRef__":true,"id":8001},"displayValue":{"__isSmartRef__":true,"id":8004},"update":{"__isSmartRef__":true,"id":8007}},"7991":{"varMapping":{"__isSmartRef__":true,"id":7992},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7992":{"this":{"__isSmartRef__":true,"id":7946}},"7993":{},"7994":{"varMapping":{"__isSmartRef__":true,"id":7995},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7995":{"this":{"__isSmartRef__":true,"id":7946},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7996}},"7996":{"$super":{"__isSmartRef__":true,"id":7997}},"7997":{"varMapping":{"__isSmartRef__":true,"id":7998},"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":7999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7998":{"obj":{"__isSmartRef__":true,"id":7946},"name":"onMouseDown"},"7999":{},"8000":{},"8001":{"varMapping":{"__isSmartRef__":true,"id":8002},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8002":{"this":{"__isSmartRef__":true,"id":7946}},"8003":{},"8004":{"varMapping":{"__isSmartRef__":true,"id":8005},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8005":{"this":{"__isSmartRef__":true,"id":7946}},"8006":{},"8007":{"varMapping":{"__isSmartRef__":true,"id":8008},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8008":{"this":{"__isSmartRef__":true,"id":7946}},"8009":{},"8010":{"_Position":{"__isSmartRef__":true,"id":8011},"renderContextTable":{"__isSmartRef__":true,"id":8012},"_Extent":{"__isSmartRef__":true,"id":8013},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8014},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8011":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8012":{"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"},"8013":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8014":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8015":{"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"},"8016":{"morph":{"__isSmartRef__":true,"id":7945},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8017":{"layouter":{"__isSmartRef__":true,"id":8018},"resizeWidth":true},"8018":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7945},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8019":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8020":{"x":0,"y":1000,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8021":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8022}},"8022":{"varMapping":{"__isSmartRef__":true,"id":8023},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8023":{"this":{"__isSmartRef__":true,"id":7945},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8024}},"8024":{"$super":{"__isSmartRef__":true,"id":8025}},"8025":{"varMapping":{"__isSmartRef__":true,"id":8026},"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":8027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8026":{"obj":{"__isSmartRef__":true,"id":7945},"name":"getLayoutableSubmorphs"},"8027":{},"8028":{},"8029":{"submorphs":[{"__isSmartRef__":true,"id":8030}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8094},"derivationIds":[null],"id":"823F51E4-BE6B-48E2-93A0-3008C872C0CD","renderContextTable":{"__isSmartRef__":true,"id":8099},"eventHandler":{"__isSmartRef__":true,"id":8100},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8101},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8103},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8030":{"submorphs":[{"__isSmartRef__":true,"id":8031},{"__isSmartRef__":true,"id":8048}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8064},"derivationIds":[null],"id":"D6FD8E34-032A-4BD4-BBCA-C8EED630756A","renderContextTable":{"__isSmartRef__":true,"id":8069},"eventHandler":{"__isSmartRef__":true,"id":8070},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8071},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_isRendered","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8031},"text":{"__isSmartRef__":true,"id":8048},"owner":{"__isSmartRef__":true,"id":8029},"_Position":{"__isSmartRef__":true,"id":8072},"priorExtent":{"__isSmartRef__":true,"id":8073},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8074},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8031":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8032},"derivationIds":[null],"id":"56B46D02-8965-4B90-BE6F-7633ECEBE3F2","renderContextTable":{"__isSmartRef__":true,"id":8038},"eventHandler":{"__isSmartRef__":true,"id":8039},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8040},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8030},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8041},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8032":{"_Position":{"__isSmartRef__":true,"id":8033},"renderContextTable":{"__isSmartRef__":true,"id":8034},"_Extent":{"__isSmartRef__":true,"id":8035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8036},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8037},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8034":{"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"},"8035":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8037":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8038":{"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"},"8039":{"morph":{"__isSmartRef__":true,"id":8031},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8040":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8041":{"toggle":{"__isSmartRef__":true,"id":8042},"toggleExpansion":{"__isSmartRef__":true,"id":8045}},"8042":{"varMapping":{"__isSmartRef__":true,"id":8043},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8043":{"this":{"__isSmartRef__":true,"id":8031}},"8044":{},"8045":{"varMapping":{"__isSmartRef__":true,"id":8046},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8046":{"this":{"__isSmartRef__":true,"id":8031}},"8047":{},"8048":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8049},"derivationIds":[null],"id":"5DCF926E-9658-45F9-BE0C-85DFAC36454A","renderContextTable":{"__isSmartRef__":true,"id":8053},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8054},{"__isSmartRef__":true,"id":8056}],"eventHandler":{"__isSmartRef__":true,"id":8058},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8059},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8030},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8060},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8049":{"_Position":{"__isSmartRef__":true,"id":8050},"renderContextTable":{"__isSmartRef__":true,"id":8051},"_Extent":{"__isSmartRef__":true,"id":8052},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8050":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8051":{"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"},"8052":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8053":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8054":{"style":{"__isSmartRef__":true,"id":8055},"chunkOwner":{"__isSmartRef__":true,"id":8048},"storedString":"_isRendered","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8055":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8056":{"style":{"__isSmartRef__":true,"id":8057},"chunkOwner":{"__isSmartRef__":true,"id":8048},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8057":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8058":{"morph":{"__isSmartRef__":true,"id":8048},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8059":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8060":{"layoutText":{"__isSmartRef__":true,"id":8061}},"8061":{"varMapping":{"__isSmartRef__":true,"id":8062},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8062":{"this":{"__isSmartRef__":true,"id":8048}},"8063":{},"8064":{"_Position":{"__isSmartRef__":true,"id":8065},"renderContextTable":{"__isSmartRef__":true,"id":8066},"_Extent":{"__isSmartRef__":true,"id":8067},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8068},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8065":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8066":{"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"},"8067":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8068":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8069":{"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"},"8070":{"morph":{"__isSmartRef__":true,"id":8030},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8071":{"resizeWidth":true},"8072":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8073":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8074":{"updateExpanderColor":{"__isSmartRef__":true,"id":8075},"onMouseDown":{"__isSmartRef__":true,"id":8078},"isRoot":{"__isSmartRef__":true,"id":8085},"displayValue":{"__isSmartRef__":true,"id":8088},"update":{"__isSmartRef__":true,"id":8091}},"8075":{"varMapping":{"__isSmartRef__":true,"id":8076},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8076":{"this":{"__isSmartRef__":true,"id":8030}},"8077":{},"8078":{"varMapping":{"__isSmartRef__":true,"id":8079},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8079":{"this":{"__isSmartRef__":true,"id":8030},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8080}},"8080":{"$super":{"__isSmartRef__":true,"id":8081}},"8081":{"varMapping":{"__isSmartRef__":true,"id":8082},"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":8083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8082":{"obj":{"__isSmartRef__":true,"id":8030},"name":"onMouseDown"},"8083":{},"8084":{},"8085":{"varMapping":{"__isSmartRef__":true,"id":8086},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8086":{"this":{"__isSmartRef__":true,"id":8030}},"8087":{},"8088":{"varMapping":{"__isSmartRef__":true,"id":8089},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8089":{"this":{"__isSmartRef__":true,"id":8030}},"8090":{},"8091":{"varMapping":{"__isSmartRef__":true,"id":8092},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8092":{"this":{"__isSmartRef__":true,"id":8030}},"8093":{},"8094":{"_Position":{"__isSmartRef__":true,"id":8095},"renderContextTable":{"__isSmartRef__":true,"id":8096},"_Extent":{"__isSmartRef__":true,"id":8097},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8098},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8095":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8096":{"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"},"8097":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8098":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8099":{"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"},"8100":{"morph":{"__isSmartRef__":true,"id":8029},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8101":{"layouter":{"__isSmartRef__":true,"id":8102},"resizeWidth":true},"8102":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8029},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8103":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8104":{"x":0,"y":980,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8105":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8106}},"8106":{"varMapping":{"__isSmartRef__":true,"id":8107},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8107":{"this":{"__isSmartRef__":true,"id":8029},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8108}},"8108":{"$super":{"__isSmartRef__":true,"id":8109}},"8109":{"varMapping":{"__isSmartRef__":true,"id":8110},"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":8111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8110":{"obj":{"__isSmartRef__":true,"id":8029},"name":"getLayoutableSubmorphs"},"8111":{},"8112":{},"8113":{"submorphs":[{"__isSmartRef__":true,"id":8114}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8179},"derivationIds":[null],"id":"5C66483E-0D68-425D-B1E9-9F90FA112DBA","renderContextTable":{"__isSmartRef__":true,"id":8184},"eventHandler":{"__isSmartRef__":true,"id":8185},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8186},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8188},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8190},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8114":{"submorphs":[{"__isSmartRef__":true,"id":8115},{"__isSmartRef__":true,"id":8132}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8148},"derivationIds":[null],"id":"1D714665-9815-45F8-83EC-B1FC17AEB3CB","renderContextTable":{"__isSmartRef__":true,"id":8153},"eventHandler":{"__isSmartRef__":true,"id":8154},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8155},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":8156},"propertyList":["parentNode","textNode","morphNode","shapeNode"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"_renderContext","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8115},"text":{"__isSmartRef__":true,"id":8132},"owner":{"__isSmartRef__":true,"id":8113},"_Position":{"__isSmartRef__":true,"id":8157},"priorExtent":{"__isSmartRef__":true,"id":8158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8159},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8115":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8116},"derivationIds":[null],"id":"0CDC0DAF-4F63-4F1F-B83D-37511F3879D3","renderContextTable":{"__isSmartRef__":true,"id":8122},"eventHandler":{"__isSmartRef__":true,"id":8123},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8124},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8114},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8125},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8116":{"_Position":{"__isSmartRef__":true,"id":8117},"renderContextTable":{"__isSmartRef__":true,"id":8118},"_Extent":{"__isSmartRef__":true,"id":8119},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8120},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8121},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8117":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8118":{"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"},"8119":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8120":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8121":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8122":{"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"},"8123":{"morph":{"__isSmartRef__":true,"id":8115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8124":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8125":{"toggle":{"__isSmartRef__":true,"id":8126},"toggleExpansion":{"__isSmartRef__":true,"id":8129}},"8126":{"varMapping":{"__isSmartRef__":true,"id":8127},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8127":{"this":{"__isSmartRef__":true,"id":8115}},"8128":{},"8129":{"varMapping":{"__isSmartRef__":true,"id":8130},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8130":{"this":{"__isSmartRef__":true,"id":8115}},"8131":{},"8132":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8133},"derivationIds":[null],"id":"08A1C8AA-67BB-454A-B98F-3F66F0274974","renderContextTable":{"__isSmartRef__":true,"id":8137},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8138},{"__isSmartRef__":true,"id":8140}],"eventHandler":{"__isSmartRef__":true,"id":8142},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8143},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8114},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8144},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8133":{"_Position":{"__isSmartRef__":true,"id":8134},"renderContextTable":{"__isSmartRef__":true,"id":8135},"_Extent":{"__isSmartRef__":true,"id":8136},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8134":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8135":{"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"},"8136":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8137":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8138":{"style":{"__isSmartRef__":true,"id":8139},"chunkOwner":{"__isSmartRef__":true,"id":8132},"storedString":"_renderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8139":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8140":{"style":{"__isSmartRef__":true,"id":8141},"chunkOwner":{"__isSmartRef__":true,"id":8132},"storedString":": RenderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8141":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8142":{"morph":{"__isSmartRef__":true,"id":8132},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8143":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8144":{"layoutText":{"__isSmartRef__":true,"id":8145}},"8145":{"varMapping":{"__isSmartRef__":true,"id":8146},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8146":{"this":{"__isSmartRef__":true,"id":8132}},"8147":{},"8148":{"_Position":{"__isSmartRef__":true,"id":8149},"renderContextTable":{"__isSmartRef__":true,"id":8150},"_Extent":{"__isSmartRef__":true,"id":8151},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8152},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8149":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8150":{"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"},"8151":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8152":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8153":{"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"},"8154":{"morph":{"__isSmartRef__":true,"id":8114},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8155":{"resizeWidth":true},"8156":{"__LivelyClassName__":"lively.morphic.HTML.RenderContext","__SourceModuleName__":"Global.lively.morphic.HTML"},"8157":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8158":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8159":{"updateExpanderColor":{"__isSmartRef__":true,"id":8160},"onMouseDown":{"__isSmartRef__":true,"id":8163},"isRoot":{"__isSmartRef__":true,"id":8170},"displayValue":{"__isSmartRef__":true,"id":8173},"update":{"__isSmartRef__":true,"id":8176}},"8160":{"varMapping":{"__isSmartRef__":true,"id":8161},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8161":{"this":{"__isSmartRef__":true,"id":8114}},"8162":{},"8163":{"varMapping":{"__isSmartRef__":true,"id":8164},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8164":{"this":{"__isSmartRef__":true,"id":8114},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8165}},"8165":{"$super":{"__isSmartRef__":true,"id":8166}},"8166":{"varMapping":{"__isSmartRef__":true,"id":8167},"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":8168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8167":{"obj":{"__isSmartRef__":true,"id":8114},"name":"onMouseDown"},"8168":{},"8169":{},"8170":{"varMapping":{"__isSmartRef__":true,"id":8171},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8171":{"this":{"__isSmartRef__":true,"id":8114}},"8172":{},"8173":{"varMapping":{"__isSmartRef__":true,"id":8174},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8174":{"this":{"__isSmartRef__":true,"id":8114}},"8175":{},"8176":{"varMapping":{"__isSmartRef__":true,"id":8177},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8177":{"this":{"__isSmartRef__":true,"id":8114}},"8178":{},"8179":{"_Position":{"__isSmartRef__":true,"id":8180},"renderContextTable":{"__isSmartRef__":true,"id":8181},"_Extent":{"__isSmartRef__":true,"id":8182},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8183},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8181":{"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"},"8182":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8183":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8184":{"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"},"8185":{"morph":{"__isSmartRef__":true,"id":8113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8186":{"layouter":{"__isSmartRef__":true,"id":8187},"resizeWidth":true},"8187":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8113},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8188":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8189":{"x":0,"y":960,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8190":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8191}},"8191":{"varMapping":{"__isSmartRef__":true,"id":8192},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8192":{"this":{"__isSmartRef__":true,"id":8113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8193}},"8193":{"$super":{"__isSmartRef__":true,"id":8194}},"8194":{"varMapping":{"__isSmartRef__":true,"id":8195},"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":8196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8195":{"obj":{"__isSmartRef__":true,"id":8113},"name":"getLayoutableSubmorphs"},"8196":{},"8197":{},"8198":{"submorphs":[{"__isSmartRef__":true,"id":8199}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8263},"derivationIds":[null],"id":"01671984-D19A-474D-99E6-C77752E94B5C","renderContextTable":{"__isSmartRef__":true,"id":8268},"eventHandler":{"__isSmartRef__":true,"id":8269},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8270},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8272},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8274},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8199":{"submorphs":[{"__isSmartRef__":true,"id":8200},{"__isSmartRef__":true,"id":8217}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8233},"derivationIds":[null],"id":"16EA05E7-A7AE-4562-818E-AA4D0D6ADF94","renderContextTable":{"__isSmartRef__":true,"id":8238},"eventHandler":{"__isSmartRef__":true,"id":8239},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8240},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"allowInput","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8200},"text":{"__isSmartRef__":true,"id":8217},"owner":{"__isSmartRef__":true,"id":8198},"_Position":{"__isSmartRef__":true,"id":8241},"priorExtent":{"__isSmartRef__":true,"id":8242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8200":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8201},"derivationIds":[null],"id":"F48B1A6F-1A82-4004-A46D-AE4969E95E8F","renderContextTable":{"__isSmartRef__":true,"id":8207},"eventHandler":{"__isSmartRef__":true,"id":8208},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8209},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8210},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8201":{"_Position":{"__isSmartRef__":true,"id":8202},"renderContextTable":{"__isSmartRef__":true,"id":8203},"_Extent":{"__isSmartRef__":true,"id":8204},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8205},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8206},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8202":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8203":{"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"},"8204":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8205":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8206":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8207":{"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"},"8208":{"morph":{"__isSmartRef__":true,"id":8200},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8209":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8210":{"toggle":{"__isSmartRef__":true,"id":8211},"toggleExpansion":{"__isSmartRef__":true,"id":8214}},"8211":{"varMapping":{"__isSmartRef__":true,"id":8212},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8212":{"this":{"__isSmartRef__":true,"id":8200}},"8213":{},"8214":{"varMapping":{"__isSmartRef__":true,"id":8215},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8215":{"this":{"__isSmartRef__":true,"id":8200}},"8216":{},"8217":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8218},"derivationIds":[null],"id":"578EAC82-D9A8-4B3F-8279-7C1ED756DE5A","renderContextTable":{"__isSmartRef__":true,"id":8222},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8223},{"__isSmartRef__":true,"id":8225}],"eventHandler":{"__isSmartRef__":true,"id":8227},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8228},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8229},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8218":{"_Position":{"__isSmartRef__":true,"id":8219},"renderContextTable":{"__isSmartRef__":true,"id":8220},"_Extent":{"__isSmartRef__":true,"id":8221},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8219":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8220":{"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"},"8221":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8222":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8223":{"style":{"__isSmartRef__":true,"id":8224},"chunkOwner":{"__isSmartRef__":true,"id":8217},"storedString":"allowInput","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8224":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8225":{"style":{"__isSmartRef__":true,"id":8226},"chunkOwner":{"__isSmartRef__":true,"id":8217},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8226":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8227":{"morph":{"__isSmartRef__":true,"id":8217},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8228":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8229":{"layoutText":{"__isSmartRef__":true,"id":8230}},"8230":{"varMapping":{"__isSmartRef__":true,"id":8231},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8231":{"this":{"__isSmartRef__":true,"id":8217}},"8232":{},"8233":{"_Position":{"__isSmartRef__":true,"id":8234},"renderContextTable":{"__isSmartRef__":true,"id":8235},"_Extent":{"__isSmartRef__":true,"id":8236},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8237},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8235":{"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"},"8236":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8237":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8238":{"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"},"8239":{"morph":{"__isSmartRef__":true,"id":8199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8240":{"resizeWidth":true},"8241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8242":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8243":{"updateExpanderColor":{"__isSmartRef__":true,"id":8244},"onMouseDown":{"__isSmartRef__":true,"id":8247},"isRoot":{"__isSmartRef__":true,"id":8254},"displayValue":{"__isSmartRef__":true,"id":8257},"update":{"__isSmartRef__":true,"id":8260}},"8244":{"varMapping":{"__isSmartRef__":true,"id":8245},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8245":{"this":{"__isSmartRef__":true,"id":8199}},"8246":{},"8247":{"varMapping":{"__isSmartRef__":true,"id":8248},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8248":{"this":{"__isSmartRef__":true,"id":8199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8249}},"8249":{"$super":{"__isSmartRef__":true,"id":8250}},"8250":{"varMapping":{"__isSmartRef__":true,"id":8251},"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":8252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8251":{"obj":{"__isSmartRef__":true,"id":8199},"name":"onMouseDown"},"8252":{},"8253":{},"8254":{"varMapping":{"__isSmartRef__":true,"id":8255},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8255":{"this":{"__isSmartRef__":true,"id":8199}},"8256":{},"8257":{"varMapping":{"__isSmartRef__":true,"id":8258},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8258":{"this":{"__isSmartRef__":true,"id":8199}},"8259":{},"8260":{"varMapping":{"__isSmartRef__":true,"id":8261},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8261":{"this":{"__isSmartRef__":true,"id":8199}},"8262":{},"8263":{"_Position":{"__isSmartRef__":true,"id":8264},"renderContextTable":{"__isSmartRef__":true,"id":8265},"_Extent":{"__isSmartRef__":true,"id":8266},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8267},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8264":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8265":{"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"},"8266":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8267":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8268":{"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"},"8269":{"morph":{"__isSmartRef__":true,"id":8198},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8270":{"layouter":{"__isSmartRef__":true,"id":8271},"resizeWidth":true},"8271":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8198},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8272":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8273":{"x":0,"y":940,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8274":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8275}},"8275":{"varMapping":{"__isSmartRef__":true,"id":8276},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8276":{"this":{"__isSmartRef__":true,"id":8198},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8277}},"8277":{"$super":{"__isSmartRef__":true,"id":8278}},"8278":{"varMapping":{"__isSmartRef__":true,"id":8279},"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":8280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8279":{"obj":{"__isSmartRef__":true,"id":8198},"name":"getLayoutableSubmorphs"},"8280":{},"8281":{},"8282":{"submorphs":[{"__isSmartRef__":true,"id":8283}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8347},"derivationIds":[null],"id":"54BC84E9-4920-44A6-BBBF-970B70747418","renderContextTable":{"__isSmartRef__":true,"id":8352},"eventHandler":{"__isSmartRef__":true,"id":8353},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8354},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8356},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8357},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8358},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8283":{"submorphs":[{"__isSmartRef__":true,"id":8284},{"__isSmartRef__":true,"id":8301}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8317},"derivationIds":[null],"id":"3CD4BCA6-20A2-4F71-A74B-0FE5F2B1E5EE","renderContextTable":{"__isSmartRef__":true,"id":8322},"eventHandler":{"__isSmartRef__":true,"id":8323},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8324},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":4648}],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"attributeConnections","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8284},"text":{"__isSmartRef__":true,"id":8301},"owner":{"__isSmartRef__":true,"id":8282},"_Position":{"__isSmartRef__":true,"id":8325},"priorExtent":{"__isSmartRef__":true,"id":8326},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8327},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8284":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8285},"derivationIds":[null],"id":"92C64C01-91D4-47EB-9BB3-C956DA661723","renderContextTable":{"__isSmartRef__":true,"id":8291},"eventHandler":{"__isSmartRef__":true,"id":8292},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8293},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8294},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8285":{"_Position":{"__isSmartRef__":true,"id":8286},"renderContextTable":{"__isSmartRef__":true,"id":8287},"_Extent":{"__isSmartRef__":true,"id":8288},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8289},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8290},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8286":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8287":{"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"},"8288":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8289":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8290":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8291":{"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"},"8292":{"morph":{"__isSmartRef__":true,"id":8284},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8293":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8294":{"toggle":{"__isSmartRef__":true,"id":8295},"toggleExpansion":{"__isSmartRef__":true,"id":8298}},"8295":{"varMapping":{"__isSmartRef__":true,"id":8296},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8296":{"this":{"__isSmartRef__":true,"id":8284}},"8297":{},"8298":{"varMapping":{"__isSmartRef__":true,"id":8299},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8299":{"this":{"__isSmartRef__":true,"id":8284}},"8300":{},"8301":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8302},"derivationIds":[null],"id":"28C42556-7861-4E6B-84E1-D06BBEFD1412","renderContextTable":{"__isSmartRef__":true,"id":8306},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8307},{"__isSmartRef__":true,"id":8309}],"eventHandler":{"__isSmartRef__":true,"id":8311},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8312},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8313},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8302":{"_Position":{"__isSmartRef__":true,"id":8303},"renderContextTable":{"__isSmartRef__":true,"id":8304},"_Extent":{"__isSmartRef__":true,"id":8305},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8303":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8304":{"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"},"8305":{"x":202.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8306":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8307":{"style":{"__isSmartRef__":true,"id":8308},"chunkOwner":{"__isSmartRef__":true,"id":8301},"storedString":"attributeConnections","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8308":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8309":{"style":{"__isSmartRef__":true,"id":8310},"chunkOwner":{"__isSmartRef__":true,"id":8301},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8310":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8311":{"morph":{"__isSmartRef__":true,"id":8301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8312":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8313":{"layoutText":{"__isSmartRef__":true,"id":8314}},"8314":{"varMapping":{"__isSmartRef__":true,"id":8315},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8315":{"this":{"__isSmartRef__":true,"id":8301}},"8316":{},"8317":{"_Position":{"__isSmartRef__":true,"id":8318},"renderContextTable":{"__isSmartRef__":true,"id":8319},"_Extent":{"__isSmartRef__":true,"id":8320},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8321},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8318":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8319":{"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"},"8320":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8321":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8322":{"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"},"8323":{"morph":{"__isSmartRef__":true,"id":8283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8324":{"resizeWidth":true},"8325":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8326":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8327":{"updateExpanderColor":{"__isSmartRef__":true,"id":8328},"onMouseDown":{"__isSmartRef__":true,"id":8331},"isRoot":{"__isSmartRef__":true,"id":8338},"displayValue":{"__isSmartRef__":true,"id":8341},"update":{"__isSmartRef__":true,"id":8344}},"8328":{"varMapping":{"__isSmartRef__":true,"id":8329},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8329":{"this":{"__isSmartRef__":true,"id":8283}},"8330":{},"8331":{"varMapping":{"__isSmartRef__":true,"id":8332},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8332":{"this":{"__isSmartRef__":true,"id":8283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8333}},"8333":{"$super":{"__isSmartRef__":true,"id":8334}},"8334":{"varMapping":{"__isSmartRef__":true,"id":8335},"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":8336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8335":{"obj":{"__isSmartRef__":true,"id":8283},"name":"onMouseDown"},"8336":{},"8337":{},"8338":{"varMapping":{"__isSmartRef__":true,"id":8339},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8339":{"this":{"__isSmartRef__":true,"id":8283}},"8340":{},"8341":{"varMapping":{"__isSmartRef__":true,"id":8342},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8342":{"this":{"__isSmartRef__":true,"id":8283}},"8343":{},"8344":{"varMapping":{"__isSmartRef__":true,"id":8345},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8345":{"this":{"__isSmartRef__":true,"id":8283}},"8346":{},"8347":{"_Position":{"__isSmartRef__":true,"id":8348},"renderContextTable":{"__isSmartRef__":true,"id":8349},"_Extent":{"__isSmartRef__":true,"id":8350},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8351},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8348":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8349":{"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"},"8350":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8351":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8352":{"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"},"8353":{"morph":{"__isSmartRef__":true,"id":8282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8354":{"layouter":{"__isSmartRef__":true,"id":8355},"resizeWidth":true},"8355":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8282},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8356":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8357":{"x":0,"y":920,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8358":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8359}},"8359":{"varMapping":{"__isSmartRef__":true,"id":8360},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8360":{"this":{"__isSmartRef__":true,"id":8282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8361}},"8361":{"$super":{"__isSmartRef__":true,"id":8362}},"8362":{"varMapping":{"__isSmartRef__":true,"id":8363},"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":8364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8363":{"obj":{"__isSmartRef__":true,"id":8282},"name":"getLayoutableSubmorphs"},"8364":{},"8365":{},"8366":{"submorphs":[{"__isSmartRef__":true,"id":8367}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8431},"derivationIds":[null],"id":"A98728B3-BB37-425F-B32A-B912893E2737","renderContextTable":{"__isSmartRef__":true,"id":8436},"eventHandler":{"__isSmartRef__":true,"id":8437},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8438},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8440},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8441},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8442},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8367":{"submorphs":[{"__isSmartRef__":true,"id":8368},{"__isSmartRef__":true,"id":8385}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8401},"derivationIds":[null],"id":"15F6718C-2854-43CE-83F0-1B94A3758EFC","renderContextTable":{"__isSmartRef__":true,"id":8406},"eventHandler":{"__isSmartRef__":true,"id":8407},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8408},"grabbingEnabled":false,"draggingEnabled":false,"data":"// changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefined \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","361","362","363","364","365","366","367","368","369","370","371","372","373","374","375","376","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","398","399","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","545","546","547","548","549","550","551","552","553","554","555","556","557","558","559","560","561","562","563","564","565","566","567","568","569","570","571","572","573","574","575","576","577","578","579","580","581","582","583","584","585","586","587","588","589","590","591","592","593","594","595","596","597","598","599","600","601","602","603","604","605","606","607","608","609","610","611","612","613","614","615","616","617","618","619","620","621","622","623","624","625","626","627","628","629","630","631","632","633","634","635","636","637","638","639","640","641","642","643","644","645","646","647","648","649","650","651","652","653","654","655","656","657","658","659","660","661","662","663","664","665","666","667","668","669","670","671","672","673","674","675","676","677","678","679","680","681","682","683","684","685","686","687","688","689","690","691","692","693","694","695","696","697","698","699","700","701","702","703","704","705","706","707","708","709","710","711","712","713","714","715","716","717","718","719","720","721","722","723","724","725","726","727","728","729","730","731","732","733","734","735","736","737","738","739","740","741","742","743","744","745","746","747","748","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","869","870","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","910","911","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","955","956","957","958","959","960","961","962","963","964","965","966","967","968","969","970","971","972","973","974","975","976","977","978","979","980","981","982","983","984","985","986","987","988","989","990","991","992","993","994","995","996","997","998","999","1000","1001","1002","1003","1004","1005","1006","1007","1008","1009","1010","1011","1012","1013","1014","1015","1016","1017","1018","1019","1020","1021","1022","1023","1024","1025","1026","1027","1028","1029","1030","1031","1032","1033","1034","1035","1036","1037","1038","1039","1040","1041","1042","1043","1044","1045","1046","1047","1048","1049","1050","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1079","1080","1081","1082","1083","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1108","1109","1110","1111","1112","1113","1114","1115","1116","1117","1118","1119","1120","1121","1122","1123","1124","1125","1126","1127","1128","1129","1130","1131","1132","1133","1134","1135","1136","1137","1138","1139","1140","1141","1142","1143","1144","1145","1146","1147","1148","1149","1150","1151","1152","1153","1154","1155","1156","1157","1158","1159","1160","1161","1162","1163","1164","1165","1166","1167","1168","1169","1170","1171","1172","1173","1174","1175","1176","1177","1178","1179","1180","1181","1182","1183","1184","1185","1186","1187","1188","1189","1190","1191","1192","1193","1194","1195","1196","1197","1198","1199","1200","1201","1202","1203","1204","1205","1206","1207","1208","1209","1210","1211","1212","1213","1214","1215","1216","1217","1218","1219","1220","1221","1222","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1278","1279","1280","1281","1282","1283","1284","1285","1286","1287","1288","1289","1290","1291","1292","1293","1294","1295","1296","1297","1298","1299","1300","1301","1302","1303","1304","1305","1306","1307","1308","1309","1310","1311","1312","1313","1314","1315","1316","1317","1318","1319","1320","1321","1322","1323","1324","1325","1326","1327","1328","1329","1330","1331","1332","1333","1334","1335","1336","1337","1338","1339","1340","1341","1342","1343","1344","1345","1346","1347","1348","1349","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1399","1400","1401","1402","1403","1404","1405","1406","1407","1408","1409","1410","1411","1412","1413","1414","1415","1416","1417","1418","1419","1420","1421","1422","1423","1424","1425","1426","1427","1428","1429","1430","1431","1432","1433","1434","1435","1436","1437","1438","1439","1440","1441","1442","1443","1444","1445","1446","1447","1448","1449","1450","1451","1452","1453","1454","1455","1456","1457","1458","1459","1460","1461","1462","1463","1464","1465","1466","1467","1468","1469","1470","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1544","1545","1546","1547","1548","1549","1550","1551","1552","1553","1554","1555","1556","1557","1558","1559","1560","1561","1562","1563","1564","1565","1566","1567","1568","1569","1570","1571","1572","1573","1574","1575","1576","1577","1578","1579","1580","1581","1582","1583","1584","1585","1586","1587","1588","1589","1590","1591","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1623","1624","1625","1626","1627","1628","1629","1630","1631","1632","1633","1634","1635","1636","1637","1638","1639","1640","1641","1642","1643","1644","1645","1646","1647","1648","1649","1650","1651","1652","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1834","1835","1836","1837","1838","1839","1840","1841","1842","1843","1844","1845","1846","1847","1848","1849","1850","1851","1852","1853","1854","1855","1856","1857","1858","1859","1860","1861","1862","1863","1864","1865","1866","1867","1868","1869","1870","1871","1872","1873","1874","1875","1876","1877","1878","1879","1880","1881","1882","1883","1884","1885","1886","1887","1888","1889","1890","1891","1892","1893","1894","1895","1896","1897","1898","1899","1900","1901","1902","1903","1904","1905","1906","1907","1908","1909","1910","1911","1912","1913","1914","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1927","1928","1929","1930","1931","1932","1933","1934","1935","1936","1937","1938","1939","1940","1941","1942","1943","1944","1945","1946","1947","1948","1949","1950","1951","1952","1953","1954","1955","1956","1957","1958","1959","1960","1961","1962","1963","1964","1965","1966","1967","1968","1969","1970","1971","1972","1973","1974","1975","1976","1977","1978","1979","1980","1981","1982","1983","1984","1985","1986","1987","1988","1989","1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050","2051","2052","2053","2054","2055","2056","2057","2058","2059","2060","2061","2062","2063","2064","2065","2066","2067","2068","2069","2070","2071","2072","2073","2074","2075","2076","2077","2078","2079","2080","2081","2082","2083","2084","2085","2086","2087","2088","2089","2090","2091","2092","2093","2094","2095","2096","2097","2098","2099","2100","2101","2102","2103","2104","2105","2106","2107","2108","2109","2110","2111","2112","2113","2114","2115","2116","2117","2118","2119","2120","2121","2122","2123","2124","2125","2126","2127","2128","2129","2130","2131","2132","2133","2134","2135","2136","2137","2138","2139","2140","2141","2142","2143","2144","2145","2146","2147","2148","2149","2150","2151","2152","2153","2154","2155","2156","2157","2158","2159","2160","2161","2162","2163","2164","2165","2166","2167","2168","2169","2170","2171","2172","2173","2174","2175","2176","2177","2178","2179","2180","2181","2182","2183","2184","2185","2186","2187","2188","2189","2190","2191","2192","2193","2194","2195","2196","2197","2198","2199","2200","2201","2202","2203","2204","2205","2206","2207","2208","2209","2210","2211","2212","2213","2214","2215","2216","2217","2218","2219","2220","2221","2222","2223","2224","2225","2226","2227","2228","2229","2230","2231","2232","2233","2234","2235","2236","2237","2238","2239","2240","2241","2242","2243","2244","2245","2246","2247","2248","2249","2250","2251","2252","2253","2254","2255","2256","2257","2258","2259","2260","2261","2262","2263","2264","2265","2266","2267","2268","2269","2270","2271","2272","2273","2274","2275","2276","2277","2278","2279","2280","2281","2282","2283","2284","2285","2286","2287","2288","2289","2290","2291","2292","2293","2294","2295","2296","2297","2298","2299","2300","2301","2302","2303","2304","2305","2306","2307","2308","2309","2310","2311","2312","2313","2314","2315","2316","2317","2318","2319","2320","2321","2322","2323","2324","2325","2326","2327","2328","2329","2330","2331","2332","2333","2334","2335","2336","2337","2338","2339","2340","2341","2342","2343","2344","2345","2346","2347","2348","2349","2350","2351","2352","2353","2354","2355","2356","2357","2358","2359","2360","2361","2362","2363","2364","2365","2366","2367","2368","2369","2370","2371","2372","2373","2374","2375","2376","2377","2378","2379","2380","2381","2382","2383","2384","2385","2386","2387","2388","2389","2390","2391","2392","2393","2394","2395","2396","2397","2398","2399","2400","2401","2402","2403","2404","2405","2406","2407","2408","2409","2410","2411","2412","2413","2414","2415","2416","2417","2418","2419","2420","2421","2422","2423","2424","2425","2426","2427","2428","2429","2430","2431","2432","2433","2434","2435","2436","2437","2438","2439","2440","2441","2442","2443","2444","2445","2446","2447","2448","2449","2450","2451","2452","2453","2454","2455","2456","2457","2458","2459","2460","2461","2462","2463","2464","2465","2466","2467","2468","2469","2470","2471","2472","2473","2474","2475","2476","2477","2478","2479","2480","2481","2482","2483","2484","2485","2486","2487","2488","2489","2490","2491","2492","2493","2494","2495","2496","2497","2498","2499","2500","2501","2502","2503","2504","2505","2506","2507","2508","2509","2510","2511","2512","2513","2514","2515","2516","2517","2518","2519","2520","2521","2522","2523","2524","2525","2526","2527","2528","2529","2530","2531","2532","2533","2534","2535","2536","2537","2538","2539","2540","2541","2542","2543","2544","2545","2546","2547","2548","2549","2550","2551","2552","2553","2554","2555","2556","2557","2558","2559","2560","2561","2562","2563","2564","2565","2566","2567","2568","2569","2570","2571","2572","2573","2574","2575","2576","2577","2578","2579","2580","2581","2582","2583","2584","2585","2586","2587","2588","2589","2590","2591","2592","2593","2594","2595","2596","2597","2598","2599","2600","2601","2602","2603","2604","2605","2606","2607","2608","2609","2610","2611","2612","2613","2614","2615","2616","2617","2618","2619","2620","2621","2622","2623","2624","2625","2626","2627","2628","2629","2630","2631","2632","2633","2634","2635","2636","2637","2638","2639","2640","2641","2642","2643","2644","2645","2646","2647","2648","2649","2650","2651","2652","2653","2654","2655","2656","2657","2658","2659","2660","2661","2662","2663","2664","2665","2666","2667","2668","2669","2670","2671","2672","2673","2674","2675","2676","2677","2678","2679","2680","2681","2682","2683","2684","2685","2686","2687","2688","2689","2690","2691","2692","2693","2694","2695","2696","2697","2698","2699","2700","2701","2702","2703","2704","2705","2706","2707","2708","2709","2710","2711","2712","2713","2714","2715","2716","2717","2718","2719","2720","2721","2722","2723","2724","2725","2726","2727","2728","2729","2730","2731","2732","2733","2734","2735","2736","2737","2738","2739","2740","2741","2742","2743","2744","2745","2746","2747","2748","2749","2750","2751","2752","2753","2754","2755","2756","2757","2758","2759","2760","2761","2762","2763","2764","2765","2766","2767","2768","2769","2770","2771","2772","2773","2774","2775","2776","2777","2778","2779","2780","2781","2782","2783","2784","2785","2786","2787","2788","2789","2790","2791","2792","2793","2794","2795","2796","2797","2798","2799","2800","2801","2802","2803","2804","2805","2806","2807","2808","2809","2810","2811","2812","2813","2814","2815","2816","2817","2818","2819","2820","2821","2822","2823","2824","2825","2826","2827","2828","2829","2830","2831","2832","2833","2834","2835","2836","2837","2838","2839","2840","2841","2842","2843","2844","2845","2846","2847","2848","2849","2850","2851","2852","2853","2854","2855","2856","2857","2858","2859","2860","2861","2862","2863","2864","2865","2866","2867","2868","2869","2870","2871","2872","2873","2874","2875","2876","2877","2878","2879","2880","2881","2882","2883","2884","2885","2886","2887","2888","2889","2890","2891","2892","2893","2894","2895","2896","2897","2898","2899","2900","2901","2902","2903","2904","2905","2906","2907","2908","2909","2910","2911","2912","2913","2914","2915","2916","2917","2918","2919","2920","2921","2922","2923","2924","2925","2926","2927","2928","2929","2930","2931","2932","2933","2934","2935","2936","2937","2938","2939","2940","2941","2942","2943","2944","2945","2946","2947","2948","2949","2950","2951","2952","2953","2954","2955","2956","2957","2958","2959","2960","2961","2962","2963","2964","2965","2966","2967","2968","2969","2970","2971","2972","2973","2974","2975","2976","2977","2978","2979","2980","2981","2982","2983","2984","2985","2986","2987","2988","2989","2990","2991","2992","2993","2994","2995","2996","2997","2998","2999","3000","3001","3002","3003","3004","3005","3006","3007","3008","3009","3010","3011","3012","3013","3014","3015","3016","3017","3018","3019","3020","3021","3022","3023","3024","3025","3026","3027","3028","3029","3030","3031","3032","3033","3034","3035","3036","3037","3038","3039","3040","3041","3042","3043","3044","3045"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"cachedTextString","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8368},"text":{"__isSmartRef__":true,"id":8385},"owner":{"__isSmartRef__":true,"id":8366},"_Position":{"__isSmartRef__":true,"id":8409},"priorExtent":{"__isSmartRef__":true,"id":8410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8411},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8368":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8369},"derivationIds":[null],"id":"DB5AADF2-7981-4BBB-9C1E-EF1FBE1BB522","renderContextTable":{"__isSmartRef__":true,"id":8375},"eventHandler":{"__isSmartRef__":true,"id":8376},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8377},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8378},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8369":{"_Position":{"__isSmartRef__":true,"id":8370},"renderContextTable":{"__isSmartRef__":true,"id":8371},"_Extent":{"__isSmartRef__":true,"id":8372},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8373},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8374},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8370":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8371":{"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"},"8372":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8373":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8374":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8375":{"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"},"8376":{"morph":{"__isSmartRef__":true,"id":8368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8377":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8378":{"toggle":{"__isSmartRef__":true,"id":8379},"toggleExpansion":{"__isSmartRef__":true,"id":8382}},"8379":{"varMapping":{"__isSmartRef__":true,"id":8380},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8380":{"this":{"__isSmartRef__":true,"id":8368}},"8381":{},"8382":{"varMapping":{"__isSmartRef__":true,"id":8383},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8383":{"this":{"__isSmartRef__":true,"id":8368}},"8384":{},"8385":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8386},"derivationIds":[null],"id":"CE647F45-D161-499F-9CFD-0CAC7A66286E","renderContextTable":{"__isSmartRef__":true,"id":8390},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8391},{"__isSmartRef__":true,"id":8393}],"eventHandler":{"__isSmartRef__":true,"id":8395},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8396},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8397},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8386":{"_Position":{"__isSmartRef__":true,"id":8387},"renderContextTable":{"__isSmartRef__":true,"id":8388},"_Extent":{"__isSmartRef__":true,"id":8389},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8387":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8388":{"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"},"8389":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8390":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8391":{"style":{"__isSmartRef__":true,"id":8392},"chunkOwner":{"__isSmartRef__":true,"id":8385},"storedString":"cachedTextString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8392":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8393":{"style":{"__isSmartRef__":true,"id":8394},"chunkOwner":{"__isSmartRef__":true,"id":8385},"storedString":": // changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by ...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8394":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8395":{"morph":{"__isSmartRef__":true,"id":8385},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8396":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8397":{"layoutText":{"__isSmartRef__":true,"id":8398}},"8398":{"varMapping":{"__isSmartRef__":true,"id":8399},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8399":{"this":{"__isSmartRef__":true,"id":8385}},"8400":{},"8401":{"_Position":{"__isSmartRef__":true,"id":8402},"renderContextTable":{"__isSmartRef__":true,"id":8403},"_Extent":{"__isSmartRef__":true,"id":8404},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8405},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8402":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8403":{"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"},"8404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8405":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8406":{"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"},"8407":{"morph":{"__isSmartRef__":true,"id":8367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8408":{"resizeWidth":true},"8409":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8410":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8411":{"updateExpanderColor":{"__isSmartRef__":true,"id":8412},"onMouseDown":{"__isSmartRef__":true,"id":8415},"isRoot":{"__isSmartRef__":true,"id":8422},"displayValue":{"__isSmartRef__":true,"id":8425},"update":{"__isSmartRef__":true,"id":8428}},"8412":{"varMapping":{"__isSmartRef__":true,"id":8413},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8413":{"this":{"__isSmartRef__":true,"id":8367}},"8414":{},"8415":{"varMapping":{"__isSmartRef__":true,"id":8416},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8416":{"this":{"__isSmartRef__":true,"id":8367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8417}},"8417":{"$super":{"__isSmartRef__":true,"id":8418}},"8418":{"varMapping":{"__isSmartRef__":true,"id":8419},"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":8420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8419":{"obj":{"__isSmartRef__":true,"id":8367},"name":"onMouseDown"},"8420":{},"8421":{},"8422":{"varMapping":{"__isSmartRef__":true,"id":8423},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8423":{"this":{"__isSmartRef__":true,"id":8367}},"8424":{},"8425":{"varMapping":{"__isSmartRef__":true,"id":8426},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8426":{"this":{"__isSmartRef__":true,"id":8367}},"8427":{},"8428":{"varMapping":{"__isSmartRef__":true,"id":8429},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8429":{"this":{"__isSmartRef__":true,"id":8367}},"8430":{},"8431":{"_Position":{"__isSmartRef__":true,"id":8432},"renderContextTable":{"__isSmartRef__":true,"id":8433},"_Extent":{"__isSmartRef__":true,"id":8434},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8435},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8432":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8433":{"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"},"8434":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8435":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8436":{"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"},"8437":{"morph":{"__isSmartRef__":true,"id":8366},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8438":{"layouter":{"__isSmartRef__":true,"id":8439},"resizeWidth":true},"8439":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8366},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8440":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8441":{"x":0,"y":900,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8442":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8443}},"8443":{"varMapping":{"__isSmartRef__":true,"id":8444},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8444":{"this":{"__isSmartRef__":true,"id":8366},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8445}},"8445":{"$super":{"__isSmartRef__":true,"id":8446}},"8446":{"varMapping":{"__isSmartRef__":true,"id":8447},"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":8448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8447":{"obj":{"__isSmartRef__":true,"id":8366},"name":"getLayoutableSubmorphs"},"8448":{},"8449":{},"8450":{"submorphs":[{"__isSmartRef__":true,"id":8451}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8515},"derivationIds":[null],"id":"4515431D-C4A0-469C-93EF-9F8D73789572","renderContextTable":{"__isSmartRef__":true,"id":8520},"eventHandler":{"__isSmartRef__":true,"id":8521},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8522},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8524},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8525},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8526},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8451":{"submorphs":[{"__isSmartRef__":true,"id":8452},{"__isSmartRef__":true,"id":8469}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8485},"derivationIds":[null],"id":"1B267E1E-26B4-41D3-B6D2-F310E76B865C","renderContextTable":{"__isSmartRef__":true,"id":8490},"eventHandler":{"__isSmartRef__":true,"id":8491},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8492},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"charsReplaced","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8452},"text":{"__isSmartRef__":true,"id":8469},"owner":{"__isSmartRef__":true,"id":8450},"_Position":{"__isSmartRef__":true,"id":8493},"priorExtent":{"__isSmartRef__":true,"id":8494},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8495},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8452":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8453},"derivationIds":[null],"id":"4C3C7D6A-BD7D-4797-AA34-01D6213DD606","renderContextTable":{"__isSmartRef__":true,"id":8459},"eventHandler":{"__isSmartRef__":true,"id":8460},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8461},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8462},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8453":{"_Position":{"__isSmartRef__":true,"id":8454},"renderContextTable":{"__isSmartRef__":true,"id":8455},"_Extent":{"__isSmartRef__":true,"id":8456},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8457},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8458},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8454":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8455":{"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"},"8456":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8457":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8458":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8459":{"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"},"8460":{"morph":{"__isSmartRef__":true,"id":8452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8461":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8462":{"toggle":{"__isSmartRef__":true,"id":8463},"toggleExpansion":{"__isSmartRef__":true,"id":8466}},"8463":{"varMapping":{"__isSmartRef__":true,"id":8464},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8464":{"this":{"__isSmartRef__":true,"id":8452}},"8465":{},"8466":{"varMapping":{"__isSmartRef__":true,"id":8467},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8467":{"this":{"__isSmartRef__":true,"id":8452}},"8468":{},"8469":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8470},"derivationIds":[null],"id":"0B055EF8-F5E5-4713-AD8C-B7425F4E385A","renderContextTable":{"__isSmartRef__":true,"id":8474},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8475},{"__isSmartRef__":true,"id":8477}],"eventHandler":{"__isSmartRef__":true,"id":8479},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8480},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8481},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8470":{"_Position":{"__isSmartRef__":true,"id":8471},"renderContextTable":{"__isSmartRef__":true,"id":8472},"_Extent":{"__isSmartRef__":true,"id":8473},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8471":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8472":{"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"},"8473":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8474":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8475":{"style":{"__isSmartRef__":true,"id":8476},"chunkOwner":{"__isSmartRef__":true,"id":8469},"storedString":"charsReplaced","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8476":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8477":{"style":{"__isSmartRef__":true,"id":8478},"chunkOwner":{"__isSmartRef__":true,"id":8469},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8478":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8479":{"morph":{"__isSmartRef__":true,"id":8469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8481":{"layoutText":{"__isSmartRef__":true,"id":8482}},"8482":{"varMapping":{"__isSmartRef__":true,"id":8483},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8483":{"this":{"__isSmartRef__":true,"id":8469}},"8484":{},"8485":{"_Position":{"__isSmartRef__":true,"id":8486},"renderContextTable":{"__isSmartRef__":true,"id":8487},"_Extent":{"__isSmartRef__":true,"id":8488},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8489},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8486":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8487":{"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"},"8488":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8489":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8490":{"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"},"8491":{"morph":{"__isSmartRef__":true,"id":8451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8492":{"resizeWidth":true},"8493":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8494":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8495":{"updateExpanderColor":{"__isSmartRef__":true,"id":8496},"onMouseDown":{"__isSmartRef__":true,"id":8499},"isRoot":{"__isSmartRef__":true,"id":8506},"displayValue":{"__isSmartRef__":true,"id":8509},"update":{"__isSmartRef__":true,"id":8512}},"8496":{"varMapping":{"__isSmartRef__":true,"id":8497},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8497":{"this":{"__isSmartRef__":true,"id":8451}},"8498":{},"8499":{"varMapping":{"__isSmartRef__":true,"id":8500},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8500":{"this":{"__isSmartRef__":true,"id":8451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8501}},"8501":{"$super":{"__isSmartRef__":true,"id":8502}},"8502":{"varMapping":{"__isSmartRef__":true,"id":8503},"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":8504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8503":{"obj":{"__isSmartRef__":true,"id":8451},"name":"onMouseDown"},"8504":{},"8505":{},"8506":{"varMapping":{"__isSmartRef__":true,"id":8507},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8507":{"this":{"__isSmartRef__":true,"id":8451}},"8508":{},"8509":{"varMapping":{"__isSmartRef__":true,"id":8510},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8510":{"this":{"__isSmartRef__":true,"id":8451}},"8511":{},"8512":{"varMapping":{"__isSmartRef__":true,"id":8513},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8513":{"this":{"__isSmartRef__":true,"id":8451}},"8514":{},"8515":{"_Position":{"__isSmartRef__":true,"id":8516},"renderContextTable":{"__isSmartRef__":true,"id":8517},"_Extent":{"__isSmartRef__":true,"id":8518},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8519},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8516":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8517":{"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"},"8518":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8519":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8520":{"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"},"8521":{"morph":{"__isSmartRef__":true,"id":8450},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8522":{"layouter":{"__isSmartRef__":true,"id":8523},"resizeWidth":true},"8523":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8450},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8524":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8525":{"x":0,"y":880,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8526":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8527}},"8527":{"varMapping":{"__isSmartRef__":true,"id":8528},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8528":{"this":{"__isSmartRef__":true,"id":8450},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8529}},"8529":{"$super":{"__isSmartRef__":true,"id":8530}},"8530":{"varMapping":{"__isSmartRef__":true,"id":8531},"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":8532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8531":{"obj":{"__isSmartRef__":true,"id":8450},"name":"getLayoutableSubmorphs"},"8532":{},"8533":{},"8534":{"submorphs":[{"__isSmartRef__":true,"id":8535}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8599},"derivationIds":[null],"id":"AF854F90-38A0-42B9-9819-610E0BBED6D3","renderContextTable":{"__isSmartRef__":true,"id":8604},"eventHandler":{"__isSmartRef__":true,"id":8605},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8606},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8608},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8609},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8610},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8535":{"submorphs":[{"__isSmartRef__":true,"id":8536},{"__isSmartRef__":true,"id":8553}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8569},"derivationIds":[null],"id":"8F1BDBDA-C301-4FFF-870B-48E71B2BB140","renderContextTable":{"__isSmartRef__":true,"id":8574},"eventHandler":{"__isSmartRef__":true,"id":8575},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8576},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"charsTyped","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8536},"text":{"__isSmartRef__":true,"id":8553},"owner":{"__isSmartRef__":true,"id":8534},"_Position":{"__isSmartRef__":true,"id":8577},"priorExtent":{"__isSmartRef__":true,"id":8578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8579},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8536":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8537},"derivationIds":[null],"id":"73DC7345-7F56-43B1-AB99-2FAD24442794","renderContextTable":{"__isSmartRef__":true,"id":8543},"eventHandler":{"__isSmartRef__":true,"id":8544},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8545},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8546},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8537":{"_Position":{"__isSmartRef__":true,"id":8538},"renderContextTable":{"__isSmartRef__":true,"id":8539},"_Extent":{"__isSmartRef__":true,"id":8540},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8541},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8542},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8538":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8539":{"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"},"8540":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8541":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8542":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8543":{"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"},"8544":{"morph":{"__isSmartRef__":true,"id":8536},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8545":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8546":{"toggle":{"__isSmartRef__":true,"id":8547},"toggleExpansion":{"__isSmartRef__":true,"id":8550}},"8547":{"varMapping":{"__isSmartRef__":true,"id":8548},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8548":{"this":{"__isSmartRef__":true,"id":8536}},"8549":{},"8550":{"varMapping":{"__isSmartRef__":true,"id":8551},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8551":{"this":{"__isSmartRef__":true,"id":8536}},"8552":{},"8553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8554},"derivationIds":[null],"id":"9B88225A-8CC1-4C30-99E1-3DF4FF6A3009","renderContextTable":{"__isSmartRef__":true,"id":8558},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8559},{"__isSmartRef__":true,"id":8561}],"eventHandler":{"__isSmartRef__":true,"id":8563},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8564},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8565},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8554":{"_Position":{"__isSmartRef__":true,"id":8555},"renderContextTable":{"__isSmartRef__":true,"id":8556},"_Extent":{"__isSmartRef__":true,"id":8557},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8555":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8556":{"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"},"8557":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8558":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8559":{"style":{"__isSmartRef__":true,"id":8560},"chunkOwner":{"__isSmartRef__":true,"id":8553},"storedString":"charsTyped","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8560":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8561":{"style":{"__isSmartRef__":true,"id":8562},"chunkOwner":{"__isSmartRef__":true,"id":8553},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8562":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8563":{"morph":{"__isSmartRef__":true,"id":8553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8564":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8565":{"layoutText":{"__isSmartRef__":true,"id":8566}},"8566":{"varMapping":{"__isSmartRef__":true,"id":8567},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8567":{"this":{"__isSmartRef__":true,"id":8553}},"8568":{},"8569":{"_Position":{"__isSmartRef__":true,"id":8570},"renderContextTable":{"__isSmartRef__":true,"id":8571},"_Extent":{"__isSmartRef__":true,"id":8572},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8573},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8570":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8571":{"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"},"8572":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8573":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8574":{"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"},"8575":{"morph":{"__isSmartRef__":true,"id":8535},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8576":{"resizeWidth":true},"8577":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8578":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8579":{"updateExpanderColor":{"__isSmartRef__":true,"id":8580},"onMouseDown":{"__isSmartRef__":true,"id":8583},"isRoot":{"__isSmartRef__":true,"id":8590},"displayValue":{"__isSmartRef__":true,"id":8593},"update":{"__isSmartRef__":true,"id":8596}},"8580":{"varMapping":{"__isSmartRef__":true,"id":8581},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8581":{"this":{"__isSmartRef__":true,"id":8535}},"8582":{},"8583":{"varMapping":{"__isSmartRef__":true,"id":8584},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8584":{"this":{"__isSmartRef__":true,"id":8535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8585}},"8585":{"$super":{"__isSmartRef__":true,"id":8586}},"8586":{"varMapping":{"__isSmartRef__":true,"id":8587},"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":8588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8587":{"obj":{"__isSmartRef__":true,"id":8535},"name":"onMouseDown"},"8588":{},"8589":{},"8590":{"varMapping":{"__isSmartRef__":true,"id":8591},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8591":{"this":{"__isSmartRef__":true,"id":8535}},"8592":{},"8593":{"varMapping":{"__isSmartRef__":true,"id":8594},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8594":{"this":{"__isSmartRef__":true,"id":8535}},"8595":{},"8596":{"varMapping":{"__isSmartRef__":true,"id":8597},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8597":{"this":{"__isSmartRef__":true,"id":8535}},"8598":{},"8599":{"_Position":{"__isSmartRef__":true,"id":8600},"renderContextTable":{"__isSmartRef__":true,"id":8601},"_Extent":{"__isSmartRef__":true,"id":8602},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8603},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8600":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8601":{"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"},"8602":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8603":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8604":{"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"},"8605":{"morph":{"__isSmartRef__":true,"id":8534},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8606":{"layouter":{"__isSmartRef__":true,"id":8607},"resizeWidth":true},"8607":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8534},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8608":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8609":{"x":0,"y":860,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8610":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8611}},"8611":{"varMapping":{"__isSmartRef__":true,"id":8612},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8612":{"this":{"__isSmartRef__":true,"id":8534},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8613}},"8613":{"$super":{"__isSmartRef__":true,"id":8614}},"8614":{"varMapping":{"__isSmartRef__":true,"id":8615},"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":8616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8615":{"obj":{"__isSmartRef__":true,"id":8534},"name":"getLayoutableSubmorphs"},"8616":{},"8617":{},"8618":{"submorphs":[{"__isSmartRef__":true,"id":8619}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8683},"derivationIds":[null],"id":"20B30511-00CB-4345-8E3B-E9C9CFCC40E9","renderContextTable":{"__isSmartRef__":true,"id":8688},"eventHandler":{"__isSmartRef__":true,"id":8689},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8690},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8692},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8693},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8694},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8619":{"submorphs":[{"__isSmartRef__":true,"id":8620},{"__isSmartRef__":true,"id":8637}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8653},"derivationIds":[null],"id":"1C22FA2B-A3ED-42F2-BFC7-C0198F4CD9CE","renderContextTable":{"__isSmartRef__":true,"id":8658},"eventHandler":{"__isSmartRef__":true,"id":8659},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8660},"grabbingEnabled":false,"draggingEnabled":false,"data":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","C1E8D5BB-56F9-47B3-A520-BEEFEF791823","402B0881-8841-4E03-A656-F81F20E145B9","16EF1138-83B5-4802-A98B-B5978660FD0A","89B19391-7A9C-4CA4-8CA2-B5C67EF7EC7B","CFBC87C9-19CF-4C25-9AB0-E755EDCCAE06","ACD9BFD0-8CC8-4BF3-8DFA-806F31C93162","F0C50F59-F4FA-46D9-A961-8AC53944F823","71B63646-3AEB-40F0-98C9-48DBDB3FCD0B","CD6AEC19-7323-4638-8556-DC8DFE6F1C23","3B0896BD-7BAE-4571-8CED-029CB84D52C5","2E113F7A-9B12-48AD-817A-E736C870CC96","2F1195C1-4023-4427-9409-38DB45EB641D","122F8208-076F-4105-885B-C46C3514D0DD","B4E6E104-6D43-456F-B70F-E05B5924AE8B","87FB767C-9EFC-4BEE-A9F3-C8DF345AC9E1","91CCB25A-6E0E-470E-90D6-D86609B914C7","ED1735F6-A6E8-4E91-AAC3-8E0E91308697","0E8200DE-640D-4901-9D9A-AA9345A648E7","5684FED7-0A9F-44D9-AE80-6DD364871FE4"],"propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"derivationIds","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8620},"text":{"__isSmartRef__":true,"id":8637},"owner":{"__isSmartRef__":true,"id":8618},"_Position":{"__isSmartRef__":true,"id":8661},"priorExtent":{"__isSmartRef__":true,"id":8662},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8663},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8620":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8621},"derivationIds":[null],"id":"6734053A-F0A0-45B4-9A0F-02E951D94809","renderContextTable":{"__isSmartRef__":true,"id":8627},"eventHandler":{"__isSmartRef__":true,"id":8628},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8629},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8630},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8621":{"_Position":{"__isSmartRef__":true,"id":8622},"renderContextTable":{"__isSmartRef__":true,"id":8623},"_Extent":{"__isSmartRef__":true,"id":8624},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8625},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8626},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8622":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8623":{"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"},"8624":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8625":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8626":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8627":{"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"},"8628":{"morph":{"__isSmartRef__":true,"id":8620},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8629":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8630":{"toggle":{"__isSmartRef__":true,"id":8631},"toggleExpansion":{"__isSmartRef__":true,"id":8634}},"8631":{"varMapping":{"__isSmartRef__":true,"id":8632},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8632":{"this":{"__isSmartRef__":true,"id":8620}},"8633":{},"8634":{"varMapping":{"__isSmartRef__":true,"id":8635},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8635":{"this":{"__isSmartRef__":true,"id":8620}},"8636":{},"8637":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8638},"derivationIds":[null],"id":"422EEABE-6F93-4849-B95F-5B583CBEC747","renderContextTable":{"__isSmartRef__":true,"id":8642},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8643},{"__isSmartRef__":true,"id":8645}],"eventHandler":{"__isSmartRef__":true,"id":8647},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8648},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8649},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8638":{"_Position":{"__isSmartRef__":true,"id":8639},"renderContextTable":{"__isSmartRef__":true,"id":8640},"_Extent":{"__isSmartRef__":true,"id":8641},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8639":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8640":{"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"},"8641":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8642":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8643":{"style":{"__isSmartRef__":true,"id":8644},"chunkOwner":{"__isSmartRef__":true,"id":8637},"storedString":"derivationIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8644":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8645":{"style":{"__isSmartRef__":true,"id":8646},"chunkOwner":{"__isSmartRef__":true,"id":8637},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8646":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8647":{"morph":{"__isSmartRef__":true,"id":8637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8648":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8649":{"layoutText":{"__isSmartRef__":true,"id":8650}},"8650":{"varMapping":{"__isSmartRef__":true,"id":8651},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8651":{"this":{"__isSmartRef__":true,"id":8637}},"8652":{},"8653":{"_Position":{"__isSmartRef__":true,"id":8654},"renderContextTable":{"__isSmartRef__":true,"id":8655},"_Extent":{"__isSmartRef__":true,"id":8656},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8657},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8654":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8655":{"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"},"8656":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8657":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8658":{"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"},"8659":{"morph":{"__isSmartRef__":true,"id":8619},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8660":{"resizeWidth":true},"8661":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8662":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8663":{"updateExpanderColor":{"__isSmartRef__":true,"id":8664},"onMouseDown":{"__isSmartRef__":true,"id":8667},"isRoot":{"__isSmartRef__":true,"id":8674},"displayValue":{"__isSmartRef__":true,"id":8677},"update":{"__isSmartRef__":true,"id":8680}},"8664":{"varMapping":{"__isSmartRef__":true,"id":8665},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8665":{"this":{"__isSmartRef__":true,"id":8619}},"8666":{},"8667":{"varMapping":{"__isSmartRef__":true,"id":8668},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8668":{"this":{"__isSmartRef__":true,"id":8619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8669}},"8669":{"$super":{"__isSmartRef__":true,"id":8670}},"8670":{"varMapping":{"__isSmartRef__":true,"id":8671},"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":8672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8671":{"obj":{"__isSmartRef__":true,"id":8619},"name":"onMouseDown"},"8672":{},"8673":{},"8674":{"varMapping":{"__isSmartRef__":true,"id":8675},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8675":{"this":{"__isSmartRef__":true,"id":8619}},"8676":{},"8677":{"varMapping":{"__isSmartRef__":true,"id":8678},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8678":{"this":{"__isSmartRef__":true,"id":8619}},"8679":{},"8680":{"varMapping":{"__isSmartRef__":true,"id":8681},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8681":{"this":{"__isSmartRef__":true,"id":8619}},"8682":{},"8683":{"_Position":{"__isSmartRef__":true,"id":8684},"renderContextTable":{"__isSmartRef__":true,"id":8685},"_Extent":{"__isSmartRef__":true,"id":8686},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8687},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8684":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8685":{"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"},"8686":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8687":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8688":{"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"},"8689":{"morph":{"__isSmartRef__":true,"id":8618},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8690":{"layouter":{"__isSmartRef__":true,"id":8691},"resizeWidth":true},"8691":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8618},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8692":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8693":{"x":0,"y":840,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8694":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8695}},"8695":{"varMapping":{"__isSmartRef__":true,"id":8696},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8696":{"this":{"__isSmartRef__":true,"id":8618},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8697}},"8697":{"$super":{"__isSmartRef__":true,"id":8698}},"8698":{"varMapping":{"__isSmartRef__":true,"id":8699},"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":8700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8699":{"obj":{"__isSmartRef__":true,"id":8618},"name":"getLayoutableSubmorphs"},"8700":{},"8701":{},"8702":{"submorphs":[{"__isSmartRef__":true,"id":8703}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8767},"derivationIds":[null],"id":"C30A65F3-8343-495A-BBF3-1531397E4195","renderContextTable":{"__isSmartRef__":true,"id":8772},"eventHandler":{"__isSmartRef__":true,"id":8773},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8774},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8776},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8777},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8778},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8703":{"submorphs":[{"__isSmartRef__":true,"id":8704},{"__isSmartRef__":true,"id":8721}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8737},"derivationIds":[null],"id":"BFCD506A-3259-4270-8B32-14754A3C7403","renderContextTable":{"__isSmartRef__":true,"id":8742},"eventHandler":{"__isSmartRef__":true,"id":8743},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8744},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":6741},"propertyList":["x","y","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"distanceToDragEvent","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8704},"text":{"__isSmartRef__":true,"id":8721},"owner":{"__isSmartRef__":true,"id":8702},"_Position":{"__isSmartRef__":true,"id":8745},"priorExtent":{"__isSmartRef__":true,"id":8746},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8747},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8704":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8705},"derivationIds":[null],"id":"F8D921EB-DCD4-40A2-9A3D-CB7E07FFF8F2","renderContextTable":{"__isSmartRef__":true,"id":8711},"eventHandler":{"__isSmartRef__":true,"id":8712},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8713},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8714},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8705":{"_Position":{"__isSmartRef__":true,"id":8706},"renderContextTable":{"__isSmartRef__":true,"id":8707},"_Extent":{"__isSmartRef__":true,"id":8708},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8709},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8710},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8706":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8707":{"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"},"8708":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8709":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8710":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8711":{"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"},"8712":{"morph":{"__isSmartRef__":true,"id":8704},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8713":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8714":{"toggle":{"__isSmartRef__":true,"id":8715},"toggleExpansion":{"__isSmartRef__":true,"id":8718}},"8715":{"varMapping":{"__isSmartRef__":true,"id":8716},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8716":{"this":{"__isSmartRef__":true,"id":8704}},"8717":{},"8718":{"varMapping":{"__isSmartRef__":true,"id":8719},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8719":{"this":{"__isSmartRef__":true,"id":8704}},"8720":{},"8721":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8722},"derivationIds":[null],"id":"DEA0090C-C4BF-422B-8630-05034A7E8DBE","renderContextTable":{"__isSmartRef__":true,"id":8726},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8727},{"__isSmartRef__":true,"id":8729}],"eventHandler":{"__isSmartRef__":true,"id":8731},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8732},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8733},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8722":{"_Position":{"__isSmartRef__":true,"id":8723},"renderContextTable":{"__isSmartRef__":true,"id":8724},"_Extent":{"__isSmartRef__":true,"id":8725},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8723":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8724":{"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"},"8725":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8726":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8727":{"style":{"__isSmartRef__":true,"id":8728},"chunkOwner":{"__isSmartRef__":true,"id":8721},"storedString":"distanceToDragEvent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8728":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8729":{"style":{"__isSmartRef__":true,"id":8730},"chunkOwner":{"__isSmartRef__":true,"id":8721},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8730":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8731":{"morph":{"__isSmartRef__":true,"id":8721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8732":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8733":{"layoutText":{"__isSmartRef__":true,"id":8734}},"8734":{"varMapping":{"__isSmartRef__":true,"id":8735},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8735":{"this":{"__isSmartRef__":true,"id":8721}},"8736":{},"8737":{"_Position":{"__isSmartRef__":true,"id":8738},"renderContextTable":{"__isSmartRef__":true,"id":8739},"_Extent":{"__isSmartRef__":true,"id":8740},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8741},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8738":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8739":{"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"},"8740":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8741":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8742":{"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"},"8743":{"morph":{"__isSmartRef__":true,"id":8703},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8744":{"resizeWidth":true},"8745":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8746":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8747":{"updateExpanderColor":{"__isSmartRef__":true,"id":8748},"onMouseDown":{"__isSmartRef__":true,"id":8751},"isRoot":{"__isSmartRef__":true,"id":8758},"displayValue":{"__isSmartRef__":true,"id":8761},"update":{"__isSmartRef__":true,"id":8764}},"8748":{"varMapping":{"__isSmartRef__":true,"id":8749},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8749":{"this":{"__isSmartRef__":true,"id":8703}},"8750":{},"8751":{"varMapping":{"__isSmartRef__":true,"id":8752},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8752":{"this":{"__isSmartRef__":true,"id":8703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8753}},"8753":{"$super":{"__isSmartRef__":true,"id":8754}},"8754":{"varMapping":{"__isSmartRef__":true,"id":8755},"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":8756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8755":{"obj":{"__isSmartRef__":true,"id":8703},"name":"onMouseDown"},"8756":{},"8757":{},"8758":{"varMapping":{"__isSmartRef__":true,"id":8759},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8759":{"this":{"__isSmartRef__":true,"id":8703}},"8760":{},"8761":{"varMapping":{"__isSmartRef__":true,"id":8762},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8762":{"this":{"__isSmartRef__":true,"id":8703}},"8763":{},"8764":{"varMapping":{"__isSmartRef__":true,"id":8765},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8765":{"this":{"__isSmartRef__":true,"id":8703}},"8766":{},"8767":{"_Position":{"__isSmartRef__":true,"id":8768},"renderContextTable":{"__isSmartRef__":true,"id":8769},"_Extent":{"__isSmartRef__":true,"id":8770},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8771},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8768":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8769":{"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"},"8770":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8771":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8772":{"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"},"8773":{"morph":{"__isSmartRef__":true,"id":8702},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8774":{"layouter":{"__isSmartRef__":true,"id":8775},"resizeWidth":true},"8775":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8702},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8776":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8777":{"x":0,"y":820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8778":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8779}},"8779":{"varMapping":{"__isSmartRef__":true,"id":8780},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8780":{"this":{"__isSmartRef__":true,"id":8702},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8781}},"8781":{"$super":{"__isSmartRef__":true,"id":8782}},"8782":{"varMapping":{"__isSmartRef__":true,"id":8783},"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":8784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8783":{"obj":{"__isSmartRef__":true,"id":8702},"name":"getLayoutableSubmorphs"},"8784":{},"8785":{},"8786":{"submorphs":[{"__isSmartRef__":true,"id":8787}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8851},"derivationIds":[null],"id":"5428C26B-9D6D-4DF8-8104-B5D0052CAE0C","renderContextTable":{"__isSmartRef__":true,"id":8856},"eventHandler":{"__isSmartRef__":true,"id":8857},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8858},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8860},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8861},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8862},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8787":{"submorphs":[{"__isSmartRef__":true,"id":8788},{"__isSmartRef__":true,"id":8805}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8821},"derivationIds":[null],"id":"188FF4B2-538B-4DD9-9896-229499706405","renderContextTable":{"__isSmartRef__":true,"id":8826},"eventHandler":{"__isSmartRef__":true,"id":8827},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8828},"grabbingEnabled":false,"draggingEnabled":false,"data":["$$textString"],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"doNotCopyProperties","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8788},"text":{"__isSmartRef__":true,"id":8805},"owner":{"__isSmartRef__":true,"id":8786},"_Position":{"__isSmartRef__":true,"id":8829},"priorExtent":{"__isSmartRef__":true,"id":8830},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8831},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8788":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8789},"derivationIds":[null],"id":"4E998F1E-61CD-4F7A-8316-D9C832E09B9B","renderContextTable":{"__isSmartRef__":true,"id":8795},"eventHandler":{"__isSmartRef__":true,"id":8796},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8797},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8798},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8789":{"_Position":{"__isSmartRef__":true,"id":8790},"renderContextTable":{"__isSmartRef__":true,"id":8791},"_Extent":{"__isSmartRef__":true,"id":8792},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8793},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8794},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8790":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8791":{"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"},"8792":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8793":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8794":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8795":{"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"},"8796":{"morph":{"__isSmartRef__":true,"id":8788},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8797":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8798":{"toggle":{"__isSmartRef__":true,"id":8799},"toggleExpansion":{"__isSmartRef__":true,"id":8802}},"8799":{"varMapping":{"__isSmartRef__":true,"id":8800},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8800":{"this":{"__isSmartRef__":true,"id":8788}},"8801":{},"8802":{"varMapping":{"__isSmartRef__":true,"id":8803},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8803":{"this":{"__isSmartRef__":true,"id":8788}},"8804":{},"8805":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8806},"derivationIds":[null],"id":"E549E9DE-D64F-44D6-9505-BB40F665916B","renderContextTable":{"__isSmartRef__":true,"id":8810},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8811},{"__isSmartRef__":true,"id":8813}],"eventHandler":{"__isSmartRef__":true,"id":8815},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8816},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8817},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8806":{"_Position":{"__isSmartRef__":true,"id":8807},"renderContextTable":{"__isSmartRef__":true,"id":8808},"_Extent":{"__isSmartRef__":true,"id":8809},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8807":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8808":{"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"},"8809":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8810":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8811":{"style":{"__isSmartRef__":true,"id":8812},"chunkOwner":{"__isSmartRef__":true,"id":8805},"storedString":"doNotCopyProperties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8812":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8813":{"style":{"__isSmartRef__":true,"id":8814},"chunkOwner":{"__isSmartRef__":true,"id":8805},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8814":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8815":{"morph":{"__isSmartRef__":true,"id":8805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8816":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8817":{"layoutText":{"__isSmartRef__":true,"id":8818}},"8818":{"varMapping":{"__isSmartRef__":true,"id":8819},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8819":{"this":{"__isSmartRef__":true,"id":8805}},"8820":{},"8821":{"_Position":{"__isSmartRef__":true,"id":8822},"renderContextTable":{"__isSmartRef__":true,"id":8823},"_Extent":{"__isSmartRef__":true,"id":8824},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8825},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8822":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8823":{"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"},"8824":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8825":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8826":{"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"},"8827":{"morph":{"__isSmartRef__":true,"id":8787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8828":{"resizeWidth":true},"8829":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8830":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8831":{"updateExpanderColor":{"__isSmartRef__":true,"id":8832},"onMouseDown":{"__isSmartRef__":true,"id":8835},"isRoot":{"__isSmartRef__":true,"id":8842},"displayValue":{"__isSmartRef__":true,"id":8845},"update":{"__isSmartRef__":true,"id":8848}},"8832":{"varMapping":{"__isSmartRef__":true,"id":8833},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8833":{"this":{"__isSmartRef__":true,"id":8787}},"8834":{},"8835":{"varMapping":{"__isSmartRef__":true,"id":8836},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8836":{"this":{"__isSmartRef__":true,"id":8787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8837}},"8837":{"$super":{"__isSmartRef__":true,"id":8838}},"8838":{"varMapping":{"__isSmartRef__":true,"id":8839},"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":8840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8839":{"obj":{"__isSmartRef__":true,"id":8787},"name":"onMouseDown"},"8840":{},"8841":{},"8842":{"varMapping":{"__isSmartRef__":true,"id":8843},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8843":{"this":{"__isSmartRef__":true,"id":8787}},"8844":{},"8845":{"varMapping":{"__isSmartRef__":true,"id":8846},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8846":{"this":{"__isSmartRef__":true,"id":8787}},"8847":{},"8848":{"varMapping":{"__isSmartRef__":true,"id":8849},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8849":{"this":{"__isSmartRef__":true,"id":8787}},"8850":{},"8851":{"_Position":{"__isSmartRef__":true,"id":8852},"renderContextTable":{"__isSmartRef__":true,"id":8853},"_Extent":{"__isSmartRef__":true,"id":8854},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8855},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8852":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8853":{"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"},"8854":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8855":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8856":{"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"},"8857":{"morph":{"__isSmartRef__":true,"id":8786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8858":{"layouter":{"__isSmartRef__":true,"id":8859},"resizeWidth":true},"8859":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8786},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8860":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8861":{"x":0,"y":800,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8862":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8863}},"8863":{"varMapping":{"__isSmartRef__":true,"id":8864},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8864":{"this":{"__isSmartRef__":true,"id":8786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8865}},"8865":{"$super":{"__isSmartRef__":true,"id":8866}},"8866":{"varMapping":{"__isSmartRef__":true,"id":8867},"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":8868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8867":{"obj":{"__isSmartRef__":true,"id":8786},"name":"getLayoutableSubmorphs"},"8868":{},"8869":{},"8870":{"submorphs":[{"__isSmartRef__":true,"id":8871}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8935},"derivationIds":[null],"id":"EB0F729A-C2BF-4DCC-BF28-BE817CA6AF4E","renderContextTable":{"__isSmartRef__":true,"id":8940},"eventHandler":{"__isSmartRef__":true,"id":8941},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8942},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8944},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":8945},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8946},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8871":{"submorphs":[{"__isSmartRef__":true,"id":8872},{"__isSmartRef__":true,"id":8889}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8905},"derivationIds":[null],"id":"6B91D7EE-80D2-4148-9B7D-1C31C8DBB1F5","renderContextTable":{"__isSmartRef__":true,"id":8910},"eventHandler":{"__isSmartRef__":true,"id":8911},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8912},"grabbingEnabled":false,"draggingEnabled":false,"data":["$$textString"],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"doNotSerialize","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8872},"text":{"__isSmartRef__":true,"id":8889},"owner":{"__isSmartRef__":true,"id":8870},"_Position":{"__isSmartRef__":true,"id":8913},"priorExtent":{"__isSmartRef__":true,"id":8914},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8915},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8872":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8873},"derivationIds":[null],"id":"A596C58F-633B-4BF6-9AF7-05521413B830","renderContextTable":{"__isSmartRef__":true,"id":8879},"eventHandler":{"__isSmartRef__":true,"id":8880},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8881},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8871},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8882},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8873":{"_Position":{"__isSmartRef__":true,"id":8874},"renderContextTable":{"__isSmartRef__":true,"id":8875},"_Extent":{"__isSmartRef__":true,"id":8876},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8877},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8878},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8874":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8875":{"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"},"8876":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8877":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8878":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8879":{"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"},"8880":{"morph":{"__isSmartRef__":true,"id":8872},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8881":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8882":{"toggle":{"__isSmartRef__":true,"id":8883},"toggleExpansion":{"__isSmartRef__":true,"id":8886}},"8883":{"varMapping":{"__isSmartRef__":true,"id":8884},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8884":{"this":{"__isSmartRef__":true,"id":8872}},"8885":{},"8886":{"varMapping":{"__isSmartRef__":true,"id":8887},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8887":{"this":{"__isSmartRef__":true,"id":8872}},"8888":{},"8889":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8890},"derivationIds":[null],"id":"00BD6DEA-B4E6-4570-B205-74CF2C1CC839","renderContextTable":{"__isSmartRef__":true,"id":8894},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8895},{"__isSmartRef__":true,"id":8897}],"eventHandler":{"__isSmartRef__":true,"id":8899},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8900},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8871},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8901},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8890":{"_Position":{"__isSmartRef__":true,"id":8891},"renderContextTable":{"__isSmartRef__":true,"id":8892},"_Extent":{"__isSmartRef__":true,"id":8893},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8891":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8892":{"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"},"8893":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8894":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8895":{"style":{"__isSmartRef__":true,"id":8896},"chunkOwner":{"__isSmartRef__":true,"id":8889},"storedString":"doNotSerialize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8896":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8897":{"style":{"__isSmartRef__":true,"id":8898},"chunkOwner":{"__isSmartRef__":true,"id":8889},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8898":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8899":{"morph":{"__isSmartRef__":true,"id":8889},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8900":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8901":{"layoutText":{"__isSmartRef__":true,"id":8902}},"8902":{"varMapping":{"__isSmartRef__":true,"id":8903},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8903":{"this":{"__isSmartRef__":true,"id":8889}},"8904":{},"8905":{"_Position":{"__isSmartRef__":true,"id":8906},"renderContextTable":{"__isSmartRef__":true,"id":8907},"_Extent":{"__isSmartRef__":true,"id":8908},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8909},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8906":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8907":{"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"},"8908":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8909":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8910":{"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"},"8911":{"morph":{"__isSmartRef__":true,"id":8871},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8912":{"resizeWidth":true},"8913":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8914":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8915":{"updateExpanderColor":{"__isSmartRef__":true,"id":8916},"onMouseDown":{"__isSmartRef__":true,"id":8919},"isRoot":{"__isSmartRef__":true,"id":8926},"displayValue":{"__isSmartRef__":true,"id":8929},"update":{"__isSmartRef__":true,"id":8932}},"8916":{"varMapping":{"__isSmartRef__":true,"id":8917},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8917":{"this":{"__isSmartRef__":true,"id":8871}},"8918":{},"8919":{"varMapping":{"__isSmartRef__":true,"id":8920},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8920":{"this":{"__isSmartRef__":true,"id":8871},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8921}},"8921":{"$super":{"__isSmartRef__":true,"id":8922}},"8922":{"varMapping":{"__isSmartRef__":true,"id":8923},"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":8924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8923":{"obj":{"__isSmartRef__":true,"id":8871},"name":"onMouseDown"},"8924":{},"8925":{},"8926":{"varMapping":{"__isSmartRef__":true,"id":8927},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8927":{"this":{"__isSmartRef__":true,"id":8871}},"8928":{},"8929":{"varMapping":{"__isSmartRef__":true,"id":8930},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8930":{"this":{"__isSmartRef__":true,"id":8871}},"8931":{},"8932":{"varMapping":{"__isSmartRef__":true,"id":8933},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8933":{"this":{"__isSmartRef__":true,"id":8871}},"8934":{},"8935":{"_Position":{"__isSmartRef__":true,"id":8936},"renderContextTable":{"__isSmartRef__":true,"id":8937},"_Extent":{"__isSmartRef__":true,"id":8938},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8939},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8936":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8937":{"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"},"8938":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8939":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8940":{"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"},"8941":{"morph":{"__isSmartRef__":true,"id":8870},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8942":{"layouter":{"__isSmartRef__":true,"id":8943},"resizeWidth":true},"8943":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8870},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8944":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8945":{"x":0,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8946":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8947}},"8947":{"varMapping":{"__isSmartRef__":true,"id":8948},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8948":{"this":{"__isSmartRef__":true,"id":8870},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8949}},"8949":{"$super":{"__isSmartRef__":true,"id":8950}},"8950":{"varMapping":{"__isSmartRef__":true,"id":8951},"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":8952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8951":{"obj":{"__isSmartRef__":true,"id":8870},"name":"getLayoutableSubmorphs"},"8952":{},"8953":{},"8954":{"submorphs":[{"__isSmartRef__":true,"id":8955}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9019},"derivationIds":[null],"id":"5D660C92-EBD1-423E-AE63-C98AAEFEF31D","renderContextTable":{"__isSmartRef__":true,"id":9024},"eventHandler":{"__isSmartRef__":true,"id":9025},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9026},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9028},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9029},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9030},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8955":{"submorphs":[{"__isSmartRef__":true,"id":8956},{"__isSmartRef__":true,"id":8973}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8989},"derivationIds":[null],"id":"CAC8C1E1-BD63-4C2E-B0E2-9F6E843B9871","renderContextTable":{"__isSmartRef__":true,"id":8994},"eventHandler":{"__isSmartRef__":true,"id":8995},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8996},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":6467},"propertyList":["submorphs","scripts","id","shape","grabbingEnabled","droppingEnabled","showsMorphMenu","halosEnabled","registeredForMouseEvents","_Position","value","toggle","isActive","normalFill","lighterFill","label","attributeConnections","doNotSerialize","doNotCopyProperties","showsHalos","__SourceModuleName__","padding","name","partsBinMetaInfo","renderContextTable","priorExtent","eventHandler","draggingEnabled","distanceToDragEvent","isCopyMorphRef","morphRefId","derivationIds","isLockOwner","databaseID","databaseRev","textMorph","prevSelectionRange","owner","_Rotation","_Scale","_renderContext","_isRendered","halos"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"doitContext","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":8956},"text":{"__isSmartRef__":true,"id":8973},"owner":{"__isSmartRef__":true,"id":8954},"_Position":{"__isSmartRef__":true,"id":8997},"priorExtent":{"__isSmartRef__":true,"id":8998},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8999},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8956":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8957},"derivationIds":[null],"id":"6A10B307-5620-42AA-B4D1-F8946177C0DD","renderContextTable":{"__isSmartRef__":true,"id":8963},"eventHandler":{"__isSmartRef__":true,"id":8964},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8965},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8966},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8957":{"_Position":{"__isSmartRef__":true,"id":8958},"renderContextTable":{"__isSmartRef__":true,"id":8959},"_Extent":{"__isSmartRef__":true,"id":8960},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8961},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":8962},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8958":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8959":{"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"},"8960":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8961":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8962":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8963":{"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"},"8964":{"morph":{"__isSmartRef__":true,"id":8956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8965":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8966":{"toggle":{"__isSmartRef__":true,"id":8967},"toggleExpansion":{"__isSmartRef__":true,"id":8970}},"8967":{"varMapping":{"__isSmartRef__":true,"id":8968},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8968":{"this":{"__isSmartRef__":true,"id":8956}},"8969":{},"8970":{"varMapping":{"__isSmartRef__":true,"id":8971},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8971":{"this":{"__isSmartRef__":true,"id":8956}},"8972":{},"8973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8974},"derivationIds":[null],"id":"9269A128-5F37-4F87-BB8F-92D978F9E53E","renderContextTable":{"__isSmartRef__":true,"id":8978},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8979},{"__isSmartRef__":true,"id":8981}],"eventHandler":{"__isSmartRef__":true,"id":8983},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8984},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8985},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8974":{"_Position":{"__isSmartRef__":true,"id":8975},"renderContextTable":{"__isSmartRef__":true,"id":8976},"_Extent":{"__isSmartRef__":true,"id":8977},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8975":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8976":{"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"},"8977":{"x":360,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8978":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8979":{"style":{"__isSmartRef__":true,"id":8980},"chunkOwner":{"__isSmartRef__":true,"id":8973},"storedString":"doitContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8980":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8981":{"style":{"__isSmartRef__":true,"id":8982},"chunkOwner":{"__isSmartRef__":true,"id":8973},"storedString":": ObjectEditorAddOpenCurlyBraceButton","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8982":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8983":{"morph":{"__isSmartRef__":true,"id":8973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8984":{"x":367.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8985":{"layoutText":{"__isSmartRef__":true,"id":8986}},"8986":{"varMapping":{"__isSmartRef__":true,"id":8987},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8987":{"this":{"__isSmartRef__":true,"id":8973}},"8988":{},"8989":{"_Position":{"__isSmartRef__":true,"id":8990},"renderContextTable":{"__isSmartRef__":true,"id":8991},"_Extent":{"__isSmartRef__":true,"id":8992},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8993},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8990":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8991":{"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"},"8992":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8993":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8994":{"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"},"8995":{"morph":{"__isSmartRef__":true,"id":8955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8996":{"resizeWidth":true},"8997":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8999":{"updateExpanderColor":{"__isSmartRef__":true,"id":9000},"onMouseDown":{"__isSmartRef__":true,"id":9003},"isRoot":{"__isSmartRef__":true,"id":9010},"displayValue":{"__isSmartRef__":true,"id":9013},"update":{"__isSmartRef__":true,"id":9016}},"9000":{"varMapping":{"__isSmartRef__":true,"id":9001},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9001":{"this":{"__isSmartRef__":true,"id":8955}},"9002":{},"9003":{"varMapping":{"__isSmartRef__":true,"id":9004},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9004":{"this":{"__isSmartRef__":true,"id":8955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9005}},"9005":{"$super":{"__isSmartRef__":true,"id":9006}},"9006":{"varMapping":{"__isSmartRef__":true,"id":9007},"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":9008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9007":{"obj":{"__isSmartRef__":true,"id":8955},"name":"onMouseDown"},"9008":{},"9009":{},"9010":{"varMapping":{"__isSmartRef__":true,"id":9011},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9011":{"this":{"__isSmartRef__":true,"id":8955}},"9012":{},"9013":{"varMapping":{"__isSmartRef__":true,"id":9014},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9014":{"this":{"__isSmartRef__":true,"id":8955}},"9015":{},"9016":{"varMapping":{"__isSmartRef__":true,"id":9017},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9017":{"this":{"__isSmartRef__":true,"id":8955}},"9018":{},"9019":{"_Position":{"__isSmartRef__":true,"id":9020},"renderContextTable":{"__isSmartRef__":true,"id":9021},"_Extent":{"__isSmartRef__":true,"id":9022},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9023},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9020":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9021":{"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"},"9022":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9023":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9024":{"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"},"9025":{"morph":{"__isSmartRef__":true,"id":8954},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9026":{"layouter":{"__isSmartRef__":true,"id":9027},"resizeWidth":true},"9027":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8954},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9028":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9029":{"x":0,"y":760,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9030":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9031}},"9031":{"varMapping":{"__isSmartRef__":true,"id":9032},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9032":{"this":{"__isSmartRef__":true,"id":8954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9033}},"9033":{"$super":{"__isSmartRef__":true,"id":9034}},"9034":{"varMapping":{"__isSmartRef__":true,"id":9035},"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":9036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9035":{"obj":{"__isSmartRef__":true,"id":8954},"name":"getLayoutableSubmorphs"},"9036":{},"9037":{},"9038":{"submorphs":[{"__isSmartRef__":true,"id":9039}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9103},"derivationIds":[null],"id":"D0E06C5A-D006-4FC3-BCA8-7FFC17B8CCC1","renderContextTable":{"__isSmartRef__":true,"id":9108},"eventHandler":{"__isSmartRef__":true,"id":9109},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9110},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9112},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9114},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9039":{"submorphs":[{"__isSmartRef__":true,"id":9040},{"__isSmartRef__":true,"id":9057}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9073},"derivationIds":[null],"id":"BE638E44-03AF-4136-9973-CAF35354D8A3","renderContextTable":{"__isSmartRef__":true,"id":9078},"eventHandler":{"__isSmartRef__":true,"id":9079},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9080},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"draggingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9040},"text":{"__isSmartRef__":true,"id":9057},"owner":{"__isSmartRef__":true,"id":9038},"_Position":{"__isSmartRef__":true,"id":9081},"priorExtent":{"__isSmartRef__":true,"id":9082},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9083},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9040":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9041},"derivationIds":[null],"id":"2E9358A2-B1E2-4CA9-AE6F-DD266BD779E6","renderContextTable":{"__isSmartRef__":true,"id":9047},"eventHandler":{"__isSmartRef__":true,"id":9048},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9049},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9050},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9041":{"_Position":{"__isSmartRef__":true,"id":9042},"renderContextTable":{"__isSmartRef__":true,"id":9043},"_Extent":{"__isSmartRef__":true,"id":9044},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9045},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9046},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9042":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9043":{"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"},"9044":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9045":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9046":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9047":{"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"},"9048":{"morph":{"__isSmartRef__":true,"id":9040},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9049":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9050":{"toggle":{"__isSmartRef__":true,"id":9051},"toggleExpansion":{"__isSmartRef__":true,"id":9054}},"9051":{"varMapping":{"__isSmartRef__":true,"id":9052},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9052":{"this":{"__isSmartRef__":true,"id":9040}},"9053":{},"9054":{"varMapping":{"__isSmartRef__":true,"id":9055},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9055":{"this":{"__isSmartRef__":true,"id":9040}},"9056":{},"9057":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9058},"derivationIds":[null],"id":"F82ADB3B-B196-4E87-8123-18F597E5BD3F","renderContextTable":{"__isSmartRef__":true,"id":9062},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9063},{"__isSmartRef__":true,"id":9065}],"eventHandler":{"__isSmartRef__":true,"id":9067},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9068},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9069},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9058":{"_Position":{"__isSmartRef__":true,"id":9059},"renderContextTable":{"__isSmartRef__":true,"id":9060},"_Extent":{"__isSmartRef__":true,"id":9061},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9059":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9060":{"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"},"9061":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9062":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9063":{"style":{"__isSmartRef__":true,"id":9064},"chunkOwner":{"__isSmartRef__":true,"id":9057},"storedString":"draggingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9064":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9065":{"style":{"__isSmartRef__":true,"id":9066},"chunkOwner":{"__isSmartRef__":true,"id":9057},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9066":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9067":{"morph":{"__isSmartRef__":true,"id":9057},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9068":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9069":{"layoutText":{"__isSmartRef__":true,"id":9070}},"9070":{"varMapping":{"__isSmartRef__":true,"id":9071},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9071":{"this":{"__isSmartRef__":true,"id":9057}},"9072":{},"9073":{"_Position":{"__isSmartRef__":true,"id":9074},"renderContextTable":{"__isSmartRef__":true,"id":9075},"_Extent":{"__isSmartRef__":true,"id":9076},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9077},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9074":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9075":{"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"},"9076":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9077":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9078":{"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"},"9079":{"morph":{"__isSmartRef__":true,"id":9039},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9080":{"resizeWidth":true},"9081":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9082":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9083":{"updateExpanderColor":{"__isSmartRef__":true,"id":9084},"onMouseDown":{"__isSmartRef__":true,"id":9087},"isRoot":{"__isSmartRef__":true,"id":9094},"displayValue":{"__isSmartRef__":true,"id":9097},"update":{"__isSmartRef__":true,"id":9100}},"9084":{"varMapping":{"__isSmartRef__":true,"id":9085},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9085":{"this":{"__isSmartRef__":true,"id":9039}},"9086":{},"9087":{"varMapping":{"__isSmartRef__":true,"id":9088},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9088":{"this":{"__isSmartRef__":true,"id":9039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9089}},"9089":{"$super":{"__isSmartRef__":true,"id":9090}},"9090":{"varMapping":{"__isSmartRef__":true,"id":9091},"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":9092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9091":{"obj":{"__isSmartRef__":true,"id":9039},"name":"onMouseDown"},"9092":{},"9093":{},"9094":{"varMapping":{"__isSmartRef__":true,"id":9095},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9095":{"this":{"__isSmartRef__":true,"id":9039}},"9096":{},"9097":{"varMapping":{"__isSmartRef__":true,"id":9098},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9098":{"this":{"__isSmartRef__":true,"id":9039}},"9099":{},"9100":{"varMapping":{"__isSmartRef__":true,"id":9101},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9101":{"this":{"__isSmartRef__":true,"id":9039}},"9102":{},"9103":{"_Position":{"__isSmartRef__":true,"id":9104},"renderContextTable":{"__isSmartRef__":true,"id":9105},"_Extent":{"__isSmartRef__":true,"id":9106},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9107},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9104":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9105":{"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"},"9106":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9107":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9108":{"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"},"9109":{"morph":{"__isSmartRef__":true,"id":9038},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9110":{"layouter":{"__isSmartRef__":true,"id":9111},"resizeWidth":true},"9111":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9038},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9112":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9113":{"x":0,"y":740,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9114":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9115}},"9115":{"varMapping":{"__isSmartRef__":true,"id":9116},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9116":{"this":{"__isSmartRef__":true,"id":9038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9117}},"9117":{"$super":{"__isSmartRef__":true,"id":9118}},"9118":{"varMapping":{"__isSmartRef__":true,"id":9119},"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":9120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9119":{"obj":{"__isSmartRef__":true,"id":9038},"name":"getLayoutableSubmorphs"},"9120":{},"9121":{},"9122":{"submorphs":[{"__isSmartRef__":true,"id":9123}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9187},"derivationIds":[null],"id":"3CB19350-D6C9-4CF1-9EAA-0B6F45EBA958","renderContextTable":{"__isSmartRef__":true,"id":9192},"eventHandler":{"__isSmartRef__":true,"id":9193},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9194},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9196},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9197},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9198},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9123":{"submorphs":[{"__isSmartRef__":true,"id":9124},{"__isSmartRef__":true,"id":9141}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9157},"derivationIds":[null],"id":"3C2ACBFA-3274-48E4-BDCB-1A371795FBB3","renderContextTable":{"__isSmartRef__":true,"id":9162},"eventHandler":{"__isSmartRef__":true,"id":9163},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9164},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"droppingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9124},"text":{"__isSmartRef__":true,"id":9141},"owner":{"__isSmartRef__":true,"id":9122},"_Position":{"__isSmartRef__":true,"id":9165},"priorExtent":{"__isSmartRef__":true,"id":9166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9167},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9125},"derivationIds":[null],"id":"C7A4EFEB-1B69-446E-895E-14E824B266B4","renderContextTable":{"__isSmartRef__":true,"id":9131},"eventHandler":{"__isSmartRef__":true,"id":9132},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9133},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9134},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9125":{"_Position":{"__isSmartRef__":true,"id":9126},"renderContextTable":{"__isSmartRef__":true,"id":9127},"_Extent":{"__isSmartRef__":true,"id":9128},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9129},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9130},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9126":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9127":{"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"},"9128":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9129":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9130":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9131":{"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"},"9132":{"morph":{"__isSmartRef__":true,"id":9124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9133":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9134":{"toggle":{"__isSmartRef__":true,"id":9135},"toggleExpansion":{"__isSmartRef__":true,"id":9138}},"9135":{"varMapping":{"__isSmartRef__":true,"id":9136},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9136":{"this":{"__isSmartRef__":true,"id":9124}},"9137":{},"9138":{"varMapping":{"__isSmartRef__":true,"id":9139},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9139":{"this":{"__isSmartRef__":true,"id":9124}},"9140":{},"9141":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9142},"derivationIds":[null],"id":"D4AA37AF-B8DB-4365-AE24-2BAD1B947146","renderContextTable":{"__isSmartRef__":true,"id":9146},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9147},{"__isSmartRef__":true,"id":9149}],"eventHandler":{"__isSmartRef__":true,"id":9151},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9152},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9153},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9142":{"_Position":{"__isSmartRef__":true,"id":9143},"renderContextTable":{"__isSmartRef__":true,"id":9144},"_Extent":{"__isSmartRef__":true,"id":9145},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9143":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9144":{"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"},"9145":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9146":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9147":{"style":{"__isSmartRef__":true,"id":9148},"chunkOwner":{"__isSmartRef__":true,"id":9141},"storedString":"droppingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9148":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9149":{"style":{"__isSmartRef__":true,"id":9150},"chunkOwner":{"__isSmartRef__":true,"id":9141},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9150":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9151":{"morph":{"__isSmartRef__":true,"id":9141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9152":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9153":{"layoutText":{"__isSmartRef__":true,"id":9154}},"9154":{"varMapping":{"__isSmartRef__":true,"id":9155},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9155":{"this":{"__isSmartRef__":true,"id":9141}},"9156":{},"9157":{"_Position":{"__isSmartRef__":true,"id":9158},"renderContextTable":{"__isSmartRef__":true,"id":9159},"_Extent":{"__isSmartRef__":true,"id":9160},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9161},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9158":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9159":{"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"},"9160":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9161":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9162":{"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"},"9163":{"morph":{"__isSmartRef__":true,"id":9123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9164":{"resizeWidth":true},"9165":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9166":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9167":{"updateExpanderColor":{"__isSmartRef__":true,"id":9168},"onMouseDown":{"__isSmartRef__":true,"id":9171},"isRoot":{"__isSmartRef__":true,"id":9178},"displayValue":{"__isSmartRef__":true,"id":9181},"update":{"__isSmartRef__":true,"id":9184}},"9168":{"varMapping":{"__isSmartRef__":true,"id":9169},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9169":{"this":{"__isSmartRef__":true,"id":9123}},"9170":{},"9171":{"varMapping":{"__isSmartRef__":true,"id":9172},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9172":{"this":{"__isSmartRef__":true,"id":9123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9173}},"9173":{"$super":{"__isSmartRef__":true,"id":9174}},"9174":{"varMapping":{"__isSmartRef__":true,"id":9175},"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":9176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9175":{"obj":{"__isSmartRef__":true,"id":9123},"name":"onMouseDown"},"9176":{},"9177":{},"9178":{"varMapping":{"__isSmartRef__":true,"id":9179},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9179":{"this":{"__isSmartRef__":true,"id":9123}},"9180":{},"9181":{"varMapping":{"__isSmartRef__":true,"id":9182},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9182":{"this":{"__isSmartRef__":true,"id":9123}},"9183":{},"9184":{"varMapping":{"__isSmartRef__":true,"id":9185},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9185":{"this":{"__isSmartRef__":true,"id":9123}},"9186":{},"9187":{"_Position":{"__isSmartRef__":true,"id":9188},"renderContextTable":{"__isSmartRef__":true,"id":9189},"_Extent":{"__isSmartRef__":true,"id":9190},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9191},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9188":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9189":{"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"},"9190":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9191":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9192":{"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"},"9193":{"morph":{"__isSmartRef__":true,"id":9122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9194":{"layouter":{"__isSmartRef__":true,"id":9195},"resizeWidth":true},"9195":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9122},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9196":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9197":{"x":0,"y":720,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9198":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9199}},"9199":{"varMapping":{"__isSmartRef__":true,"id":9200},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9200":{"this":{"__isSmartRef__":true,"id":9122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9201}},"9201":{"$super":{"__isSmartRef__":true,"id":9202}},"9202":{"varMapping":{"__isSmartRef__":true,"id":9203},"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":9204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9203":{"obj":{"__isSmartRef__":true,"id":9122},"name":"getLayoutableSubmorphs"},"9204":{},"9205":{},"9206":{"submorphs":[{"__isSmartRef__":true,"id":9207}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9271},"derivationIds":[null],"id":"D9420010-3B54-4FD6-9B81-33B3056DDF2A","renderContextTable":{"__isSmartRef__":true,"id":9276},"eventHandler":{"__isSmartRef__":true,"id":9277},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9278},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9280},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9281},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9282},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9207":{"submorphs":[{"__isSmartRef__":true,"id":9208},{"__isSmartRef__":true,"id":9225}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9241},"derivationIds":[null],"id":"22D92697-2434-48C2-AD4A-9E233C70D55D","renderContextTable":{"__isSmartRef__":true,"id":9246},"eventHandler":{"__isSmartRef__":true,"id":9247},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9248},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4647},"propertyList":["morph","__SourceModuleName__","dispatchTable"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"eventHandler","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9208},"text":{"__isSmartRef__":true,"id":9225},"owner":{"__isSmartRef__":true,"id":9206},"_Position":{"__isSmartRef__":true,"id":9249},"priorExtent":{"__isSmartRef__":true,"id":9250},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9251},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9209},"derivationIds":[null],"id":"0C8C0815-48EB-4CE6-8603-92123000E114","renderContextTable":{"__isSmartRef__":true,"id":9215},"eventHandler":{"__isSmartRef__":true,"id":9216},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9217},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9218},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9209":{"_Position":{"__isSmartRef__":true,"id":9210},"renderContextTable":{"__isSmartRef__":true,"id":9211},"_Extent":{"__isSmartRef__":true,"id":9212},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9213},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9214},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9210":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9211":{"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"},"9212":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9213":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9214":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9215":{"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"},"9216":{"morph":{"__isSmartRef__":true,"id":9208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9217":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9218":{"toggle":{"__isSmartRef__":true,"id":9219},"toggleExpansion":{"__isSmartRef__":true,"id":9222}},"9219":{"varMapping":{"__isSmartRef__":true,"id":9220},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9220":{"this":{"__isSmartRef__":true,"id":9208}},"9221":{},"9222":{"varMapping":{"__isSmartRef__":true,"id":9223},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9223":{"this":{"__isSmartRef__":true,"id":9208}},"9224":{},"9225":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9226},"derivationIds":[null],"id":"2C41D074-8C74-4F0D-8D7A-8402C479C308","renderContextTable":{"__isSmartRef__":true,"id":9230},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9231},{"__isSmartRef__":true,"id":9233}],"eventHandler":{"__isSmartRef__":true,"id":9235},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9236},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9237},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9226":{"_Position":{"__isSmartRef__":true,"id":9227},"renderContextTable":{"__isSmartRef__":true,"id":9228},"_Extent":{"__isSmartRef__":true,"id":9229},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9227":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9228":{"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"},"9229":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9230":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9231":{"style":{"__isSmartRef__":true,"id":9232},"chunkOwner":{"__isSmartRef__":true,"id":9225},"storedString":"eventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9232":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9233":{"style":{"__isSmartRef__":true,"id":9234},"chunkOwner":{"__isSmartRef__":true,"id":9225},"storedString":": EventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9234":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9235":{"morph":{"__isSmartRef__":true,"id":9225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9236":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9237":{"layoutText":{"__isSmartRef__":true,"id":9238}},"9238":{"varMapping":{"__isSmartRef__":true,"id":9239},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9239":{"this":{"__isSmartRef__":true,"id":9225}},"9240":{},"9241":{"_Position":{"__isSmartRef__":true,"id":9242},"renderContextTable":{"__isSmartRef__":true,"id":9243},"_Extent":{"__isSmartRef__":true,"id":9244},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9245},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9242":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9243":{"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"},"9244":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9245":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9246":{"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"},"9247":{"morph":{"__isSmartRef__":true,"id":9207},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9248":{"resizeWidth":true},"9249":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9250":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9251":{"updateExpanderColor":{"__isSmartRef__":true,"id":9252},"onMouseDown":{"__isSmartRef__":true,"id":9255},"isRoot":{"__isSmartRef__":true,"id":9262},"displayValue":{"__isSmartRef__":true,"id":9265},"update":{"__isSmartRef__":true,"id":9268}},"9252":{"varMapping":{"__isSmartRef__":true,"id":9253},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9253":{"this":{"__isSmartRef__":true,"id":9207}},"9254":{},"9255":{"varMapping":{"__isSmartRef__":true,"id":9256},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9256":{"this":{"__isSmartRef__":true,"id":9207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9257}},"9257":{"$super":{"__isSmartRef__":true,"id":9258}},"9258":{"varMapping":{"__isSmartRef__":true,"id":9259},"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":9260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9259":{"obj":{"__isSmartRef__":true,"id":9207},"name":"onMouseDown"},"9260":{},"9261":{},"9262":{"varMapping":{"__isSmartRef__":true,"id":9263},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9263":{"this":{"__isSmartRef__":true,"id":9207}},"9264":{},"9265":{"varMapping":{"__isSmartRef__":true,"id":9266},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9266":{"this":{"__isSmartRef__":true,"id":9207}},"9267":{},"9268":{"varMapping":{"__isSmartRef__":true,"id":9269},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9269":{"this":{"__isSmartRef__":true,"id":9207}},"9270":{},"9271":{"_Position":{"__isSmartRef__":true,"id":9272},"renderContextTable":{"__isSmartRef__":true,"id":9273},"_Extent":{"__isSmartRef__":true,"id":9274},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9275},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9272":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9273":{"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"},"9274":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9276":{"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"},"9277":{"morph":{"__isSmartRef__":true,"id":9206},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9278":{"layouter":{"__isSmartRef__":true,"id":9279},"resizeWidth":true},"9279":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9206},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9280":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9281":{"x":0,"y":700,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9282":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9283}},"9283":{"varMapping":{"__isSmartRef__":true,"id":9284},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9284":{"this":{"__isSmartRef__":true,"id":9206},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9285}},"9285":{"$super":{"__isSmartRef__":true,"id":9286}},"9286":{"varMapping":{"__isSmartRef__":true,"id":9287},"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":9288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9287":{"obj":{"__isSmartRef__":true,"id":9206},"name":"getLayoutableSubmorphs"},"9288":{},"9289":{},"9290":{"submorphs":[{"__isSmartRef__":true,"id":9291}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9355},"derivationIds":[null],"id":"D8F6D2D3-7BBA-4299-9BEA-9A463E649DB5","renderContextTable":{"__isSmartRef__":true,"id":9360},"eventHandler":{"__isSmartRef__":true,"id":9361},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9362},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9364},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9365},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9366},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9291":{"submorphs":[{"__isSmartRef__":true,"id":9292},{"__isSmartRef__":true,"id":9309}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9325},"derivationIds":[null],"id":"31F74DC0-F4E4-43D1-ABAC-54A838B05BA6","renderContextTable":{"__isSmartRef__":true,"id":9330},"eventHandler":{"__isSmartRef__":true,"id":9331},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9332},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"fixedHeight","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9292},"text":{"__isSmartRef__":true,"id":9309},"owner":{"__isSmartRef__":true,"id":9290},"_Position":{"__isSmartRef__":true,"id":9333},"priorExtent":{"__isSmartRef__":true,"id":9334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9335},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9292":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9293},"derivationIds":[null],"id":"04B754D7-4EBE-47BE-90E8-CE180CB7D362","renderContextTable":{"__isSmartRef__":true,"id":9299},"eventHandler":{"__isSmartRef__":true,"id":9300},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9301},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9302},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9293":{"_Position":{"__isSmartRef__":true,"id":9294},"renderContextTable":{"__isSmartRef__":true,"id":9295},"_Extent":{"__isSmartRef__":true,"id":9296},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9297},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9298},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9294":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9295":{"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"},"9296":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9297":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9298":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9299":{"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"},"9300":{"morph":{"__isSmartRef__":true,"id":9292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9301":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9302":{"toggle":{"__isSmartRef__":true,"id":9303},"toggleExpansion":{"__isSmartRef__":true,"id":9306}},"9303":{"varMapping":{"__isSmartRef__":true,"id":9304},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9304":{"this":{"__isSmartRef__":true,"id":9292}},"9305":{},"9306":{"varMapping":{"__isSmartRef__":true,"id":9307},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9307":{"this":{"__isSmartRef__":true,"id":9292}},"9308":{},"9309":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9310},"derivationIds":[null],"id":"E869829A-86FF-48B4-8953-DE3B5AF1AAD5","renderContextTable":{"__isSmartRef__":true,"id":9314},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9315},{"__isSmartRef__":true,"id":9317}],"eventHandler":{"__isSmartRef__":true,"id":9319},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9320},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9321},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9310":{"_Position":{"__isSmartRef__":true,"id":9311},"renderContextTable":{"__isSmartRef__":true,"id":9312},"_Extent":{"__isSmartRef__":true,"id":9313},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9311":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9312":{"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"},"9313":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9314":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9315":{"style":{"__isSmartRef__":true,"id":9316},"chunkOwner":{"__isSmartRef__":true,"id":9309},"storedString":"fixedHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9316":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9317":{"style":{"__isSmartRef__":true,"id":9318},"chunkOwner":{"__isSmartRef__":true,"id":9309},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9318":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9319":{"morph":{"__isSmartRef__":true,"id":9309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9320":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9321":{"layoutText":{"__isSmartRef__":true,"id":9322}},"9322":{"varMapping":{"__isSmartRef__":true,"id":9323},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9323":{"this":{"__isSmartRef__":true,"id":9309}},"9324":{},"9325":{"_Position":{"__isSmartRef__":true,"id":9326},"renderContextTable":{"__isSmartRef__":true,"id":9327},"_Extent":{"__isSmartRef__":true,"id":9328},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9329},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9326":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9327":{"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"},"9328":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9329":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9330":{"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"},"9331":{"morph":{"__isSmartRef__":true,"id":9291},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9332":{"resizeWidth":true},"9333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9334":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9335":{"updateExpanderColor":{"__isSmartRef__":true,"id":9336},"onMouseDown":{"__isSmartRef__":true,"id":9339},"isRoot":{"__isSmartRef__":true,"id":9346},"displayValue":{"__isSmartRef__":true,"id":9349},"update":{"__isSmartRef__":true,"id":9352}},"9336":{"varMapping":{"__isSmartRef__":true,"id":9337},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9337":{"this":{"__isSmartRef__":true,"id":9291}},"9338":{},"9339":{"varMapping":{"__isSmartRef__":true,"id":9340},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9340":{"this":{"__isSmartRef__":true,"id":9291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9341}},"9341":{"$super":{"__isSmartRef__":true,"id":9342}},"9342":{"varMapping":{"__isSmartRef__":true,"id":9343},"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":9344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9343":{"obj":{"__isSmartRef__":true,"id":9291},"name":"onMouseDown"},"9344":{},"9345":{},"9346":{"varMapping":{"__isSmartRef__":true,"id":9347},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9347":{"this":{"__isSmartRef__":true,"id":9291}},"9348":{},"9349":{"varMapping":{"__isSmartRef__":true,"id":9350},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9350":{"this":{"__isSmartRef__":true,"id":9291}},"9351":{},"9352":{"varMapping":{"__isSmartRef__":true,"id":9353},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9353":{"this":{"__isSmartRef__":true,"id":9291}},"9354":{},"9355":{"_Position":{"__isSmartRef__":true,"id":9356},"renderContextTable":{"__isSmartRef__":true,"id":9357},"_Extent":{"__isSmartRef__":true,"id":9358},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9356":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9357":{"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"},"9358":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9359":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9360":{"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"},"9361":{"morph":{"__isSmartRef__":true,"id":9290},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9362":{"layouter":{"__isSmartRef__":true,"id":9363},"resizeWidth":true},"9363":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9290},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9364":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9365":{"x":0,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9366":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9367}},"9367":{"varMapping":{"__isSmartRef__":true,"id":9368},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9368":{"this":{"__isSmartRef__":true,"id":9290},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9369}},"9369":{"$super":{"__isSmartRef__":true,"id":9370}},"9370":{"varMapping":{"__isSmartRef__":true,"id":9371},"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":9372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9371":{"obj":{"__isSmartRef__":true,"id":9290},"name":"getLayoutableSubmorphs"},"9372":{},"9373":{},"9374":{"submorphs":[{"__isSmartRef__":true,"id":9375}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9439},"derivationIds":[null],"id":"7E43603A-F4A5-4E7D-BCB9-2A46BAACD0D9","renderContextTable":{"__isSmartRef__":true,"id":9444},"eventHandler":{"__isSmartRef__":true,"id":9445},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9446},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9448},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9449},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9450},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9375":{"submorphs":[{"__isSmartRef__":true,"id":9376},{"__isSmartRef__":true,"id":9393}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9409},"derivationIds":[null],"id":"94C1977B-979A-4EA7-8C56-C0953ABDEDAF","renderContextTable":{"__isSmartRef__":true,"id":9414},"eventHandler":{"__isSmartRef__":true,"id":9415},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9416},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"fixedWidth","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9376},"text":{"__isSmartRef__":true,"id":9393},"owner":{"__isSmartRef__":true,"id":9374},"_Position":{"__isSmartRef__":true,"id":9417},"priorExtent":{"__isSmartRef__":true,"id":9418},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9419},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9376":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9377},"derivationIds":[null],"id":"33C51DB2-4841-44BE-A1B5-2563A2F33555","renderContextTable":{"__isSmartRef__":true,"id":9383},"eventHandler":{"__isSmartRef__":true,"id":9384},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9385},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9386},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9377":{"_Position":{"__isSmartRef__":true,"id":9378},"renderContextTable":{"__isSmartRef__":true,"id":9379},"_Extent":{"__isSmartRef__":true,"id":9380},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9381},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9382},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9378":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9379":{"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"},"9380":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9381":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9382":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9383":{"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"},"9384":{"morph":{"__isSmartRef__":true,"id":9376},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9385":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9386":{"toggle":{"__isSmartRef__":true,"id":9387},"toggleExpansion":{"__isSmartRef__":true,"id":9390}},"9387":{"varMapping":{"__isSmartRef__":true,"id":9388},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9388":{"this":{"__isSmartRef__":true,"id":9376}},"9389":{},"9390":{"varMapping":{"__isSmartRef__":true,"id":9391},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9391":{"this":{"__isSmartRef__":true,"id":9376}},"9392":{},"9393":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9394},"derivationIds":[null],"id":"C7F09AD3-EFFE-47CD-A866-AA9D85E88F79","renderContextTable":{"__isSmartRef__":true,"id":9398},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9399},{"__isSmartRef__":true,"id":9401}],"eventHandler":{"__isSmartRef__":true,"id":9403},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9404},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9405},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9394":{"_Position":{"__isSmartRef__":true,"id":9395},"renderContextTable":{"__isSmartRef__":true,"id":9396},"_Extent":{"__isSmartRef__":true,"id":9397},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9395":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9396":{"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"},"9397":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9398":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9399":{"style":{"__isSmartRef__":true,"id":9400},"chunkOwner":{"__isSmartRef__":true,"id":9393},"storedString":"fixedWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9400":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9401":{"style":{"__isSmartRef__":true,"id":9402},"chunkOwner":{"__isSmartRef__":true,"id":9393},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9402":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9403":{"morph":{"__isSmartRef__":true,"id":9393},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9404":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9405":{"layoutText":{"__isSmartRef__":true,"id":9406}},"9406":{"varMapping":{"__isSmartRef__":true,"id":9407},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9407":{"this":{"__isSmartRef__":true,"id":9393}},"9408":{},"9409":{"_Position":{"__isSmartRef__":true,"id":9410},"renderContextTable":{"__isSmartRef__":true,"id":9411},"_Extent":{"__isSmartRef__":true,"id":9412},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9413},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9410":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9411":{"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"},"9412":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9413":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9414":{"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"},"9415":{"morph":{"__isSmartRef__":true,"id":9375},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9416":{"resizeWidth":true},"9417":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9418":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9419":{"updateExpanderColor":{"__isSmartRef__":true,"id":9420},"onMouseDown":{"__isSmartRef__":true,"id":9423},"isRoot":{"__isSmartRef__":true,"id":9430},"displayValue":{"__isSmartRef__":true,"id":9433},"update":{"__isSmartRef__":true,"id":9436}},"9420":{"varMapping":{"__isSmartRef__":true,"id":9421},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9421":{"this":{"__isSmartRef__":true,"id":9375}},"9422":{},"9423":{"varMapping":{"__isSmartRef__":true,"id":9424},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9424":{"this":{"__isSmartRef__":true,"id":9375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9425}},"9425":{"$super":{"__isSmartRef__":true,"id":9426}},"9426":{"varMapping":{"__isSmartRef__":true,"id":9427},"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":9428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9427":{"obj":{"__isSmartRef__":true,"id":9375},"name":"onMouseDown"},"9428":{},"9429":{},"9430":{"varMapping":{"__isSmartRef__":true,"id":9431},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9431":{"this":{"__isSmartRef__":true,"id":9375}},"9432":{},"9433":{"varMapping":{"__isSmartRef__":true,"id":9434},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9434":{"this":{"__isSmartRef__":true,"id":9375}},"9435":{},"9436":{"varMapping":{"__isSmartRef__":true,"id":9437},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9437":{"this":{"__isSmartRef__":true,"id":9375}},"9438":{},"9439":{"_Position":{"__isSmartRef__":true,"id":9440},"renderContextTable":{"__isSmartRef__":true,"id":9441},"_Extent":{"__isSmartRef__":true,"id":9442},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9443},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9440":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9441":{"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"},"9442":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9443":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9444":{"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"},"9445":{"morph":{"__isSmartRef__":true,"id":9374},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9446":{"layouter":{"__isSmartRef__":true,"id":9447},"resizeWidth":true},"9447":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9374},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9448":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9449":{"x":0,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9450":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9451}},"9451":{"varMapping":{"__isSmartRef__":true,"id":9452},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9452":{"this":{"__isSmartRef__":true,"id":9374},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9453}},"9453":{"$super":{"__isSmartRef__":true,"id":9454}},"9454":{"varMapping":{"__isSmartRef__":true,"id":9455},"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":9456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9455":{"obj":{"__isSmartRef__":true,"id":9374},"name":"getLayoutableSubmorphs"},"9456":{},"9457":{},"9458":{"submorphs":[{"__isSmartRef__":true,"id":9459}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9523},"derivationIds":[null],"id":"DB3ED7A3-E969-4E45-8538-A2FA6CFF5758","renderContextTable":{"__isSmartRef__":true,"id":9528},"eventHandler":{"__isSmartRef__":true,"id":9529},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9530},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9532},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9533},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9534},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9459":{"submorphs":[{"__isSmartRef__":true,"id":9460},{"__isSmartRef__":true,"id":9477}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9493},"derivationIds":[null],"id":"121AD9AD-2B14-4BEB-8C37-D2E52C4DE99B","renderContextTable":{"__isSmartRef__":true,"id":9498},"eventHandler":{"__isSmartRef__":true,"id":9499},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9500},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"grabbingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9460},"text":{"__isSmartRef__":true,"id":9477},"owner":{"__isSmartRef__":true,"id":9458},"_Position":{"__isSmartRef__":true,"id":9501},"priorExtent":{"__isSmartRef__":true,"id":9502},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9503},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9460":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9461},"derivationIds":[null],"id":"8944E731-F049-40DA-BE37-31EF1A0FAAF5","renderContextTable":{"__isSmartRef__":true,"id":9467},"eventHandler":{"__isSmartRef__":true,"id":9468},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9469},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9470},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9461":{"_Position":{"__isSmartRef__":true,"id":9462},"renderContextTable":{"__isSmartRef__":true,"id":9463},"_Extent":{"__isSmartRef__":true,"id":9464},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9465},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9466},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9462":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9463":{"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"},"9464":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9465":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9466":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9467":{"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"},"9468":{"morph":{"__isSmartRef__":true,"id":9460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9469":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9470":{"toggle":{"__isSmartRef__":true,"id":9471},"toggleExpansion":{"__isSmartRef__":true,"id":9474}},"9471":{"varMapping":{"__isSmartRef__":true,"id":9472},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9472":{"this":{"__isSmartRef__":true,"id":9460}},"9473":{},"9474":{"varMapping":{"__isSmartRef__":true,"id":9475},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9475":{"this":{"__isSmartRef__":true,"id":9460}},"9476":{},"9477":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9478},"derivationIds":[null],"id":"63C33581-9282-4463-AB8F-87386F03475E","renderContextTable":{"__isSmartRef__":true,"id":9482},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9483},{"__isSmartRef__":true,"id":9485}],"eventHandler":{"__isSmartRef__":true,"id":9487},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9488},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9489},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9478":{"_Position":{"__isSmartRef__":true,"id":9479},"renderContextTable":{"__isSmartRef__":true,"id":9480},"_Extent":{"__isSmartRef__":true,"id":9481},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9479":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9480":{"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"},"9481":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9482":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9483":{"style":{"__isSmartRef__":true,"id":9484},"chunkOwner":{"__isSmartRef__":true,"id":9477},"storedString":"grabbingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9484":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9485":{"style":{"__isSmartRef__":true,"id":9486},"chunkOwner":{"__isSmartRef__":true,"id":9477},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9486":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9487":{"morph":{"__isSmartRef__":true,"id":9477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9488":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9489":{"layoutText":{"__isSmartRef__":true,"id":9490}},"9490":{"varMapping":{"__isSmartRef__":true,"id":9491},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9491":{"this":{"__isSmartRef__":true,"id":9477}},"9492":{},"9493":{"_Position":{"__isSmartRef__":true,"id":9494},"renderContextTable":{"__isSmartRef__":true,"id":9495},"_Extent":{"__isSmartRef__":true,"id":9496},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9497},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9494":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9495":{"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"},"9496":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9497":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9498":{"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"},"9499":{"morph":{"__isSmartRef__":true,"id":9459},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9500":{"resizeWidth":true},"9501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9502":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9503":{"updateExpanderColor":{"__isSmartRef__":true,"id":9504},"onMouseDown":{"__isSmartRef__":true,"id":9507},"isRoot":{"__isSmartRef__":true,"id":9514},"displayValue":{"__isSmartRef__":true,"id":9517},"update":{"__isSmartRef__":true,"id":9520}},"9504":{"varMapping":{"__isSmartRef__":true,"id":9505},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9505":{"this":{"__isSmartRef__":true,"id":9459}},"9506":{},"9507":{"varMapping":{"__isSmartRef__":true,"id":9508},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9508":{"this":{"__isSmartRef__":true,"id":9459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9509}},"9509":{"$super":{"__isSmartRef__":true,"id":9510}},"9510":{"varMapping":{"__isSmartRef__":true,"id":9511},"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":9512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9511":{"obj":{"__isSmartRef__":true,"id":9459},"name":"onMouseDown"},"9512":{},"9513":{},"9514":{"varMapping":{"__isSmartRef__":true,"id":9515},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9515":{"this":{"__isSmartRef__":true,"id":9459}},"9516":{},"9517":{"varMapping":{"__isSmartRef__":true,"id":9518},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9518":{"this":{"__isSmartRef__":true,"id":9459}},"9519":{},"9520":{"varMapping":{"__isSmartRef__":true,"id":9521},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9521":{"this":{"__isSmartRef__":true,"id":9459}},"9522":{},"9523":{"_Position":{"__isSmartRef__":true,"id":9524},"renderContextTable":{"__isSmartRef__":true,"id":9525},"_Extent":{"__isSmartRef__":true,"id":9526},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9527},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9524":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9525":{"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"},"9526":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9527":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9528":{"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"},"9529":{"morph":{"__isSmartRef__":true,"id":9458},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9530":{"layouter":{"__isSmartRef__":true,"id":9531},"resizeWidth":true},"9531":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9458},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9532":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9533":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9534":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9535}},"9535":{"varMapping":{"__isSmartRef__":true,"id":9536},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9536":{"this":{"__isSmartRef__":true,"id":9458},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9537}},"9537":{"$super":{"__isSmartRef__":true,"id":9538}},"9538":{"varMapping":{"__isSmartRef__":true,"id":9539},"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":9540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9539":{"obj":{"__isSmartRef__":true,"id":9458},"name":"getLayoutableSubmorphs"},"9540":{},"9541":{},"9542":{"submorphs":[{"__isSmartRef__":true,"id":9543}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9607},"derivationIds":[null],"id":"70FD7F4C-1125-41EB-B4AB-3FA1D86853A2","renderContextTable":{"__isSmartRef__":true,"id":9612},"eventHandler":{"__isSmartRef__":true,"id":9613},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9614},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9616},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9617},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9618},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9543":{"submorphs":[{"__isSmartRef__":true,"id":9544},{"__isSmartRef__":true,"id":9561}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9577},"derivationIds":[null],"id":"4622A0DA-0A3B-4B22-8C42-70AA95649680","renderContextTable":{"__isSmartRef__":true,"id":9582},"eventHandler":{"__isSmartRef__":true,"id":9583},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9584},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"halos","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9544},"text":{"__isSmartRef__":true,"id":9561},"owner":{"__isSmartRef__":true,"id":9542},"_Position":{"__isSmartRef__":true,"id":9585},"priorExtent":{"__isSmartRef__":true,"id":9586},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9587},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9544":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9545},"derivationIds":[null],"id":"991A5DA9-9430-4A8A-9CB8-754035FD9C01","renderContextTable":{"__isSmartRef__":true,"id":9551},"eventHandler":{"__isSmartRef__":true,"id":9552},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9553},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9554},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9545":{"_Position":{"__isSmartRef__":true,"id":9546},"renderContextTable":{"__isSmartRef__":true,"id":9547},"_Extent":{"__isSmartRef__":true,"id":9548},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9549},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9550},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9546":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9547":{"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"},"9548":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9549":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9550":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9551":{"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"},"9552":{"morph":{"__isSmartRef__":true,"id":9544},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9553":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9554":{"toggle":{"__isSmartRef__":true,"id":9555},"toggleExpansion":{"__isSmartRef__":true,"id":9558}},"9555":{"varMapping":{"__isSmartRef__":true,"id":9556},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9556":{"this":{"__isSmartRef__":true,"id":9544}},"9557":{},"9558":{"varMapping":{"__isSmartRef__":true,"id":9559},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9559":{"this":{"__isSmartRef__":true,"id":9544}},"9560":{},"9561":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9562},"derivationIds":[null],"id":"62EDCB0A-77A7-41AF-A8FD-4348146CED45","renderContextTable":{"__isSmartRef__":true,"id":9566},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9567},{"__isSmartRef__":true,"id":9569}],"eventHandler":{"__isSmartRef__":true,"id":9571},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9572},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9573},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9562":{"_Position":{"__isSmartRef__":true,"id":9563},"renderContextTable":{"__isSmartRef__":true,"id":9564},"_Extent":{"__isSmartRef__":true,"id":9565},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9563":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9564":{"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"},"9565":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9566":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9567":{"style":{"__isSmartRef__":true,"id":9568},"chunkOwner":{"__isSmartRef__":true,"id":9561},"storedString":"halos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9568":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9569":{"style":{"__isSmartRef__":true,"id":9570},"chunkOwner":{"__isSmartRef__":true,"id":9561},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9570":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9571":{"morph":{"__isSmartRef__":true,"id":9561},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9572":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9573":{"layoutText":{"__isSmartRef__":true,"id":9574}},"9574":{"varMapping":{"__isSmartRef__":true,"id":9575},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9575":{"this":{"__isSmartRef__":true,"id":9561}},"9576":{},"9577":{"_Position":{"__isSmartRef__":true,"id":9578},"renderContextTable":{"__isSmartRef__":true,"id":9579},"_Extent":{"__isSmartRef__":true,"id":9580},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9581},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9578":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9579":{"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"},"9580":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9581":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9582":{"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"},"9583":{"morph":{"__isSmartRef__":true,"id":9543},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9584":{"resizeWidth":true},"9585":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9586":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9587":{"updateExpanderColor":{"__isSmartRef__":true,"id":9588},"onMouseDown":{"__isSmartRef__":true,"id":9591},"isRoot":{"__isSmartRef__":true,"id":9598},"displayValue":{"__isSmartRef__":true,"id":9601},"update":{"__isSmartRef__":true,"id":9604}},"9588":{"varMapping":{"__isSmartRef__":true,"id":9589},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9589":{"this":{"__isSmartRef__":true,"id":9543}},"9590":{},"9591":{"varMapping":{"__isSmartRef__":true,"id":9592},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9592":{"this":{"__isSmartRef__":true,"id":9543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9593}},"9593":{"$super":{"__isSmartRef__":true,"id":9594}},"9594":{"varMapping":{"__isSmartRef__":true,"id":9595},"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":9596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9595":{"obj":{"__isSmartRef__":true,"id":9543},"name":"onMouseDown"},"9596":{},"9597":{},"9598":{"varMapping":{"__isSmartRef__":true,"id":9599},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9599":{"this":{"__isSmartRef__":true,"id":9543}},"9600":{},"9601":{"varMapping":{"__isSmartRef__":true,"id":9602},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9602":{"this":{"__isSmartRef__":true,"id":9543}},"9603":{},"9604":{"varMapping":{"__isSmartRef__":true,"id":9605},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9605":{"this":{"__isSmartRef__":true,"id":9543}},"9606":{},"9607":{"_Position":{"__isSmartRef__":true,"id":9608},"renderContextTable":{"__isSmartRef__":true,"id":9609},"_Extent":{"__isSmartRef__":true,"id":9610},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9611},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9608":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9609":{"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"},"9610":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9611":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9612":{"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"},"9613":{"morph":{"__isSmartRef__":true,"id":9542},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9614":{"layouter":{"__isSmartRef__":true,"id":9615},"resizeWidth":true},"9615":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9542},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9616":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9617":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9618":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9619}},"9619":{"varMapping":{"__isSmartRef__":true,"id":9620},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9620":{"this":{"__isSmartRef__":true,"id":9542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9621}},"9621":{"$super":{"__isSmartRef__":true,"id":9622}},"9622":{"varMapping":{"__isSmartRef__":true,"id":9623},"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":9624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9623":{"obj":{"__isSmartRef__":true,"id":9542},"name":"getLayoutableSubmorphs"},"9624":{},"9625":{},"9626":{"submorphs":[{"__isSmartRef__":true,"id":9627}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9691},"derivationIds":[null],"id":"E01CFEE3-2F02-4E8D-9071-F2BF54CDDC9A","renderContextTable":{"__isSmartRef__":true,"id":9696},"eventHandler":{"__isSmartRef__":true,"id":9697},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9698},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9700},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9701},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9702},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9627":{"submorphs":[{"__isSmartRef__":true,"id":9628},{"__isSmartRef__":true,"id":9645}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9661},"derivationIds":[null],"id":"564CBD26-621C-4120-A5B3-DB6E48D5A02D","renderContextTable":{"__isSmartRef__":true,"id":9666},"eventHandler":{"__isSmartRef__":true,"id":9667},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9668},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"halosEnabled","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9628},"text":{"__isSmartRef__":true,"id":9645},"owner":{"__isSmartRef__":true,"id":9626},"_Position":{"__isSmartRef__":true,"id":9669},"priorExtent":{"__isSmartRef__":true,"id":9670},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9671},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9628":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9629},"derivationIds":[null],"id":"A5B888BA-462E-4498-B9A8-B1EA8E41B535","renderContextTable":{"__isSmartRef__":true,"id":9635},"eventHandler":{"__isSmartRef__":true,"id":9636},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9637},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9638},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9629":{"_Position":{"__isSmartRef__":true,"id":9630},"renderContextTable":{"__isSmartRef__":true,"id":9631},"_Extent":{"__isSmartRef__":true,"id":9632},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9633},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9634},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9630":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9631":{"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"},"9632":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9633":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9634":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9635":{"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"},"9636":{"morph":{"__isSmartRef__":true,"id":9628},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9637":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9638":{"toggle":{"__isSmartRef__":true,"id":9639},"toggleExpansion":{"__isSmartRef__":true,"id":9642}},"9639":{"varMapping":{"__isSmartRef__":true,"id":9640},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9640":{"this":{"__isSmartRef__":true,"id":9628}},"9641":{},"9642":{"varMapping":{"__isSmartRef__":true,"id":9643},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9643":{"this":{"__isSmartRef__":true,"id":9628}},"9644":{},"9645":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9646},"derivationIds":[null],"id":"EDCE4D07-FA01-4F84-AD0C-85306D23E6B5","renderContextTable":{"__isSmartRef__":true,"id":9650},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9651},{"__isSmartRef__":true,"id":9653}],"eventHandler":{"__isSmartRef__":true,"id":9655},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9656},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9657},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9646":{"_Position":{"__isSmartRef__":true,"id":9647},"renderContextTable":{"__isSmartRef__":true,"id":9648},"_Extent":{"__isSmartRef__":true,"id":9649},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9647":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9648":{"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"},"9649":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9650":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9651":{"style":{"__isSmartRef__":true,"id":9652},"chunkOwner":{"__isSmartRef__":true,"id":9645},"storedString":"halosEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9652":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9653":{"style":{"__isSmartRef__":true,"id":9654},"chunkOwner":{"__isSmartRef__":true,"id":9645},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9654":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9655":{"morph":{"__isSmartRef__":true,"id":9645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9656":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9657":{"layoutText":{"__isSmartRef__":true,"id":9658}},"9658":{"varMapping":{"__isSmartRef__":true,"id":9659},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9659":{"this":{"__isSmartRef__":true,"id":9645}},"9660":{},"9661":{"_Position":{"__isSmartRef__":true,"id":9662},"renderContextTable":{"__isSmartRef__":true,"id":9663},"_Extent":{"__isSmartRef__":true,"id":9664},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9665},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9662":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9663":{"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"},"9664":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9665":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9666":{"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"},"9667":{"morph":{"__isSmartRef__":true,"id":9627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9668":{"resizeWidth":true},"9669":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9670":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9671":{"updateExpanderColor":{"__isSmartRef__":true,"id":9672},"onMouseDown":{"__isSmartRef__":true,"id":9675},"isRoot":{"__isSmartRef__":true,"id":9682},"displayValue":{"__isSmartRef__":true,"id":9685},"update":{"__isSmartRef__":true,"id":9688}},"9672":{"varMapping":{"__isSmartRef__":true,"id":9673},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9673":{"this":{"__isSmartRef__":true,"id":9627}},"9674":{},"9675":{"varMapping":{"__isSmartRef__":true,"id":9676},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9676":{"this":{"__isSmartRef__":true,"id":9627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9677}},"9677":{"$super":{"__isSmartRef__":true,"id":9678}},"9678":{"varMapping":{"__isSmartRef__":true,"id":9679},"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":9680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9679":{"obj":{"__isSmartRef__":true,"id":9627},"name":"onMouseDown"},"9680":{},"9681":{},"9682":{"varMapping":{"__isSmartRef__":true,"id":9683},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9683":{"this":{"__isSmartRef__":true,"id":9627}},"9684":{},"9685":{"varMapping":{"__isSmartRef__":true,"id":9686},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9686":{"this":{"__isSmartRef__":true,"id":9627}},"9687":{},"9688":{"varMapping":{"__isSmartRef__":true,"id":9689},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9689":{"this":{"__isSmartRef__":true,"id":9627}},"9690":{},"9691":{"_Position":{"__isSmartRef__":true,"id":9692},"renderContextTable":{"__isSmartRef__":true,"id":9693},"_Extent":{"__isSmartRef__":true,"id":9694},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9695},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9692":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9693":{"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"},"9694":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9695":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9696":{"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"},"9697":{"morph":{"__isSmartRef__":true,"id":9626},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9698":{"layouter":{"__isSmartRef__":true,"id":9699},"resizeWidth":true},"9699":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9626},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9700":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9701":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9702":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9703}},"9703":{"varMapping":{"__isSmartRef__":true,"id":9704},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9704":{"this":{"__isSmartRef__":true,"id":9626},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9705}},"9705":{"$super":{"__isSmartRef__":true,"id":9706}},"9706":{"varMapping":{"__isSmartRef__":true,"id":9707},"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":9708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9707":{"obj":{"__isSmartRef__":true,"id":9626},"name":"getLayoutableSubmorphs"},"9708":{},"9709":{},"9710":{"submorphs":[{"__isSmartRef__":true,"id":9711}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9775},"derivationIds":[null],"id":"A2512D7E-EA62-464D-BE56-DFBC23BC7B4B","renderContextTable":{"__isSmartRef__":true,"id":9780},"eventHandler":{"__isSmartRef__":true,"id":9781},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9782},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9784},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9785},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9786},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9711":{"submorphs":[{"__isSmartRef__":true,"id":9712},{"__isSmartRef__":true,"id":9729}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9745},"derivationIds":[null],"id":"BEFE8AF2-C5F7-493C-AA0B-18A1E6628D6F","renderContextTable":{"__isSmartRef__":true,"id":9750},"eventHandler":{"__isSmartRef__":true,"id":9751},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9752},"grabbingEnabled":false,"draggingEnabled":false,"data":"E98C62E1-0CDA-487C-B1A5-22D7165CCCE9","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"id","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9712},"text":{"__isSmartRef__":true,"id":9729},"owner":{"__isSmartRef__":true,"id":9710},"_Position":{"__isSmartRef__":true,"id":9753},"priorExtent":{"__isSmartRef__":true,"id":9754},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9755},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9712":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9713},"derivationIds":[null],"id":"FBC6071A-B943-4A1D-8B2F-577B5C010853","renderContextTable":{"__isSmartRef__":true,"id":9719},"eventHandler":{"__isSmartRef__":true,"id":9720},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9721},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9722},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9713":{"_Position":{"__isSmartRef__":true,"id":9714},"renderContextTable":{"__isSmartRef__":true,"id":9715},"_Extent":{"__isSmartRef__":true,"id":9716},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9717},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9718},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9714":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9715":{"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"},"9716":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9717":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9718":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9719":{"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"},"9720":{"morph":{"__isSmartRef__":true,"id":9712},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9721":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9722":{"toggle":{"__isSmartRef__":true,"id":9723},"toggleExpansion":{"__isSmartRef__":true,"id":9726}},"9723":{"varMapping":{"__isSmartRef__":true,"id":9724},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9724":{"this":{"__isSmartRef__":true,"id":9712}},"9725":{},"9726":{"varMapping":{"__isSmartRef__":true,"id":9727},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9727":{"this":{"__isSmartRef__":true,"id":9712}},"9728":{},"9729":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9730},"derivationIds":[null],"id":"709BE832-E1C0-42BC-99EB-60BAD969C2FE","renderContextTable":{"__isSmartRef__":true,"id":9734},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9735},{"__isSmartRef__":true,"id":9737}],"eventHandler":{"__isSmartRef__":true,"id":9739},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9740},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9741},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9730":{"_Position":{"__isSmartRef__":true,"id":9731},"renderContextTable":{"__isSmartRef__":true,"id":9732},"_Extent":{"__isSmartRef__":true,"id":9733},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9731":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9732":{"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"},"9733":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9734":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9735":{"style":{"__isSmartRef__":true,"id":9736},"chunkOwner":{"__isSmartRef__":true,"id":9729},"storedString":"id","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9736":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9737":{"style":{"__isSmartRef__":true,"id":9738},"chunkOwner":{"__isSmartRef__":true,"id":9729},"storedString":": E98C62E1-0CDA-487C-B1A5-22D7165CCCE9","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9738":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9739":{"morph":{"__isSmartRef__":true,"id":9729},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9740":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9741":{"layoutText":{"__isSmartRef__":true,"id":9742}},"9742":{"varMapping":{"__isSmartRef__":true,"id":9743},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9743":{"this":{"__isSmartRef__":true,"id":9729}},"9744":{},"9745":{"_Position":{"__isSmartRef__":true,"id":9746},"renderContextTable":{"__isSmartRef__":true,"id":9747},"_Extent":{"__isSmartRef__":true,"id":9748},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9749},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9746":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9747":{"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"},"9748":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9749":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9750":{"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"},"9751":{"morph":{"__isSmartRef__":true,"id":9711},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9752":{"resizeWidth":true},"9753":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9754":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9755":{"updateExpanderColor":{"__isSmartRef__":true,"id":9756},"onMouseDown":{"__isSmartRef__":true,"id":9759},"isRoot":{"__isSmartRef__":true,"id":9766},"displayValue":{"__isSmartRef__":true,"id":9769},"update":{"__isSmartRef__":true,"id":9772}},"9756":{"varMapping":{"__isSmartRef__":true,"id":9757},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9757":{"this":{"__isSmartRef__":true,"id":9711}},"9758":{},"9759":{"varMapping":{"__isSmartRef__":true,"id":9760},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9760":{"this":{"__isSmartRef__":true,"id":9711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9761}},"9761":{"$super":{"__isSmartRef__":true,"id":9762}},"9762":{"varMapping":{"__isSmartRef__":true,"id":9763},"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":9764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9763":{"obj":{"__isSmartRef__":true,"id":9711},"name":"onMouseDown"},"9764":{},"9765":{},"9766":{"varMapping":{"__isSmartRef__":true,"id":9767},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9767":{"this":{"__isSmartRef__":true,"id":9711}},"9768":{},"9769":{"varMapping":{"__isSmartRef__":true,"id":9770},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9770":{"this":{"__isSmartRef__":true,"id":9711}},"9771":{},"9772":{"varMapping":{"__isSmartRef__":true,"id":9773},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9773":{"this":{"__isSmartRef__":true,"id":9711}},"9774":{},"9775":{"_Position":{"__isSmartRef__":true,"id":9776},"renderContextTable":{"__isSmartRef__":true,"id":9777},"_Extent":{"__isSmartRef__":true,"id":9778},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9779},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9776":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9777":{"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"},"9778":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9779":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9780":{"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"},"9781":{"morph":{"__isSmartRef__":true,"id":9710},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9782":{"layouter":{"__isSmartRef__":true,"id":9783},"resizeWidth":true},"9783":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9710},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9784":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9785":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9786":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9787}},"9787":{"varMapping":{"__isSmartRef__":true,"id":9788},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9788":{"this":{"__isSmartRef__":true,"id":9710},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9789}},"9789":{"$super":{"__isSmartRef__":true,"id":9790}},"9790":{"varMapping":{"__isSmartRef__":true,"id":9791},"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":9792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9791":{"obj":{"__isSmartRef__":true,"id":9710},"name":"getLayoutableSubmorphs"},"9792":{},"9793":{},"9794":{"submorphs":[{"__isSmartRef__":true,"id":9795}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9859},"derivationIds":[null],"id":"94793BA8-8206-4BBF-B199-128A6127A60E","renderContextTable":{"__isSmartRef__":true,"id":9864},"eventHandler":{"__isSmartRef__":true,"id":9865},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9866},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9868},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9869},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9870},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9795":{"submorphs":[{"__isSmartRef__":true,"id":9796},{"__isSmartRef__":true,"id":9813}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9829},"derivationIds":[null],"id":"26B16048-A9C3-41A0-AD20-9CFBA2A70DB0","renderContextTable":{"__isSmartRef__":true,"id":9834},"eventHandler":{"__isSmartRef__":true,"id":9835},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9836},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"isBeingDragged","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9796},"text":{"__isSmartRef__":true,"id":9813},"owner":{"__isSmartRef__":true,"id":9794},"_Position":{"__isSmartRef__":true,"id":9837},"priorExtent":{"__isSmartRef__":true,"id":9838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9839},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9796":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9797},"derivationIds":[null],"id":"55752B93-1E7F-4135-87DB-90587FA08FE3","renderContextTable":{"__isSmartRef__":true,"id":9803},"eventHandler":{"__isSmartRef__":true,"id":9804},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9805},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9806},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9797":{"_Position":{"__isSmartRef__":true,"id":9798},"renderContextTable":{"__isSmartRef__":true,"id":9799},"_Extent":{"__isSmartRef__":true,"id":9800},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9801},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9802},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9798":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9799":{"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"},"9800":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9801":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9802":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9803":{"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"},"9804":{"morph":{"__isSmartRef__":true,"id":9796},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9805":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9806":{"toggle":{"__isSmartRef__":true,"id":9807},"toggleExpansion":{"__isSmartRef__":true,"id":9810}},"9807":{"varMapping":{"__isSmartRef__":true,"id":9808},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9808":{"this":{"__isSmartRef__":true,"id":9796}},"9809":{},"9810":{"varMapping":{"__isSmartRef__":true,"id":9811},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9811":{"this":{"__isSmartRef__":true,"id":9796}},"9812":{},"9813":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9814},"derivationIds":[null],"id":"D0DB4781-A49B-4C69-AE8C-66504DAAFCDA","renderContextTable":{"__isSmartRef__":true,"id":9818},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9819},{"__isSmartRef__":true,"id":9821}],"eventHandler":{"__isSmartRef__":true,"id":9823},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9824},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9825},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9814":{"_Position":{"__isSmartRef__":true,"id":9815},"renderContextTable":{"__isSmartRef__":true,"id":9816},"_Extent":{"__isSmartRef__":true,"id":9817},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9815":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9816":{"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"},"9817":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9818":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9819":{"style":{"__isSmartRef__":true,"id":9820},"chunkOwner":{"__isSmartRef__":true,"id":9813},"storedString":"isBeingDragged","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9820":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9821":{"style":{"__isSmartRef__":true,"id":9822},"chunkOwner":{"__isSmartRef__":true,"id":9813},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9822":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9823":{"morph":{"__isSmartRef__":true,"id":9813},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9824":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9825":{"layoutText":{"__isSmartRef__":true,"id":9826}},"9826":{"varMapping":{"__isSmartRef__":true,"id":9827},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9827":{"this":{"__isSmartRef__":true,"id":9813}},"9828":{},"9829":{"_Position":{"__isSmartRef__":true,"id":9830},"renderContextTable":{"__isSmartRef__":true,"id":9831},"_Extent":{"__isSmartRef__":true,"id":9832},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9833},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9830":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9831":{"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"},"9832":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9833":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9834":{"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"},"9835":{"morph":{"__isSmartRef__":true,"id":9795},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9836":{"resizeWidth":true},"9837":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9838":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9839":{"updateExpanderColor":{"__isSmartRef__":true,"id":9840},"onMouseDown":{"__isSmartRef__":true,"id":9843},"isRoot":{"__isSmartRef__":true,"id":9850},"displayValue":{"__isSmartRef__":true,"id":9853},"update":{"__isSmartRef__":true,"id":9856}},"9840":{"varMapping":{"__isSmartRef__":true,"id":9841},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9841":{"this":{"__isSmartRef__":true,"id":9795}},"9842":{},"9843":{"varMapping":{"__isSmartRef__":true,"id":9844},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9844":{"this":{"__isSmartRef__":true,"id":9795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9845}},"9845":{"$super":{"__isSmartRef__":true,"id":9846}},"9846":{"varMapping":{"__isSmartRef__":true,"id":9847},"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":9848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9847":{"obj":{"__isSmartRef__":true,"id":9795},"name":"onMouseDown"},"9848":{},"9849":{},"9850":{"varMapping":{"__isSmartRef__":true,"id":9851},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9851":{"this":{"__isSmartRef__":true,"id":9795}},"9852":{},"9853":{"varMapping":{"__isSmartRef__":true,"id":9854},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9854":{"this":{"__isSmartRef__":true,"id":9795}},"9855":{},"9856":{"varMapping":{"__isSmartRef__":true,"id":9857},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9857":{"this":{"__isSmartRef__":true,"id":9795}},"9858":{},"9859":{"_Position":{"__isSmartRef__":true,"id":9860},"renderContextTable":{"__isSmartRef__":true,"id":9861},"_Extent":{"__isSmartRef__":true,"id":9862},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9863},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9860":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9861":{"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"},"9862":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9863":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9864":{"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"},"9865":{"morph":{"__isSmartRef__":true,"id":9794},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9866":{"layouter":{"__isSmartRef__":true,"id":9867},"resizeWidth":true},"9867":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9794},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9868":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9869":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9870":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9871}},"9871":{"varMapping":{"__isSmartRef__":true,"id":9872},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9872":{"this":{"__isSmartRef__":true,"id":9794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9873}},"9873":{"$super":{"__isSmartRef__":true,"id":9874}},"9874":{"varMapping":{"__isSmartRef__":true,"id":9875},"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":9876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9875":{"obj":{"__isSmartRef__":true,"id":9794},"name":"getLayoutableSubmorphs"},"9876":{},"9877":{},"9878":{"submorphs":[{"__isSmartRef__":true,"id":9879}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9943},"derivationIds":[null],"id":"1F761312-811F-4E10-A111-9B9559643542","renderContextTable":{"__isSmartRef__":true,"id":9948},"eventHandler":{"__isSmartRef__":true,"id":9949},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9950},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9952},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":9953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9954},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9879":{"submorphs":[{"__isSmartRef__":true,"id":9880},{"__isSmartRef__":true,"id":9897}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9913},"derivationIds":[null],"id":"1985B030-E890-4D54-8864-56E8314C60AC","renderContextTable":{"__isSmartRef__":true,"id":9918},"eventHandler":{"__isSmartRef__":true,"id":9919},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9920},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"isCopyMorphRef","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9880},"text":{"__isSmartRef__":true,"id":9897},"owner":{"__isSmartRef__":true,"id":9878},"_Position":{"__isSmartRef__":true,"id":9921},"priorExtent":{"__isSmartRef__":true,"id":9922},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9923},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9880":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9881},"derivationIds":[null],"id":"5E6FDA41-2CB4-4801-9654-B75B9AFE4D78","renderContextTable":{"__isSmartRef__":true,"id":9887},"eventHandler":{"__isSmartRef__":true,"id":9888},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9889},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9879},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9890},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9881":{"_Position":{"__isSmartRef__":true,"id":9882},"renderContextTable":{"__isSmartRef__":true,"id":9883},"_Extent":{"__isSmartRef__":true,"id":9884},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9885},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9886},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9882":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9883":{"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"},"9884":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9885":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9886":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9887":{"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"},"9888":{"morph":{"__isSmartRef__":true,"id":9880},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9889":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9890":{"toggle":{"__isSmartRef__":true,"id":9891},"toggleExpansion":{"__isSmartRef__":true,"id":9894}},"9891":{"varMapping":{"__isSmartRef__":true,"id":9892},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9892":{"this":{"__isSmartRef__":true,"id":9880}},"9893":{},"9894":{"varMapping":{"__isSmartRef__":true,"id":9895},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9895":{"this":{"__isSmartRef__":true,"id":9880}},"9896":{},"9897":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9898},"derivationIds":[null],"id":"F2490B66-6BFB-44C7-B448-FC3481BACCD4","renderContextTable":{"__isSmartRef__":true,"id":9902},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9903},{"__isSmartRef__":true,"id":9905}],"eventHandler":{"__isSmartRef__":true,"id":9907},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9908},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9879},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9909},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9898":{"_Position":{"__isSmartRef__":true,"id":9899},"renderContextTable":{"__isSmartRef__":true,"id":9900},"_Extent":{"__isSmartRef__":true,"id":9901},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9899":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9900":{"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"},"9901":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9902":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9903":{"style":{"__isSmartRef__":true,"id":9904},"chunkOwner":{"__isSmartRef__":true,"id":9897},"storedString":"isCopyMorphRef","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9904":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9905":{"style":{"__isSmartRef__":true,"id":9906},"chunkOwner":{"__isSmartRef__":true,"id":9897},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9906":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9907":{"morph":{"__isSmartRef__":true,"id":9897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9908":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9909":{"layoutText":{"__isSmartRef__":true,"id":9910}},"9910":{"varMapping":{"__isSmartRef__":true,"id":9911},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9911":{"this":{"__isSmartRef__":true,"id":9897}},"9912":{},"9913":{"_Position":{"__isSmartRef__":true,"id":9914},"renderContextTable":{"__isSmartRef__":true,"id":9915},"_Extent":{"__isSmartRef__":true,"id":9916},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9917},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9914":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9915":{"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"},"9916":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9917":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9918":{"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"},"9919":{"morph":{"__isSmartRef__":true,"id":9879},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9920":{"resizeWidth":true},"9921":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9922":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9923":{"updateExpanderColor":{"__isSmartRef__":true,"id":9924},"onMouseDown":{"__isSmartRef__":true,"id":9927},"isRoot":{"__isSmartRef__":true,"id":9934},"displayValue":{"__isSmartRef__":true,"id":9937},"update":{"__isSmartRef__":true,"id":9940}},"9924":{"varMapping":{"__isSmartRef__":true,"id":9925},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9925":{"this":{"__isSmartRef__":true,"id":9879}},"9926":{},"9927":{"varMapping":{"__isSmartRef__":true,"id":9928},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9928":{"this":{"__isSmartRef__":true,"id":9879},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9929}},"9929":{"$super":{"__isSmartRef__":true,"id":9930}},"9930":{"varMapping":{"__isSmartRef__":true,"id":9931},"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":9932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9931":{"obj":{"__isSmartRef__":true,"id":9879},"name":"onMouseDown"},"9932":{},"9933":{},"9934":{"varMapping":{"__isSmartRef__":true,"id":9935},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9935":{"this":{"__isSmartRef__":true,"id":9879}},"9936":{},"9937":{"varMapping":{"__isSmartRef__":true,"id":9938},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9938":{"this":{"__isSmartRef__":true,"id":9879}},"9939":{},"9940":{"varMapping":{"__isSmartRef__":true,"id":9941},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9941":{"this":{"__isSmartRef__":true,"id":9879}},"9942":{},"9943":{"_Position":{"__isSmartRef__":true,"id":9944},"renderContextTable":{"__isSmartRef__":true,"id":9945},"_Extent":{"__isSmartRef__":true,"id":9946},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9947},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9944":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9945":{"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"},"9946":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9947":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9948":{"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"},"9949":{"morph":{"__isSmartRef__":true,"id":9878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9950":{"layouter":{"__isSmartRef__":true,"id":9951},"resizeWidth":true},"9951":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9878},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9952":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9953":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9954":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9955}},"9955":{"varMapping":{"__isSmartRef__":true,"id":9956},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9956":{"this":{"__isSmartRef__":true,"id":9878},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9957}},"9957":{"$super":{"__isSmartRef__":true,"id":9958}},"9958":{"varMapping":{"__isSmartRef__":true,"id":9959},"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":9960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9959":{"obj":{"__isSmartRef__":true,"id":9878},"name":"getLayoutableSubmorphs"},"9960":{},"9961":{},"9962":{"submorphs":[{"__isSmartRef__":true,"id":9963}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10027},"derivationIds":[null],"id":"80A68213-1227-438F-955F-C67ED9555005","renderContextTable":{"__isSmartRef__":true,"id":10032},"eventHandler":{"__isSmartRef__":true,"id":10033},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10034},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10036},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10037},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10038},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9963":{"submorphs":[{"__isSmartRef__":true,"id":9964},{"__isSmartRef__":true,"id":9981}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9997},"derivationIds":[null],"id":"4E733B8E-63CE-4DBC-824C-09E61C3065EB","renderContextTable":{"__isSmartRef__":true,"id":10002},"eventHandler":{"__isSmartRef__":true,"id":10003},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10004},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"isLockOwner","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":9964},"text":{"__isSmartRef__":true,"id":9981},"owner":{"__isSmartRef__":true,"id":9962},"_Position":{"__isSmartRef__":true,"id":10005},"priorExtent":{"__isSmartRef__":true,"id":10006},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10007},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9964":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9965},"derivationIds":[null],"id":"895F6B2C-053A-4BBE-8481-A52955D532C8","renderContextTable":{"__isSmartRef__":true,"id":9971},"eventHandler":{"__isSmartRef__":true,"id":9972},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9973},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9974},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9965":{"_Position":{"__isSmartRef__":true,"id":9966},"renderContextTable":{"__isSmartRef__":true,"id":9967},"_Extent":{"__isSmartRef__":true,"id":9968},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9969},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":9970},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9966":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9967":{"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"},"9968":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9969":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9970":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9971":{"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"},"9972":{"morph":{"__isSmartRef__":true,"id":9964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9973":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9974":{"toggle":{"__isSmartRef__":true,"id":9975},"toggleExpansion":{"__isSmartRef__":true,"id":9978}},"9975":{"varMapping":{"__isSmartRef__":true,"id":9976},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9976":{"this":{"__isSmartRef__":true,"id":9964}},"9977":{},"9978":{"varMapping":{"__isSmartRef__":true,"id":9979},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9979":{"this":{"__isSmartRef__":true,"id":9964}},"9980":{},"9981":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9982},"derivationIds":[null],"id":"24FC9B45-F8CB-4D54-A81B-0B2C210DE83C","renderContextTable":{"__isSmartRef__":true,"id":9986},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9987},{"__isSmartRef__":true,"id":9989}],"eventHandler":{"__isSmartRef__":true,"id":9991},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":9992},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":9963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9993},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9982":{"_Position":{"__isSmartRef__":true,"id":9983},"renderContextTable":{"__isSmartRef__":true,"id":9984},"_Extent":{"__isSmartRef__":true,"id":9985},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9983":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9984":{"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"},"9985":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9986":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9987":{"style":{"__isSmartRef__":true,"id":9988},"chunkOwner":{"__isSmartRef__":true,"id":9981},"storedString":"isLockOwner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9988":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9989":{"style":{"__isSmartRef__":true,"id":9990},"chunkOwner":{"__isSmartRef__":true,"id":9981},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9990":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9991":{"morph":{"__isSmartRef__":true,"id":9981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9992":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9993":{"layoutText":{"__isSmartRef__":true,"id":9994}},"9994":{"varMapping":{"__isSmartRef__":true,"id":9995},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":9996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9995":{"this":{"__isSmartRef__":true,"id":9981}},"9996":{},"9997":{"_Position":{"__isSmartRef__":true,"id":9998},"renderContextTable":{"__isSmartRef__":true,"id":9999},"_Extent":{"__isSmartRef__":true,"id":10000},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10001},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9998":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9999":{"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"},"10000":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10001":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10002":{"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"},"10003":{"morph":{"__isSmartRef__":true,"id":9963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10004":{"resizeWidth":true},"10005":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10006":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10007":{"updateExpanderColor":{"__isSmartRef__":true,"id":10008},"onMouseDown":{"__isSmartRef__":true,"id":10011},"isRoot":{"__isSmartRef__":true,"id":10018},"displayValue":{"__isSmartRef__":true,"id":10021},"update":{"__isSmartRef__":true,"id":10024}},"10008":{"varMapping":{"__isSmartRef__":true,"id":10009},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10009":{"this":{"__isSmartRef__":true,"id":9963}},"10010":{},"10011":{"varMapping":{"__isSmartRef__":true,"id":10012},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10012":{"this":{"__isSmartRef__":true,"id":9963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10013}},"10013":{"$super":{"__isSmartRef__":true,"id":10014}},"10014":{"varMapping":{"__isSmartRef__":true,"id":10015},"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":10016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10015":{"obj":{"__isSmartRef__":true,"id":9963},"name":"onMouseDown"},"10016":{},"10017":{},"10018":{"varMapping":{"__isSmartRef__":true,"id":10019},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10019":{"this":{"__isSmartRef__":true,"id":9963}},"10020":{},"10021":{"varMapping":{"__isSmartRef__":true,"id":10022},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10022":{"this":{"__isSmartRef__":true,"id":9963}},"10023":{},"10024":{"varMapping":{"__isSmartRef__":true,"id":10025},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10025":{"this":{"__isSmartRef__":true,"id":9963}},"10026":{},"10027":{"_Position":{"__isSmartRef__":true,"id":10028},"renderContextTable":{"__isSmartRef__":true,"id":10029},"_Extent":{"__isSmartRef__":true,"id":10030},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10031},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10028":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10029":{"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"},"10030":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10031":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10032":{"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"},"10033":{"morph":{"__isSmartRef__":true,"id":9962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10034":{"layouter":{"__isSmartRef__":true,"id":10035},"resizeWidth":true},"10035":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9962},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10037":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10038":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10039}},"10039":{"varMapping":{"__isSmartRef__":true,"id":10040},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10040":{"this":{"__isSmartRef__":true,"id":9962},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10041}},"10041":{"$super":{"__isSmartRef__":true,"id":10042}},"10042":{"varMapping":{"__isSmartRef__":true,"id":10043},"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":10044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10043":{"obj":{"__isSmartRef__":true,"id":9962},"name":"getLayoutableSubmorphs"},"10044":{},"10045":{},"10046":{"submorphs":[{"__isSmartRef__":true,"id":10047}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10111},"derivationIds":[null],"id":"E1FF5316-861F-49CD-AAE9-DC5F088AF261","renderContextTable":{"__isSmartRef__":true,"id":10116},"eventHandler":{"__isSmartRef__":true,"id":10117},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10118},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10120},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10122},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10047":{"submorphs":[{"__isSmartRef__":true,"id":10048},{"__isSmartRef__":true,"id":10065}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10081},"derivationIds":[null],"id":"4089291A-9DC0-4B37-AC93-812FBEB493FB","renderContextTable":{"__isSmartRef__":true,"id":10086},"eventHandler":{"__isSmartRef__":true,"id":10087},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10088},"grabbingEnabled":false,"draggingEnabled":false,"data":158,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"lastFindLoc","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10048},"text":{"__isSmartRef__":true,"id":10065},"owner":{"__isSmartRef__":true,"id":10046},"_Position":{"__isSmartRef__":true,"id":10089},"priorExtent":{"__isSmartRef__":true,"id":10090},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10091},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10048":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10049},"derivationIds":[null],"id":"E3F0DC1D-6B48-4991-8610-42091DF0F2F8","renderContextTable":{"__isSmartRef__":true,"id":10055},"eventHandler":{"__isSmartRef__":true,"id":10056},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10057},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10047},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10058},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10049":{"_Position":{"__isSmartRef__":true,"id":10050},"renderContextTable":{"__isSmartRef__":true,"id":10051},"_Extent":{"__isSmartRef__":true,"id":10052},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10053},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10054},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10050":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10051":{"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"},"10052":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10053":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10054":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10055":{"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"},"10056":{"morph":{"__isSmartRef__":true,"id":10048},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10057":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10058":{"toggle":{"__isSmartRef__":true,"id":10059},"toggleExpansion":{"__isSmartRef__":true,"id":10062}},"10059":{"varMapping":{"__isSmartRef__":true,"id":10060},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10060":{"this":{"__isSmartRef__":true,"id":10048}},"10061":{},"10062":{"varMapping":{"__isSmartRef__":true,"id":10063},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10063":{"this":{"__isSmartRef__":true,"id":10048}},"10064":{},"10065":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10066},"derivationIds":[null],"id":"FB5CE705-6B42-4F5E-8E7F-576F710BBFBD","renderContextTable":{"__isSmartRef__":true,"id":10070},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10071},{"__isSmartRef__":true,"id":10073}],"eventHandler":{"__isSmartRef__":true,"id":10075},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10076},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10047},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10077},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10066":{"_Position":{"__isSmartRef__":true,"id":10067},"renderContextTable":{"__isSmartRef__":true,"id":10068},"_Extent":{"__isSmartRef__":true,"id":10069},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10067":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10068":{"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"},"10069":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10070":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10071":{"style":{"__isSmartRef__":true,"id":10072},"chunkOwner":{"__isSmartRef__":true,"id":10065},"storedString":"lastFindLoc","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10072":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10073":{"style":{"__isSmartRef__":true,"id":10074},"chunkOwner":{"__isSmartRef__":true,"id":10065},"storedString":": 158","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10074":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10075":{"morph":{"__isSmartRef__":true,"id":10065},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10076":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10077":{"layoutText":{"__isSmartRef__":true,"id":10078}},"10078":{"varMapping":{"__isSmartRef__":true,"id":10079},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10079":{"this":{"__isSmartRef__":true,"id":10065}},"10080":{},"10081":{"_Position":{"__isSmartRef__":true,"id":10082},"renderContextTable":{"__isSmartRef__":true,"id":10083},"_Extent":{"__isSmartRef__":true,"id":10084},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10085},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10082":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10083":{"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"},"10084":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10085":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10086":{"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"},"10087":{"morph":{"__isSmartRef__":true,"id":10047},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10088":{"resizeWidth":true},"10089":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10090":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10091":{"updateExpanderColor":{"__isSmartRef__":true,"id":10092},"onMouseDown":{"__isSmartRef__":true,"id":10095},"isRoot":{"__isSmartRef__":true,"id":10102},"displayValue":{"__isSmartRef__":true,"id":10105},"update":{"__isSmartRef__":true,"id":10108}},"10092":{"varMapping":{"__isSmartRef__":true,"id":10093},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10093":{"this":{"__isSmartRef__":true,"id":10047}},"10094":{},"10095":{"varMapping":{"__isSmartRef__":true,"id":10096},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10096":{"this":{"__isSmartRef__":true,"id":10047},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10097}},"10097":{"$super":{"__isSmartRef__":true,"id":10098}},"10098":{"varMapping":{"__isSmartRef__":true,"id":10099},"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":10100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10099":{"obj":{"__isSmartRef__":true,"id":10047},"name":"onMouseDown"},"10100":{},"10101":{},"10102":{"varMapping":{"__isSmartRef__":true,"id":10103},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10103":{"this":{"__isSmartRef__":true,"id":10047}},"10104":{},"10105":{"varMapping":{"__isSmartRef__":true,"id":10106},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10106":{"this":{"__isSmartRef__":true,"id":10047}},"10107":{},"10108":{"varMapping":{"__isSmartRef__":true,"id":10109},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10109":{"this":{"__isSmartRef__":true,"id":10047}},"10110":{},"10111":{"_Position":{"__isSmartRef__":true,"id":10112},"renderContextTable":{"__isSmartRef__":true,"id":10113},"_Extent":{"__isSmartRef__":true,"id":10114},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10115},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10112":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10113":{"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"},"10114":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10115":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10116":{"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"},"10117":{"morph":{"__isSmartRef__":true,"id":10046},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10118":{"layouter":{"__isSmartRef__":true,"id":10119},"resizeWidth":true},"10119":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10046},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10120":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10121":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10122":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10123}},"10123":{"varMapping":{"__isSmartRef__":true,"id":10124},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10124":{"this":{"__isSmartRef__":true,"id":10046},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10125}},"10125":{"$super":{"__isSmartRef__":true,"id":10126}},"10126":{"varMapping":{"__isSmartRef__":true,"id":10127},"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":10128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10127":{"obj":{"__isSmartRef__":true,"id":10046},"name":"getLayoutableSubmorphs"},"10128":{},"10129":{},"10130":{"submorphs":[{"__isSmartRef__":true,"id":10131}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10195},"derivationIds":[null],"id":"186C49FA-ED97-4E8A-AF55-BE23AFC90E46","renderContextTable":{"__isSmartRef__":true,"id":10200},"eventHandler":{"__isSmartRef__":true,"id":10201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10202},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10204},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10205},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10206},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10131":{"submorphs":[{"__isSmartRef__":true,"id":10132},{"__isSmartRef__":true,"id":10149}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10165},"derivationIds":[null],"id":"51A4ACCB-0E6F-4C99-BA22-91FD43D555F5","renderContextTable":{"__isSmartRef__":true,"id":10170},"eventHandler":{"__isSmartRef__":true,"id":10171},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10172},"grabbingEnabled":false,"draggingEnabled":false,"data":"// changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefined \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","361","362","363","364","365","366","367","368","369","370","371","372","373","374","375","376","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","398","399","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","545","546","547","548","549","550","551","552","553","554","555","556","557","558","559","560","561","562","563","564","565","566","567","568","569","570","571","572","573","574","575","576","577","578","579","580","581","582","583","584","585","586","587","588","589","590","591","592","593","594","595","596","597","598","599","600","601","602","603","604","605","606","607","608","609","610","611","612","613","614","615","616","617","618","619","620","621","622","623","624","625","626","627","628","629","630","631","632","633","634","635","636","637","638","639","640","641","642","643","644","645","646","647","648","649","650","651","652","653","654","655","656","657","658","659","660","661","662","663","664","665","666","667","668","669","670","671","672","673","674","675","676","677","678","679","680","681","682","683","684","685","686","687","688","689","690","691","692","693","694","695","696","697","698","699","700","701","702","703","704","705","706","707","708","709","710","711","712","713","714","715","716","717","718","719","720","721","722","723","724","725","726","727","728","729","730","731","732","733","734","735","736","737","738","739","740","741","742","743","744","745","746","747","748","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","869","870","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","910","911","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","955","956","957","958","959","960","961","962","963","964","965","966","967","968","969","970","971","972","973","974","975","976","977","978","979","980","981","982","983","984","985","986","987","988","989","990","991","992","993","994","995","996","997","998","999","1000","1001","1002","1003","1004","1005","1006","1007","1008","1009","1010","1011","1012","1013","1014","1015","1016","1017","1018","1019","1020","1021","1022","1023","1024","1025","1026","1027","1028","1029","1030","1031","1032","1033","1034","1035","1036","1037","1038","1039","1040","1041","1042","1043","1044","1045","1046","1047","1048","1049","1050","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1079","1080","1081","1082","1083","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1108","1109","1110","1111","1112","1113","1114","1115","1116","1117","1118","1119","1120","1121","1122","1123","1124","1125","1126","1127","1128","1129","1130","1131","1132","1133","1134","1135","1136","1137","1138","1139","1140","1141","1142","1143","1144","1145","1146","1147","1148","1149","1150","1151","1152","1153","1154","1155","1156","1157","1158","1159","1160","1161","1162","1163","1164","1165","1166","1167","1168","1169","1170","1171","1172","1173","1174","1175","1176","1177","1178","1179","1180","1181","1182","1183","1184","1185","1186","1187","1188","1189","1190","1191","1192","1193","1194","1195","1196","1197","1198","1199","1200","1201","1202","1203","1204","1205","1206","1207","1208","1209","1210","1211","1212","1213","1214","1215","1216","1217","1218","1219","1220","1221","1222","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1278","1279","1280","1281","1282","1283","1284","1285","1286","1287","1288","1289","1290","1291","1292","1293","1294","1295","1296","1297","1298","1299","1300","1301","1302","1303","1304","1305","1306","1307","1308","1309","1310","1311","1312","1313","1314","1315","1316","1317","1318","1319","1320","1321","1322","1323","1324","1325","1326","1327","1328","1329","1330","1331","1332","1333","1334","1335","1336","1337","1338","1339","1340","1341","1342","1343","1344","1345","1346","1347","1348","1349","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1399","1400","1401","1402","1403","1404","1405","1406","1407","1408","1409","1410","1411","1412","1413","1414","1415","1416","1417","1418","1419","1420","1421","1422","1423","1424","1425","1426","1427","1428","1429","1430","1431","1432","1433","1434","1435","1436","1437","1438","1439","1440","1441","1442","1443","1444","1445","1446","1447","1448","1449","1450","1451","1452","1453","1454","1455","1456","1457","1458","1459","1460","1461","1462","1463","1464","1465","1466","1467","1468","1469","1470","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1544","1545","1546","1547","1548","1549","1550","1551","1552","1553","1554","1555","1556","1557","1558","1559","1560","1561","1562","1563","1564","1565","1566","1567","1568","1569","1570","1571","1572","1573","1574","1575","1576","1577","1578","1579","1580","1581","1582","1583","1584","1585","1586","1587","1588","1589","1590","1591","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1623","1624","1625","1626","1627","1628","1629","1630","1631","1632","1633","1634","1635","1636","1637","1638","1639","1640","1641","1642","1643","1644","1645","1646","1647","1648","1649","1650","1651","1652","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1834","1835","1836","1837","1838","1839","1840","1841","1842","1843","1844","1845","1846","1847","1848","1849","1850","1851","1852","1853","1854","1855","1856","1857","1858","1859","1860","1861","1862","1863","1864","1865","1866","1867","1868","1869","1870","1871","1872","1873","1874","1875","1876","1877","1878","1879","1880","1881","1882","1883","1884","1885","1886","1887","1888","1889","1890","1891","1892","1893","1894","1895","1896","1897","1898","1899","1900","1901","1902","1903","1904","1905","1906","1907","1908","1909","1910","1911","1912","1913","1914","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1927","1928","1929","1930","1931","1932","1933","1934","1935","1936","1937","1938","1939","1940","1941","1942","1943","1944","1945","1946","1947","1948","1949","1950","1951","1952","1953","1954","1955","1956","1957","1958","1959","1960","1961","1962","1963","1964","1965","1966","1967","1968","1969","1970","1971","1972","1973","1974","1975","1976","1977","1978","1979","1980","1981","1982","1983","1984","1985","1986","1987","1988","1989","1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050","2051","2052","2053","2054","2055","2056","2057","2058","2059","2060","2061","2062","2063","2064","2065","2066","2067","2068","2069","2070","2071","2072","2073","2074","2075","2076","2077","2078","2079","2080","2081","2082","2083","2084","2085","2086","2087","2088","2089","2090","2091","2092","2093","2094","2095","2096","2097","2098","2099","2100","2101","2102","2103","2104","2105","2106","2107","2108","2109","2110","2111","2112","2113","2114","2115","2116","2117","2118","2119","2120","2121","2122","2123","2124","2125","2126","2127","2128","2129","2130","2131","2132","2133","2134","2135","2136","2137","2138","2139","2140","2141","2142","2143","2144","2145","2146","2147","2148","2149","2150","2151","2152","2153","2154","2155","2156","2157","2158","2159","2160","2161","2162","2163","2164","2165","2166","2167","2168","2169","2170","2171","2172","2173","2174","2175","2176","2177","2178","2179","2180","2181","2182","2183","2184","2185","2186","2187","2188","2189","2190","2191","2192","2193","2194","2195","2196","2197","2198","2199","2200","2201","2202","2203","2204","2205","2206","2207","2208","2209","2210","2211","2212","2213","2214","2215","2216","2217","2218","2219","2220","2221","2222","2223","2224","2225","2226","2227","2228","2229","2230","2231","2232","2233","2234","2235","2236","2237","2238","2239","2240","2241","2242","2243","2244","2245","2246","2247","2248","2249","2250","2251","2252","2253","2254","2255","2256","2257","2258","2259","2260","2261","2262","2263","2264","2265","2266","2267","2268","2269","2270","2271","2272","2273","2274","2275","2276","2277","2278","2279","2280","2281","2282","2283","2284","2285","2286","2287","2288","2289","2290","2291","2292","2293","2294","2295","2296","2297","2298","2299","2300","2301","2302","2303","2304","2305","2306","2307","2308","2309","2310","2311","2312","2313","2314","2315","2316","2317","2318","2319","2320","2321","2322","2323","2324","2325","2326","2327","2328","2329","2330","2331","2332","2333","2334","2335","2336","2337","2338","2339","2340","2341","2342","2343","2344","2345","2346","2347","2348","2349","2350","2351","2352","2353","2354","2355","2356","2357","2358","2359","2360","2361","2362","2363","2364","2365","2366","2367","2368","2369","2370","2371","2372","2373","2374","2375","2376","2377","2378","2379","2380","2381","2382","2383","2384","2385","2386","2387","2388","2389","2390","2391","2392","2393","2394","2395","2396","2397","2398","2399","2400","2401","2402","2403","2404","2405","2406","2407","2408","2409","2410","2411","2412","2413","2414","2415","2416","2417","2418","2419","2420","2421","2422","2423","2424","2425","2426","2427","2428","2429","2430","2431","2432","2433","2434","2435","2436","2437","2438","2439","2440","2441","2442","2443","2444","2445","2446","2447","2448","2449","2450","2451","2452","2453","2454","2455","2456","2457","2458","2459","2460","2461","2462","2463","2464","2465","2466","2467","2468","2469","2470","2471","2472","2473","2474","2475","2476","2477","2478","2479","2480","2481","2482","2483","2484","2485","2486","2487","2488","2489","2490","2491","2492","2493","2494","2495","2496","2497","2498","2499","2500","2501","2502","2503","2504","2505","2506","2507","2508","2509","2510","2511","2512","2513","2514","2515","2516","2517","2518","2519","2520","2521","2522","2523","2524","2525","2526","2527","2528","2529","2530","2531","2532","2533","2534","2535","2536","2537","2538","2539","2540","2541","2542","2543","2544","2545","2546","2547","2548","2549","2550","2551","2552","2553","2554","2555","2556","2557","2558","2559","2560","2561","2562","2563","2564","2565","2566","2567","2568","2569","2570","2571","2572","2573","2574","2575","2576","2577","2578","2579","2580","2581","2582","2583","2584","2585","2586","2587","2588","2589","2590","2591","2592","2593","2594","2595","2596","2597","2598","2599","2600","2601","2602","2603","2604","2605","2606","2607","2608","2609","2610","2611","2612","2613","2614","2615","2616","2617","2618","2619","2620","2621","2622","2623","2624","2625","2626","2627","2628","2629","2630","2631","2632","2633","2634","2635","2636","2637","2638","2639","2640","2641","2642","2643","2644","2645","2646","2647","2648","2649","2650","2651","2652","2653","2654","2655","2656","2657","2658","2659","2660","2661","2662","2663","2664","2665","2666","2667","2668","2669","2670","2671","2672","2673","2674","2675","2676","2677","2678","2679","2680","2681","2682","2683","2684","2685","2686","2687","2688","2689","2690","2691","2692","2693","2694","2695","2696","2697","2698","2699","2700","2701","2702","2703","2704","2705","2706","2707","2708","2709","2710","2711","2712","2713","2714","2715","2716","2717","2718","2719","2720","2721","2722","2723","2724","2725","2726","2727","2728","2729","2730","2731","2732","2733","2734","2735","2736","2737","2738","2739","2740","2741","2742","2743","2744","2745","2746","2747","2748","2749","2750","2751","2752","2753","2754","2755","2756","2757","2758","2759","2760","2761","2762","2763","2764","2765","2766","2767","2768","2769","2770","2771","2772","2773","2774","2775","2776","2777","2778","2779","2780","2781","2782","2783","2784","2785","2786","2787","2788","2789","2790","2791","2792","2793","2794","2795","2796","2797","2798","2799","2800","2801","2802","2803","2804","2805","2806","2807","2808","2809","2810","2811","2812","2813","2814","2815","2816","2817","2818","2819","2820","2821","2822","2823","2824","2825","2826","2827","2828","2829","2830","2831","2832","2833","2834","2835","2836","2837","2838","2839","2840","2841","2842","2843","2844","2845","2846","2847","2848","2849","2850","2851","2852","2853","2854","2855","2856","2857","2858","2859","2860","2861","2862","2863","2864","2865","2866","2867","2868","2869","2870","2871","2872","2873","2874","2875","2876","2877","2878","2879","2880","2881","2882","2883","2884","2885","2886","2887","2888","2889","2890","2891","2892","2893","2894","2895","2896","2897","2898","2899","2900","2901","2902","2903","2904","2905","2906","2907","2908","2909","2910","2911","2912","2913","2914","2915","2916","2917","2918","2919","2920","2921","2922","2923","2924","2925","2926","2927","2928","2929","2930","2931","2932","2933","2934","2935","2936","2937","2938","2939","2940","2941","2942","2943","2944","2945","2946","2947","2948","2949","2950","2951","2952","2953","2954","2955","2956","2957","2958","2959","2960","2961","2962","2963","2964","2965","2966","2967","2968","2969","2970","2971","2972","2973","2974","2975","2976","2977","2978","2979","2980","2981","2982","2983","2984","2985","2986","2987","2988","2989","2990","2991","2992","2993","2994","2995","2996","2997","2998","2999","3000","3001","3002","3003","3004","3005","3006","3007","3008","3009","3010","3011","3012","3013","3014","3015","3016","3017","3018","3019","3020","3021","3022","3023","3024","3025","3026","3027","3028","3029","3030","3031","3032","3033","3034","3035","3036","3037","3038","3039","3040","3041","3042","3043","3044","3045"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"lastSaveSource","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10132},"text":{"__isSmartRef__":true,"id":10149},"owner":{"__isSmartRef__":true,"id":10130},"_Position":{"__isSmartRef__":true,"id":10173},"priorExtent":{"__isSmartRef__":true,"id":10174},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10175},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10132":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10133},"derivationIds":[null],"id":"7754009A-42BF-4FEB-9693-61CFF3FC22E1","renderContextTable":{"__isSmartRef__":true,"id":10139},"eventHandler":{"__isSmartRef__":true,"id":10140},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10141},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10131},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10142},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10133":{"_Position":{"__isSmartRef__":true,"id":10134},"renderContextTable":{"__isSmartRef__":true,"id":10135},"_Extent":{"__isSmartRef__":true,"id":10136},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10137},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10138},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10134":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10135":{"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"},"10136":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10137":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10138":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10139":{"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"},"10140":{"morph":{"__isSmartRef__":true,"id":10132},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10141":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10142":{"toggle":{"__isSmartRef__":true,"id":10143},"toggleExpansion":{"__isSmartRef__":true,"id":10146}},"10143":{"varMapping":{"__isSmartRef__":true,"id":10144},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10144":{"this":{"__isSmartRef__":true,"id":10132}},"10145":{},"10146":{"varMapping":{"__isSmartRef__":true,"id":10147},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10147":{"this":{"__isSmartRef__":true,"id":10132}},"10148":{},"10149":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10150},"derivationIds":[null],"id":"3842911C-16E1-4503-8992-43E3DF926C61","renderContextTable":{"__isSmartRef__":true,"id":10154},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10155},{"__isSmartRef__":true,"id":10157}],"eventHandler":{"__isSmartRef__":true,"id":10159},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10160},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10131},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10161},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10150":{"_Position":{"__isSmartRef__":true,"id":10151},"renderContextTable":{"__isSmartRef__":true,"id":10152},"_Extent":{"__isSmartRef__":true,"id":10153},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10151":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10152":{"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"},"10153":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10154":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10155":{"style":{"__isSmartRef__":true,"id":10156},"chunkOwner":{"__isSmartRef__":true,"id":10149},"storedString":"lastSaveSource","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10156":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10157":{"style":{"__isSmartRef__":true,"id":10158},"chunkOwner":{"__isSmartRef__":true,"id":10149},"storedString":": // changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by un...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10158":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10159":{"morph":{"__isSmartRef__":true,"id":10149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10160":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10161":{"layoutText":{"__isSmartRef__":true,"id":10162}},"10162":{"varMapping":{"__isSmartRef__":true,"id":10163},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10163":{"this":{"__isSmartRef__":true,"id":10149}},"10164":{},"10165":{"_Position":{"__isSmartRef__":true,"id":10166},"renderContextTable":{"__isSmartRef__":true,"id":10167},"_Extent":{"__isSmartRef__":true,"id":10168},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10169},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10166":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10167":{"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"},"10168":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10169":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10170":{"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"},"10171":{"morph":{"__isSmartRef__":true,"id":10131},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10172":{"resizeWidth":true},"10173":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10174":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10175":{"updateExpanderColor":{"__isSmartRef__":true,"id":10176},"onMouseDown":{"__isSmartRef__":true,"id":10179},"isRoot":{"__isSmartRef__":true,"id":10186},"displayValue":{"__isSmartRef__":true,"id":10189},"update":{"__isSmartRef__":true,"id":10192}},"10176":{"varMapping":{"__isSmartRef__":true,"id":10177},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10177":{"this":{"__isSmartRef__":true,"id":10131}},"10178":{},"10179":{"varMapping":{"__isSmartRef__":true,"id":10180},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10180":{"this":{"__isSmartRef__":true,"id":10131},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10181}},"10181":{"$super":{"__isSmartRef__":true,"id":10182}},"10182":{"varMapping":{"__isSmartRef__":true,"id":10183},"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":10184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10183":{"obj":{"__isSmartRef__":true,"id":10131},"name":"onMouseDown"},"10184":{},"10185":{},"10186":{"varMapping":{"__isSmartRef__":true,"id":10187},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10187":{"this":{"__isSmartRef__":true,"id":10131}},"10188":{},"10189":{"varMapping":{"__isSmartRef__":true,"id":10190},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10190":{"this":{"__isSmartRef__":true,"id":10131}},"10191":{},"10192":{"varMapping":{"__isSmartRef__":true,"id":10193},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10193":{"this":{"__isSmartRef__":true,"id":10131}},"10194":{},"10195":{"_Position":{"__isSmartRef__":true,"id":10196},"renderContextTable":{"__isSmartRef__":true,"id":10197},"_Extent":{"__isSmartRef__":true,"id":10198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10197":{"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"},"10198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10200":{"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"},"10201":{"morph":{"__isSmartRef__":true,"id":10130},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10202":{"layouter":{"__isSmartRef__":true,"id":10203},"resizeWidth":true},"10203":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10130},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10205":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10206":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10207}},"10207":{"varMapping":{"__isSmartRef__":true,"id":10208},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10208":{"this":{"__isSmartRef__":true,"id":10130},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10209}},"10209":{"$super":{"__isSmartRef__":true,"id":10210}},"10210":{"varMapping":{"__isSmartRef__":true,"id":10211},"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":10212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10211":{"obj":{"__isSmartRef__":true,"id":10130},"name":"getLayoutableSubmorphs"},"10212":{},"10213":{},"10214":{"submorphs":[{"__isSmartRef__":true,"id":10215}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10279},"derivationIds":[null],"id":"75E4CEDC-B8AB-4939-A0D5-126A6C08E1A0","renderContextTable":{"__isSmartRef__":true,"id":10284},"eventHandler":{"__isSmartRef__":true,"id":10285},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10286},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10288},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10289},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10290},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10215":{"submorphs":[{"__isSmartRef__":true,"id":10216},{"__isSmartRef__":true,"id":10233}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10249},"derivationIds":[null],"id":"74065A17-7C78-46BD-9737-75FC3EB178A3","renderContextTable":{"__isSmartRef__":true,"id":10254},"eventHandler":{"__isSmartRef__":true,"id":10255},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10256},"grabbingEnabled":false,"draggingEnabled":false,"data":"stringsformat","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"lastSearchString","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10216},"text":{"__isSmartRef__":true,"id":10233},"owner":{"__isSmartRef__":true,"id":10214},"_Position":{"__isSmartRef__":true,"id":10257},"priorExtent":{"__isSmartRef__":true,"id":10258},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10259},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10216":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10217},"derivationIds":[null],"id":"AE9A4DCF-1A4A-41FD-88AB-FE97E4A54ACF","renderContextTable":{"__isSmartRef__":true,"id":10223},"eventHandler":{"__isSmartRef__":true,"id":10224},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10225},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10226},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10217":{"_Position":{"__isSmartRef__":true,"id":10218},"renderContextTable":{"__isSmartRef__":true,"id":10219},"_Extent":{"__isSmartRef__":true,"id":10220},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10221},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10222},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10218":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10219":{"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"},"10220":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10221":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10222":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10223":{"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"},"10224":{"morph":{"__isSmartRef__":true,"id":10216},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10225":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10226":{"toggle":{"__isSmartRef__":true,"id":10227},"toggleExpansion":{"__isSmartRef__":true,"id":10230}},"10227":{"varMapping":{"__isSmartRef__":true,"id":10228},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10228":{"this":{"__isSmartRef__":true,"id":10216}},"10229":{},"10230":{"varMapping":{"__isSmartRef__":true,"id":10231},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10231":{"this":{"__isSmartRef__":true,"id":10216}},"10232":{},"10233":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10234},"derivationIds":[null],"id":"075136DC-532B-4CDC-A62F-94E82A0D0DF8","renderContextTable":{"__isSmartRef__":true,"id":10238},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10239},{"__isSmartRef__":true,"id":10241}],"eventHandler":{"__isSmartRef__":true,"id":10243},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10244},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10245},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10234":{"_Position":{"__isSmartRef__":true,"id":10235},"renderContextTable":{"__isSmartRef__":true,"id":10236},"_Extent":{"__isSmartRef__":true,"id":10237},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10235":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10236":{"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"},"10237":{"x":232.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10238":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10239":{"style":{"__isSmartRef__":true,"id":10240},"chunkOwner":{"__isSmartRef__":true,"id":10233},"storedString":"lastSearchString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10240":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10241":{"style":{"__isSmartRef__":true,"id":10242},"chunkOwner":{"__isSmartRef__":true,"id":10233},"storedString":": stringsformat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10242":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10243":{"morph":{"__isSmartRef__":true,"id":10233},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10244":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10245":{"layoutText":{"__isSmartRef__":true,"id":10246}},"10246":{"varMapping":{"__isSmartRef__":true,"id":10247},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10247":{"this":{"__isSmartRef__":true,"id":10233}},"10248":{},"10249":{"_Position":{"__isSmartRef__":true,"id":10250},"renderContextTable":{"__isSmartRef__":true,"id":10251},"_Extent":{"__isSmartRef__":true,"id":10252},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10253},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10250":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10251":{"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"},"10252":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10253":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10254":{"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"},"10255":{"morph":{"__isSmartRef__":true,"id":10215},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10256":{"resizeWidth":true},"10257":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10258":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10259":{"updateExpanderColor":{"__isSmartRef__":true,"id":10260},"onMouseDown":{"__isSmartRef__":true,"id":10263},"isRoot":{"__isSmartRef__":true,"id":10270},"displayValue":{"__isSmartRef__":true,"id":10273},"update":{"__isSmartRef__":true,"id":10276}},"10260":{"varMapping":{"__isSmartRef__":true,"id":10261},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10261":{"this":{"__isSmartRef__":true,"id":10215}},"10262":{},"10263":{"varMapping":{"__isSmartRef__":true,"id":10264},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10264":{"this":{"__isSmartRef__":true,"id":10215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10265}},"10265":{"$super":{"__isSmartRef__":true,"id":10266}},"10266":{"varMapping":{"__isSmartRef__":true,"id":10267},"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":10268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10267":{"obj":{"__isSmartRef__":true,"id":10215},"name":"onMouseDown"},"10268":{},"10269":{},"10270":{"varMapping":{"__isSmartRef__":true,"id":10271},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10271":{"this":{"__isSmartRef__":true,"id":10215}},"10272":{},"10273":{"varMapping":{"__isSmartRef__":true,"id":10274},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10274":{"this":{"__isSmartRef__":true,"id":10215}},"10275":{},"10276":{"varMapping":{"__isSmartRef__":true,"id":10277},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10277":{"this":{"__isSmartRef__":true,"id":10215}},"10278":{},"10279":{"_Position":{"__isSmartRef__":true,"id":10280},"renderContextTable":{"__isSmartRef__":true,"id":10281},"_Extent":{"__isSmartRef__":true,"id":10282},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10283},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10281":{"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"},"10282":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10283":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10284":{"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"},"10285":{"morph":{"__isSmartRef__":true,"id":10214},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10286":{"layouter":{"__isSmartRef__":true,"id":10287},"resizeWidth":true},"10287":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10214},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10288":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10289":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10290":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10291}},"10291":{"varMapping":{"__isSmartRef__":true,"id":10292},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10292":{"this":{"__isSmartRef__":true,"id":10214},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10293}},"10293":{"$super":{"__isSmartRef__":true,"id":10294}},"10294":{"varMapping":{"__isSmartRef__":true,"id":10295},"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":10296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10295":{"obj":{"__isSmartRef__":true,"id":10214},"name":"getLayoutableSubmorphs"},"10296":{},"10297":{},"10298":{"submorphs":[{"__isSmartRef__":true,"id":10299}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10363},"derivationIds":[null],"id":"5BA3CE8D-4278-4DFD-BDCA-BE0D73055BB9","renderContextTable":{"__isSmartRef__":true,"id":10368},"eventHandler":{"__isSmartRef__":true,"id":10369},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10370},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10372},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10373},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10374},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10299":{"submorphs":[{"__isSmartRef__":true,"id":10300},{"__isSmartRef__":true,"id":10317}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10333},"derivationIds":[null],"id":"AF066D48-F2B8-4A47-8F22-1BC26B603E43","renderContextTable":{"__isSmartRef__":true,"id":10338},"eventHandler":{"__isSmartRef__":true,"id":10339},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10340},"grabbingEnabled":false,"draggingEnabled":false,"data":1334831039185,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"lastSyntaxHighlightTime","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10300},"text":{"__isSmartRef__":true,"id":10317},"owner":{"__isSmartRef__":true,"id":10298},"_Position":{"__isSmartRef__":true,"id":10341},"priorExtent":{"__isSmartRef__":true,"id":10342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10300":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10301},"derivationIds":[null],"id":"18976CE4-55E0-429E-B0F4-9E0AD3C8058F","renderContextTable":{"__isSmartRef__":true,"id":10307},"eventHandler":{"__isSmartRef__":true,"id":10308},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10309},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10310},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10301":{"_Position":{"__isSmartRef__":true,"id":10302},"renderContextTable":{"__isSmartRef__":true,"id":10303},"_Extent":{"__isSmartRef__":true,"id":10304},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10305},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10306},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10302":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10303":{"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"},"10304":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10305":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10306":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10307":{"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"},"10308":{"morph":{"__isSmartRef__":true,"id":10300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10309":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10310":{"toggle":{"__isSmartRef__":true,"id":10311},"toggleExpansion":{"__isSmartRef__":true,"id":10314}},"10311":{"varMapping":{"__isSmartRef__":true,"id":10312},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10312":{"this":{"__isSmartRef__":true,"id":10300}},"10313":{},"10314":{"varMapping":{"__isSmartRef__":true,"id":10315},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10315":{"this":{"__isSmartRef__":true,"id":10300}},"10316":{},"10317":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10318},"derivationIds":[null],"id":"F282BD82-CBBD-429E-A5E9-6AEF3FE54D0C","renderContextTable":{"__isSmartRef__":true,"id":10322},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10323},{"__isSmartRef__":true,"id":10325}],"eventHandler":{"__isSmartRef__":true,"id":10327},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10328},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10329},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10318":{"_Position":{"__isSmartRef__":true,"id":10319},"renderContextTable":{"__isSmartRef__":true,"id":10320},"_Extent":{"__isSmartRef__":true,"id":10321},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10319":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10320":{"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"},"10321":{"x":285,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10322":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10323":{"style":{"__isSmartRef__":true,"id":10324},"chunkOwner":{"__isSmartRef__":true,"id":10317},"storedString":"lastSyntaxHighlightTime","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10324":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10325":{"style":{"__isSmartRef__":true,"id":10326},"chunkOwner":{"__isSmartRef__":true,"id":10317},"storedString":": 1334831039185","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10326":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10327":{"morph":{"__isSmartRef__":true,"id":10317},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10328":{"x":285,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10329":{"layoutText":{"__isSmartRef__":true,"id":10330}},"10330":{"varMapping":{"__isSmartRef__":true,"id":10331},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10331":{"this":{"__isSmartRef__":true,"id":10317}},"10332":{},"10333":{"_Position":{"__isSmartRef__":true,"id":10334},"renderContextTable":{"__isSmartRef__":true,"id":10335},"_Extent":{"__isSmartRef__":true,"id":10336},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10337},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10334":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10335":{"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"},"10336":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10337":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10338":{"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"},"10339":{"morph":{"__isSmartRef__":true,"id":10299},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10340":{"resizeWidth":true},"10341":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10342":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10343":{"updateExpanderColor":{"__isSmartRef__":true,"id":10344},"onMouseDown":{"__isSmartRef__":true,"id":10347},"isRoot":{"__isSmartRef__":true,"id":10354},"displayValue":{"__isSmartRef__":true,"id":10357},"update":{"__isSmartRef__":true,"id":10360}},"10344":{"varMapping":{"__isSmartRef__":true,"id":10345},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10345":{"this":{"__isSmartRef__":true,"id":10299}},"10346":{},"10347":{"varMapping":{"__isSmartRef__":true,"id":10348},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10348":{"this":{"__isSmartRef__":true,"id":10299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10349}},"10349":{"$super":{"__isSmartRef__":true,"id":10350}},"10350":{"varMapping":{"__isSmartRef__":true,"id":10351},"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":10352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10351":{"obj":{"__isSmartRef__":true,"id":10299},"name":"onMouseDown"},"10352":{},"10353":{},"10354":{"varMapping":{"__isSmartRef__":true,"id":10355},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10355":{"this":{"__isSmartRef__":true,"id":10299}},"10356":{},"10357":{"varMapping":{"__isSmartRef__":true,"id":10358},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10358":{"this":{"__isSmartRef__":true,"id":10299}},"10359":{},"10360":{"varMapping":{"__isSmartRef__":true,"id":10361},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10361":{"this":{"__isSmartRef__":true,"id":10299}},"10362":{},"10363":{"_Position":{"__isSmartRef__":true,"id":10364},"renderContextTable":{"__isSmartRef__":true,"id":10365},"_Extent":{"__isSmartRef__":true,"id":10366},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10367},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10364":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10365":{"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"},"10366":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10367":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10368":{"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"},"10369":{"morph":{"__isSmartRef__":true,"id":10298},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10370":{"layouter":{"__isSmartRef__":true,"id":10371},"resizeWidth":true},"10371":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10298},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10372":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10373":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10374":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10375}},"10375":{"varMapping":{"__isSmartRef__":true,"id":10376},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10376":{"this":{"__isSmartRef__":true,"id":10298},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10377}},"10377":{"$super":{"__isSmartRef__":true,"id":10378}},"10378":{"varMapping":{"__isSmartRef__":true,"id":10379},"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":10380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10379":{"obj":{"__isSmartRef__":true,"id":10298},"name":"getLayoutableSubmorphs"},"10380":{},"10381":{},"10382":{"submorphs":[{"__isSmartRef__":true,"id":10383}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10447},"derivationIds":[null],"id":"BB407FA0-4C12-4491-B5C0-9308F0EF14C3","renderContextTable":{"__isSmartRef__":true,"id":10452},"eventHandler":{"__isSmartRef__":true,"id":10453},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10454},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10456},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10457},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10458},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10383":{"submorphs":[{"__isSmartRef__":true,"id":10384},{"__isSmartRef__":true,"id":10401}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10417},"derivationIds":[null],"id":"03E59C9D-11D3-48E1-9D1F-CDB0822822E9","renderContextTable":{"__isSmartRef__":true,"id":10422},"eventHandler":{"__isSmartRef__":true,"id":10423},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10424},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4643},"propertyList":["resizeWidth","resizeHeight"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"layout","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10384},"text":{"__isSmartRef__":true,"id":10401},"owner":{"__isSmartRef__":true,"id":10382},"_Position":{"__isSmartRef__":true,"id":10425},"priorExtent":{"__isSmartRef__":true,"id":10426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10427},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10384":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10385},"derivationIds":[null],"id":"C65B035F-23CE-49F5-ABED-AD2738AEBD4A","renderContextTable":{"__isSmartRef__":true,"id":10391},"eventHandler":{"__isSmartRef__":true,"id":10392},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10393},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10383},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10394},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10385":{"_Position":{"__isSmartRef__":true,"id":10386},"renderContextTable":{"__isSmartRef__":true,"id":10387},"_Extent":{"__isSmartRef__":true,"id":10388},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10389},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10390},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10386":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10387":{"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"},"10388":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10389":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10390":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10391":{"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"},"10392":{"morph":{"__isSmartRef__":true,"id":10384},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10393":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10394":{"toggle":{"__isSmartRef__":true,"id":10395},"toggleExpansion":{"__isSmartRef__":true,"id":10398}},"10395":{"varMapping":{"__isSmartRef__":true,"id":10396},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10396":{"this":{"__isSmartRef__":true,"id":10384}},"10397":{},"10398":{"varMapping":{"__isSmartRef__":true,"id":10399},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10399":{"this":{"__isSmartRef__":true,"id":10384}},"10400":{},"10401":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10402},"derivationIds":[null],"id":"A670DBEF-A80B-4629-A9B3-473AC615A2B7","renderContextTable":{"__isSmartRef__":true,"id":10406},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10407},{"__isSmartRef__":true,"id":10409}],"eventHandler":{"__isSmartRef__":true,"id":10411},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10412},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10383},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10413},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10402":{"_Position":{"__isSmartRef__":true,"id":10403},"renderContextTable":{"__isSmartRef__":true,"id":10404},"_Extent":{"__isSmartRef__":true,"id":10405},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10403":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10404":{"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"},"10405":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10406":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10407":{"style":{"__isSmartRef__":true,"id":10408},"chunkOwner":{"__isSmartRef__":true,"id":10401},"storedString":"layout","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10408":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10409":{"style":{"__isSmartRef__":true,"id":10410},"chunkOwner":{"__isSmartRef__":true,"id":10401},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10410":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10411":{"morph":{"__isSmartRef__":true,"id":10401},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10412":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10413":{"layoutText":{"__isSmartRef__":true,"id":10414}},"10414":{"varMapping":{"__isSmartRef__":true,"id":10415},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10415":{"this":{"__isSmartRef__":true,"id":10401}},"10416":{},"10417":{"_Position":{"__isSmartRef__":true,"id":10418},"renderContextTable":{"__isSmartRef__":true,"id":10419},"_Extent":{"__isSmartRef__":true,"id":10420},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10421},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10418":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10419":{"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"},"10420":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10421":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10422":{"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"},"10423":{"morph":{"__isSmartRef__":true,"id":10383},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10424":{"resizeWidth":true},"10425":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10426":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10427":{"updateExpanderColor":{"__isSmartRef__":true,"id":10428},"onMouseDown":{"__isSmartRef__":true,"id":10431},"isRoot":{"__isSmartRef__":true,"id":10438},"displayValue":{"__isSmartRef__":true,"id":10441},"update":{"__isSmartRef__":true,"id":10444}},"10428":{"varMapping":{"__isSmartRef__":true,"id":10429},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10429":{"this":{"__isSmartRef__":true,"id":10383}},"10430":{},"10431":{"varMapping":{"__isSmartRef__":true,"id":10432},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10432":{"this":{"__isSmartRef__":true,"id":10383},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10433}},"10433":{"$super":{"__isSmartRef__":true,"id":10434}},"10434":{"varMapping":{"__isSmartRef__":true,"id":10435},"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":10436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10435":{"obj":{"__isSmartRef__":true,"id":10383},"name":"onMouseDown"},"10436":{},"10437":{},"10438":{"varMapping":{"__isSmartRef__":true,"id":10439},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10439":{"this":{"__isSmartRef__":true,"id":10383}},"10440":{},"10441":{"varMapping":{"__isSmartRef__":true,"id":10442},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10442":{"this":{"__isSmartRef__":true,"id":10383}},"10443":{},"10444":{"varMapping":{"__isSmartRef__":true,"id":10445},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10445":{"this":{"__isSmartRef__":true,"id":10383}},"10446":{},"10447":{"_Position":{"__isSmartRef__":true,"id":10448},"renderContextTable":{"__isSmartRef__":true,"id":10449},"_Extent":{"__isSmartRef__":true,"id":10450},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10451},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10448":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10449":{"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"},"10450":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10451":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10452":{"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"},"10453":{"morph":{"__isSmartRef__":true,"id":10382},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10454":{"layouter":{"__isSmartRef__":true,"id":10455},"resizeWidth":true},"10455":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10382},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10456":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10457":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10458":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10459}},"10459":{"varMapping":{"__isSmartRef__":true,"id":10460},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10460":{"this":{"__isSmartRef__":true,"id":10382},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10461}},"10461":{"$super":{"__isSmartRef__":true,"id":10462}},"10462":{"varMapping":{"__isSmartRef__":true,"id":10463},"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":10464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10463":{"obj":{"__isSmartRef__":true,"id":10382},"name":"getLayoutableSubmorphs"},"10464":{},"10465":{},"10466":{"submorphs":[{"__isSmartRef__":true,"id":10467}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10531},"derivationIds":[null],"id":"F00F58E1-8A64-40BC-894A-3C23A2E41269","renderContextTable":{"__isSmartRef__":true,"id":10536},"eventHandler":{"__isSmartRef__":true,"id":10537},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10538},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10540},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10541},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10542},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10467":{"submorphs":[{"__isSmartRef__":true,"id":10468},{"__isSmartRef__":true,"id":10485}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10501},"derivationIds":[null],"id":"859B8173-9506-4739-871B-825CB884FF87","renderContextTable":{"__isSmartRef__":true,"id":10506},"eventHandler":{"__isSmartRef__":true,"id":10507},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10508},"grabbingEnabled":false,"draggingEnabled":false,"data":1,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"morphRefId","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10468},"text":{"__isSmartRef__":true,"id":10485},"owner":{"__isSmartRef__":true,"id":10466},"_Position":{"__isSmartRef__":true,"id":10509},"priorExtent":{"__isSmartRef__":true,"id":10510},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10511},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10468":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10469},"derivationIds":[null],"id":"4577A301-5AA5-43C4-8430-669710613799","renderContextTable":{"__isSmartRef__":true,"id":10475},"eventHandler":{"__isSmartRef__":true,"id":10476},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10477},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10478},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10469":{"_Position":{"__isSmartRef__":true,"id":10470},"renderContextTable":{"__isSmartRef__":true,"id":10471},"_Extent":{"__isSmartRef__":true,"id":10472},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10473},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10474},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10470":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10471":{"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"},"10472":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10473":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10474":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10475":{"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"},"10476":{"morph":{"__isSmartRef__":true,"id":10468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10477":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10478":{"toggle":{"__isSmartRef__":true,"id":10479},"toggleExpansion":{"__isSmartRef__":true,"id":10482}},"10479":{"varMapping":{"__isSmartRef__":true,"id":10480},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10480":{"this":{"__isSmartRef__":true,"id":10468}},"10481":{},"10482":{"varMapping":{"__isSmartRef__":true,"id":10483},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10483":{"this":{"__isSmartRef__":true,"id":10468}},"10484":{},"10485":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10486},"derivationIds":[null],"id":"83D9BBC2-74DE-489D-A9E5-D7FB6CD45CC8","renderContextTable":{"__isSmartRef__":true,"id":10490},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10491},{"__isSmartRef__":true,"id":10493}],"eventHandler":{"__isSmartRef__":true,"id":10495},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10496},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10497},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10486":{"_Position":{"__isSmartRef__":true,"id":10487},"renderContextTable":{"__isSmartRef__":true,"id":10488},"_Extent":{"__isSmartRef__":true,"id":10489},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10487":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10488":{"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"},"10489":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10490":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10491":{"style":{"__isSmartRef__":true,"id":10492},"chunkOwner":{"__isSmartRef__":true,"id":10485},"storedString":"morphRefId","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10492":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10493":{"style":{"__isSmartRef__":true,"id":10494},"chunkOwner":{"__isSmartRef__":true,"id":10485},"storedString":": 1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10494":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10495":{"morph":{"__isSmartRef__":true,"id":10485},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10497":{"layoutText":{"__isSmartRef__":true,"id":10498}},"10498":{"varMapping":{"__isSmartRef__":true,"id":10499},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10499":{"this":{"__isSmartRef__":true,"id":10485}},"10500":{},"10501":{"_Position":{"__isSmartRef__":true,"id":10502},"renderContextTable":{"__isSmartRef__":true,"id":10503},"_Extent":{"__isSmartRef__":true,"id":10504},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10505},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10502":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10503":{"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"},"10504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10505":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10506":{"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"},"10507":{"morph":{"__isSmartRef__":true,"id":10467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10508":{"resizeWidth":true},"10509":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10510":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10511":{"updateExpanderColor":{"__isSmartRef__":true,"id":10512},"onMouseDown":{"__isSmartRef__":true,"id":10515},"isRoot":{"__isSmartRef__":true,"id":10522},"displayValue":{"__isSmartRef__":true,"id":10525},"update":{"__isSmartRef__":true,"id":10528}},"10512":{"varMapping":{"__isSmartRef__":true,"id":10513},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10513":{"this":{"__isSmartRef__":true,"id":10467}},"10514":{},"10515":{"varMapping":{"__isSmartRef__":true,"id":10516},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10516":{"this":{"__isSmartRef__":true,"id":10467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10517}},"10517":{"$super":{"__isSmartRef__":true,"id":10518}},"10518":{"varMapping":{"__isSmartRef__":true,"id":10519},"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":10520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10519":{"obj":{"__isSmartRef__":true,"id":10467},"name":"onMouseDown"},"10520":{},"10521":{},"10522":{"varMapping":{"__isSmartRef__":true,"id":10523},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10523":{"this":{"__isSmartRef__":true,"id":10467}},"10524":{},"10525":{"varMapping":{"__isSmartRef__":true,"id":10526},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10526":{"this":{"__isSmartRef__":true,"id":10467}},"10527":{},"10528":{"varMapping":{"__isSmartRef__":true,"id":10529},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10529":{"this":{"__isSmartRef__":true,"id":10467}},"10530":{},"10531":{"_Position":{"__isSmartRef__":true,"id":10532},"renderContextTable":{"__isSmartRef__":true,"id":10533},"_Extent":{"__isSmartRef__":true,"id":10534},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10535},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10532":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10533":{"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"},"10534":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10535":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10536":{"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"},"10537":{"morph":{"__isSmartRef__":true,"id":10466},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10538":{"layouter":{"__isSmartRef__":true,"id":10539},"resizeWidth":true},"10539":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10466},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10540":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10541":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10542":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10543}},"10543":{"varMapping":{"__isSmartRef__":true,"id":10544},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10544":{"this":{"__isSmartRef__":true,"id":10466},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10545}},"10545":{"$super":{"__isSmartRef__":true,"id":10546}},"10546":{"varMapping":{"__isSmartRef__":true,"id":10547},"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":10548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10547":{"obj":{"__isSmartRef__":true,"id":10466},"name":"getLayoutableSubmorphs"},"10548":{},"10549":{},"10550":{"submorphs":[{"__isSmartRef__":true,"id":10551}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10615},"derivationIds":[null],"id":"4905136F-B11F-4919-B022-A85F7EB8967A","renderContextTable":{"__isSmartRef__":true,"id":10620},"eventHandler":{"__isSmartRef__":true,"id":10621},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10622},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10624},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10625},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10626},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10551":{"submorphs":[{"__isSmartRef__":true,"id":10552},{"__isSmartRef__":true,"id":10569}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10585},"derivationIds":[null],"id":"0F1929A3-A026-4C3F-B6C9-05457A6F937C","renderContextTable":{"__isSmartRef__":true,"id":10590},"eventHandler":{"__isSmartRef__":true,"id":10591},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10592},"grabbingEnabled":false,"draggingEnabled":false,"data":"ObjectEditorScriptPane","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"name","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10552},"text":{"__isSmartRef__":true,"id":10569},"owner":{"__isSmartRef__":true,"id":10550},"_Position":{"__isSmartRef__":true,"id":10593},"priorExtent":{"__isSmartRef__":true,"id":10594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10595},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10552":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10553},"derivationIds":[null],"id":"21F391DC-6F24-4ECD-8937-96E5029C1F9E","renderContextTable":{"__isSmartRef__":true,"id":10559},"eventHandler":{"__isSmartRef__":true,"id":10560},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10561},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10562},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10553":{"_Position":{"__isSmartRef__":true,"id":10554},"renderContextTable":{"__isSmartRef__":true,"id":10555},"_Extent":{"__isSmartRef__":true,"id":10556},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10557},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10558},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10554":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10555":{"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"},"10556":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10557":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10558":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10559":{"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"},"10560":{"morph":{"__isSmartRef__":true,"id":10552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10561":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10562":{"toggle":{"__isSmartRef__":true,"id":10563},"toggleExpansion":{"__isSmartRef__":true,"id":10566}},"10563":{"varMapping":{"__isSmartRef__":true,"id":10564},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10564":{"this":{"__isSmartRef__":true,"id":10552}},"10565":{},"10566":{"varMapping":{"__isSmartRef__":true,"id":10567},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10567":{"this":{"__isSmartRef__":true,"id":10552}},"10568":{},"10569":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10570},"derivationIds":[null],"id":"EF7AAF50-F687-4079-B9AA-E3E52E988119","renderContextTable":{"__isSmartRef__":true,"id":10574},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10575},{"__isSmartRef__":true,"id":10577}],"eventHandler":{"__isSmartRef__":true,"id":10579},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10580},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10581},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10570":{"_Position":{"__isSmartRef__":true,"id":10571},"renderContextTable":{"__isSmartRef__":true,"id":10572},"_Extent":{"__isSmartRef__":true,"id":10573},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10571":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10572":{"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"},"10573":{"x":210,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10574":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10575":{"style":{"__isSmartRef__":true,"id":10576},"chunkOwner":{"__isSmartRef__":true,"id":10569},"storedString":"name","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10576":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10577":{"style":{"__isSmartRef__":true,"id":10578},"chunkOwner":{"__isSmartRef__":true,"id":10569},"storedString":": ObjectEditorScriptPane","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10578":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10579":{"morph":{"__isSmartRef__":true,"id":10569},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10581":{"layoutText":{"__isSmartRef__":true,"id":10582}},"10582":{"varMapping":{"__isSmartRef__":true,"id":10583},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10583":{"this":{"__isSmartRef__":true,"id":10569}},"10584":{},"10585":{"_Position":{"__isSmartRef__":true,"id":10586},"renderContextTable":{"__isSmartRef__":true,"id":10587},"_Extent":{"__isSmartRef__":true,"id":10588},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10589},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10586":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10587":{"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"},"10588":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10589":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10590":{"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"},"10591":{"morph":{"__isSmartRef__":true,"id":10551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10592":{"resizeWidth":true},"10593":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10594":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10595":{"updateExpanderColor":{"__isSmartRef__":true,"id":10596},"onMouseDown":{"__isSmartRef__":true,"id":10599},"isRoot":{"__isSmartRef__":true,"id":10606},"displayValue":{"__isSmartRef__":true,"id":10609},"update":{"__isSmartRef__":true,"id":10612}},"10596":{"varMapping":{"__isSmartRef__":true,"id":10597},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10597":{"this":{"__isSmartRef__":true,"id":10551}},"10598":{},"10599":{"varMapping":{"__isSmartRef__":true,"id":10600},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10600":{"this":{"__isSmartRef__":true,"id":10551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10601}},"10601":{"$super":{"__isSmartRef__":true,"id":10602}},"10602":{"varMapping":{"__isSmartRef__":true,"id":10603},"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":10604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10603":{"obj":{"__isSmartRef__":true,"id":10551},"name":"onMouseDown"},"10604":{},"10605":{},"10606":{"varMapping":{"__isSmartRef__":true,"id":10607},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10607":{"this":{"__isSmartRef__":true,"id":10551}},"10608":{},"10609":{"varMapping":{"__isSmartRef__":true,"id":10610},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10610":{"this":{"__isSmartRef__":true,"id":10551}},"10611":{},"10612":{"varMapping":{"__isSmartRef__":true,"id":10613},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10613":{"this":{"__isSmartRef__":true,"id":10551}},"10614":{},"10615":{"_Position":{"__isSmartRef__":true,"id":10616},"renderContextTable":{"__isSmartRef__":true,"id":10617},"_Extent":{"__isSmartRef__":true,"id":10618},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10619},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10616":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10617":{"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"},"10618":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10619":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10620":{"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"},"10621":{"morph":{"__isSmartRef__":true,"id":10550},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10622":{"layouter":{"__isSmartRef__":true,"id":10623},"resizeWidth":true},"10623":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10550},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10624":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10625":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10626":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10627}},"10627":{"varMapping":{"__isSmartRef__":true,"id":10628},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10628":{"this":{"__isSmartRef__":true,"id":10550},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10629}},"10629":{"$super":{"__isSmartRef__":true,"id":10630}},"10630":{"varMapping":{"__isSmartRef__":true,"id":10631},"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":10632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10631":{"obj":{"__isSmartRef__":true,"id":10550},"name":"getLayoutableSubmorphs"},"10632":{},"10633":{},"10634":{"submorphs":[{"__isSmartRef__":true,"id":10635}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10699},"derivationIds":[null],"id":"213588EA-BD7C-4C52-81A6-0F3484F5DA02","renderContextTable":{"__isSmartRef__":true,"id":10704},"eventHandler":{"__isSmartRef__":true,"id":10705},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10706},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10708},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10709},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10710},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10635":{"submorphs":[{"__isSmartRef__":true,"id":10636},{"__isSmartRef__":true,"id":10653}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10669},"derivationIds":[null],"id":"6357F3A3-E935-43BC-8579-D990DEEC038E","renderContextTable":{"__isSmartRef__":true,"id":10674},"eventHandler":{"__isSmartRef__":true,"id":10675},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10676},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4660},"propertyList":["submorphs","scripts","id","shape","droppingEnabled","halosEnabled","registeredForMouseEvents","showsHalos","name","partsBinMetaInfo","__SourceModuleName__","renderContextTable","eventHandler","priorExtent","layout","scriptPane","scriptList","connectionList","morphSelector","attributeConnections","doNotSerialize","doNotCopyProperties","changeIndicator","isBeingDragged","prevScroll","grabbingEnabled","draggingEnabled","currentCategory","distanceToDragEvent","tagChooser","currentTag","derivationIds","_Position","owner","isLockOwner","worldConnection","target","_Rotation","_Scale","withLayers","_renderContext","_isRendered"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"objectEditorPane","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10636},"text":{"__isSmartRef__":true,"id":10653},"owner":{"__isSmartRef__":true,"id":10634},"_Position":{"__isSmartRef__":true,"id":10677},"priorExtent":{"__isSmartRef__":true,"id":10678},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10679},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10636":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10637},"derivationIds":[null],"id":"4575806E-18F5-4863-979C-885FB62269CF","renderContextTable":{"__isSmartRef__":true,"id":10643},"eventHandler":{"__isSmartRef__":true,"id":10644},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10645},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10635},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10646},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10637":{"_Position":{"__isSmartRef__":true,"id":10638},"renderContextTable":{"__isSmartRef__":true,"id":10639},"_Extent":{"__isSmartRef__":true,"id":10640},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10641},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10642},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10638":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10639":{"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"},"10640":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10641":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10642":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10643":{"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"},"10644":{"morph":{"__isSmartRef__":true,"id":10636},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10645":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10646":{"toggle":{"__isSmartRef__":true,"id":10647},"toggleExpansion":{"__isSmartRef__":true,"id":10650}},"10647":{"varMapping":{"__isSmartRef__":true,"id":10648},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10648":{"this":{"__isSmartRef__":true,"id":10636}},"10649":{},"10650":{"varMapping":{"__isSmartRef__":true,"id":10651},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10651":{"this":{"__isSmartRef__":true,"id":10636}},"10652":{},"10653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10654},"derivationIds":[null],"id":"BB85E138-E720-467E-9133-48F384FF9A19","renderContextTable":{"__isSmartRef__":true,"id":10658},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10659},{"__isSmartRef__":true,"id":10661}],"eventHandler":{"__isSmartRef__":true,"id":10663},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10664},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10635},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10665},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10654":{"_Position":{"__isSmartRef__":true,"id":10655},"renderContextTable":{"__isSmartRef__":true,"id":10656},"_Extent":{"__isSmartRef__":true,"id":10657},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10655":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10656":{"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"},"10657":{"x":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10658":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10659":{"style":{"__isSmartRef__":true,"id":10660},"chunkOwner":{"__isSmartRef__":true,"id":10653},"storedString":"objectEditorPane","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10660":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10661":{"style":{"__isSmartRef__":true,"id":10662},"chunkOwner":{"__isSmartRef__":true,"id":10653},"storedString":": ObjectEditorPane","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10662":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10663":{"morph":{"__isSmartRef__":true,"id":10653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10664":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10665":{"layoutText":{"__isSmartRef__":true,"id":10666}},"10666":{"varMapping":{"__isSmartRef__":true,"id":10667},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10667":{"this":{"__isSmartRef__":true,"id":10653}},"10668":{},"10669":{"_Position":{"__isSmartRef__":true,"id":10670},"renderContextTable":{"__isSmartRef__":true,"id":10671},"_Extent":{"__isSmartRef__":true,"id":10672},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10673},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10670":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10671":{"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"},"10672":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10673":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10674":{"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"},"10675":{"morph":{"__isSmartRef__":true,"id":10635},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10676":{"resizeWidth":true},"10677":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10678":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10679":{"updateExpanderColor":{"__isSmartRef__":true,"id":10680},"onMouseDown":{"__isSmartRef__":true,"id":10683},"isRoot":{"__isSmartRef__":true,"id":10690},"displayValue":{"__isSmartRef__":true,"id":10693},"update":{"__isSmartRef__":true,"id":10696}},"10680":{"varMapping":{"__isSmartRef__":true,"id":10681},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10681":{"this":{"__isSmartRef__":true,"id":10635}},"10682":{},"10683":{"varMapping":{"__isSmartRef__":true,"id":10684},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10684":{"this":{"__isSmartRef__":true,"id":10635},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10685}},"10685":{"$super":{"__isSmartRef__":true,"id":10686}},"10686":{"varMapping":{"__isSmartRef__":true,"id":10687},"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":10688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10687":{"obj":{"__isSmartRef__":true,"id":10635},"name":"onMouseDown"},"10688":{},"10689":{},"10690":{"varMapping":{"__isSmartRef__":true,"id":10691},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10691":{"this":{"__isSmartRef__":true,"id":10635}},"10692":{},"10693":{"varMapping":{"__isSmartRef__":true,"id":10694},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10694":{"this":{"__isSmartRef__":true,"id":10635}},"10695":{},"10696":{"varMapping":{"__isSmartRef__":true,"id":10697},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10697":{"this":{"__isSmartRef__":true,"id":10635}},"10698":{},"10699":{"_Position":{"__isSmartRef__":true,"id":10700},"renderContextTable":{"__isSmartRef__":true,"id":10701},"_Extent":{"__isSmartRef__":true,"id":10702},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10703},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10700":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10701":{"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"},"10702":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10703":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10704":{"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"},"10705":{"morph":{"__isSmartRef__":true,"id":10634},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10706":{"layouter":{"__isSmartRef__":true,"id":10707},"resizeWidth":true},"10707":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10634},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10708":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10709":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10710":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10711}},"10711":{"varMapping":{"__isSmartRef__":true,"id":10712},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10712":{"this":{"__isSmartRef__":true,"id":10634},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10713}},"10713":{"$super":{"__isSmartRef__":true,"id":10714}},"10714":{"varMapping":{"__isSmartRef__":true,"id":10715},"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":10716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10715":{"obj":{"__isSmartRef__":true,"id":10634},"name":"getLayoutableSubmorphs"},"10716":{},"10717":{},"10718":{"submorphs":[{"__isSmartRef__":true,"id":10719}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10783},"derivationIds":[null],"id":"BDFC27C1-B818-4DC5-B943-10B06CF29B73","renderContextTable":{"__isSmartRef__":true,"id":10788},"eventHandler":{"__isSmartRef__":true,"id":10789},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10790},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10792},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10793},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10794},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10719":{"submorphs":[{"__isSmartRef__":true,"id":10720},{"__isSmartRef__":true,"id":10737}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10753},"derivationIds":[null],"id":"39F1B78A-1C80-4F5E-8EC9-FC09E95FE712","renderContextTable":{"__isSmartRef__":true,"id":10758},"eventHandler":{"__isSmartRef__":true,"id":10759},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10760},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4660},"propertyList":["submorphs","scripts","id","shape","droppingEnabled","halosEnabled","registeredForMouseEvents","showsHalos","name","partsBinMetaInfo","__SourceModuleName__","renderContextTable","eventHandler","priorExtent","layout","scriptPane","scriptList","connectionList","morphSelector","attributeConnections","doNotSerialize","doNotCopyProperties","changeIndicator","isBeingDragged","prevScroll","grabbingEnabled","draggingEnabled","currentCategory","distanceToDragEvent","tagChooser","currentTag","derivationIds","_Position","owner","isLockOwner","worldConnection","target","_Rotation","_Scale","withLayers","_renderContext","_isRendered"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"owner","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10720},"text":{"__isSmartRef__":true,"id":10737},"owner":{"__isSmartRef__":true,"id":10718},"_Position":{"__isSmartRef__":true,"id":10761},"priorExtent":{"__isSmartRef__":true,"id":10762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10763},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10720":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10721},"derivationIds":[null],"id":"AD3DFA09-D401-46C9-8EE1-A7B690D9062A","renderContextTable":{"__isSmartRef__":true,"id":10727},"eventHandler":{"__isSmartRef__":true,"id":10728},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10729},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10719},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10730},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10721":{"_Position":{"__isSmartRef__":true,"id":10722},"renderContextTable":{"__isSmartRef__":true,"id":10723},"_Extent":{"__isSmartRef__":true,"id":10724},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10725},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10726},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10722":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10723":{"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"},"10724":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10725":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10726":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10727":{"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"},"10728":{"morph":{"__isSmartRef__":true,"id":10720},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10729":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10730":{"toggle":{"__isSmartRef__":true,"id":10731},"toggleExpansion":{"__isSmartRef__":true,"id":10734}},"10731":{"varMapping":{"__isSmartRef__":true,"id":10732},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10732":{"this":{"__isSmartRef__":true,"id":10720}},"10733":{},"10734":{"varMapping":{"__isSmartRef__":true,"id":10735},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10735":{"this":{"__isSmartRef__":true,"id":10720}},"10736":{},"10737":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10738},"derivationIds":[null],"id":"9135BF18-84A4-4BC1-A69E-6A48E2E5006F","renderContextTable":{"__isSmartRef__":true,"id":10742},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10743},{"__isSmartRef__":true,"id":10745}],"eventHandler":{"__isSmartRef__":true,"id":10747},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10748},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10719},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10749},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10738":{"_Position":{"__isSmartRef__":true,"id":10739},"renderContextTable":{"__isSmartRef__":true,"id":10740},"_Extent":{"__isSmartRef__":true,"id":10741},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10739":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10740":{"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"},"10741":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10742":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10743":{"style":{"__isSmartRef__":true,"id":10744},"chunkOwner":{"__isSmartRef__":true,"id":10737},"storedString":"owner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10744":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10745":{"style":{"__isSmartRef__":true,"id":10746},"chunkOwner":{"__isSmartRef__":true,"id":10737},"storedString":": ObjectEditorPane","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10746":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10747":{"morph":{"__isSmartRef__":true,"id":10737},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10748":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10749":{"layoutText":{"__isSmartRef__":true,"id":10750}},"10750":{"varMapping":{"__isSmartRef__":true,"id":10751},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10751":{"this":{"__isSmartRef__":true,"id":10737}},"10752":{},"10753":{"_Position":{"__isSmartRef__":true,"id":10754},"renderContextTable":{"__isSmartRef__":true,"id":10755},"_Extent":{"__isSmartRef__":true,"id":10756},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10757},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10754":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10755":{"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"},"10756":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10757":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10758":{"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"},"10759":{"morph":{"__isSmartRef__":true,"id":10719},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10760":{"resizeWidth":true},"10761":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10762":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10763":{"updateExpanderColor":{"__isSmartRef__":true,"id":10764},"onMouseDown":{"__isSmartRef__":true,"id":10767},"isRoot":{"__isSmartRef__":true,"id":10774},"displayValue":{"__isSmartRef__":true,"id":10777},"update":{"__isSmartRef__":true,"id":10780}},"10764":{"varMapping":{"__isSmartRef__":true,"id":10765},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10765":{"this":{"__isSmartRef__":true,"id":10719}},"10766":{},"10767":{"varMapping":{"__isSmartRef__":true,"id":10768},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10768":{"this":{"__isSmartRef__":true,"id":10719},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10769}},"10769":{"$super":{"__isSmartRef__":true,"id":10770}},"10770":{"varMapping":{"__isSmartRef__":true,"id":10771},"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":10772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10771":{"obj":{"__isSmartRef__":true,"id":10719},"name":"onMouseDown"},"10772":{},"10773":{},"10774":{"varMapping":{"__isSmartRef__":true,"id":10775},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10775":{"this":{"__isSmartRef__":true,"id":10719}},"10776":{},"10777":{"varMapping":{"__isSmartRef__":true,"id":10778},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10778":{"this":{"__isSmartRef__":true,"id":10719}},"10779":{},"10780":{"varMapping":{"__isSmartRef__":true,"id":10781},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10781":{"this":{"__isSmartRef__":true,"id":10719}},"10782":{},"10783":{"_Position":{"__isSmartRef__":true,"id":10784},"renderContextTable":{"__isSmartRef__":true,"id":10785},"_Extent":{"__isSmartRef__":true,"id":10786},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10787},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10784":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10785":{"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"},"10786":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10787":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10788":{"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"},"10789":{"morph":{"__isSmartRef__":true,"id":10718},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10790":{"layouter":{"__isSmartRef__":true,"id":10791},"resizeWidth":true},"10791":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10718},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10792":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10793":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10794":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10795}},"10795":{"varMapping":{"__isSmartRef__":true,"id":10796},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10796":{"this":{"__isSmartRef__":true,"id":10718},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10797}},"10797":{"$super":{"__isSmartRef__":true,"id":10798}},"10798":{"varMapping":{"__isSmartRef__":true,"id":10799},"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":10800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10799":{"obj":{"__isSmartRef__":true,"id":10718},"name":"getLayoutableSubmorphs"},"10800":{},"10801":{},"10802":{"submorphs":[{"__isSmartRef__":true,"id":10803}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10867},"derivationIds":[null],"id":"BB1C3FF3-51FD-4293-89C8-BB2B96918D9A","renderContextTable":{"__isSmartRef__":true,"id":10872},"eventHandler":{"__isSmartRef__":true,"id":10873},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10874},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10876},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10877},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10878},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10803":{"submorphs":[{"__isSmartRef__":true,"id":10804},{"__isSmartRef__":true,"id":10821}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10837},"derivationIds":[null],"id":"90FEB37F-C942-4542-962B-6C2F41217EF3","renderContextTable":{"__isSmartRef__":true,"id":10842},"eventHandler":{"__isSmartRef__":true,"id":10843},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10844},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4644},"propertyList":["requiredModules","partsSpaceName","migrationLevel","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"partsBinMetaInfo","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10804},"text":{"__isSmartRef__":true,"id":10821},"owner":{"__isSmartRef__":true,"id":10802},"_Position":{"__isSmartRef__":true,"id":10845},"priorExtent":{"__isSmartRef__":true,"id":10846},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10847},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10804":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10805},"derivationIds":[null],"id":"54154CF1-0E37-429D-A702-4D9301E88970","renderContextTable":{"__isSmartRef__":true,"id":10811},"eventHandler":{"__isSmartRef__":true,"id":10812},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10813},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10814},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10805":{"_Position":{"__isSmartRef__":true,"id":10806},"renderContextTable":{"__isSmartRef__":true,"id":10807},"_Extent":{"__isSmartRef__":true,"id":10808},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10809},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10810},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10806":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10807":{"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"},"10808":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10809":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10810":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10811":{"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"},"10812":{"morph":{"__isSmartRef__":true,"id":10804},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10813":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10814":{"toggle":{"__isSmartRef__":true,"id":10815},"toggleExpansion":{"__isSmartRef__":true,"id":10818}},"10815":{"varMapping":{"__isSmartRef__":true,"id":10816},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10816":{"this":{"__isSmartRef__":true,"id":10804}},"10817":{},"10818":{"varMapping":{"__isSmartRef__":true,"id":10819},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10819":{"this":{"__isSmartRef__":true,"id":10804}},"10820":{},"10821":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10822},"derivationIds":[null],"id":"20F59754-3C1B-4715-8256-BB21D9D5465E","renderContextTable":{"__isSmartRef__":true,"id":10826},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10827},{"__isSmartRef__":true,"id":10829}],"eventHandler":{"__isSmartRef__":true,"id":10831},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10832},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10833},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10822":{"_Position":{"__isSmartRef__":true,"id":10823},"renderContextTable":{"__isSmartRef__":true,"id":10824},"_Extent":{"__isSmartRef__":true,"id":10825},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10823":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10824":{"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"},"10825":{"x":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10826":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10827":{"style":{"__isSmartRef__":true,"id":10828},"chunkOwner":{"__isSmartRef__":true,"id":10821},"storedString":"partsBinMetaInfo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10828":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10829":{"style":{"__isSmartRef__":true,"id":10830},"chunkOwner":{"__isSmartRef__":true,"id":10821},"storedString":": PartsBinMetaInfo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10830":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10831":{"morph":{"__isSmartRef__":true,"id":10821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10832":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10833":{"layoutText":{"__isSmartRef__":true,"id":10834}},"10834":{"varMapping":{"__isSmartRef__":true,"id":10835},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10835":{"this":{"__isSmartRef__":true,"id":10821}},"10836":{},"10837":{"_Position":{"__isSmartRef__":true,"id":10838},"renderContextTable":{"__isSmartRef__":true,"id":10839},"_Extent":{"__isSmartRef__":true,"id":10840},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10841},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10838":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10839":{"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"},"10840":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10841":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10842":{"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"},"10843":{"morph":{"__isSmartRef__":true,"id":10803},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10844":{"resizeWidth":true},"10845":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10846":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10847":{"updateExpanderColor":{"__isSmartRef__":true,"id":10848},"onMouseDown":{"__isSmartRef__":true,"id":10851},"isRoot":{"__isSmartRef__":true,"id":10858},"displayValue":{"__isSmartRef__":true,"id":10861},"update":{"__isSmartRef__":true,"id":10864}},"10848":{"varMapping":{"__isSmartRef__":true,"id":10849},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10849":{"this":{"__isSmartRef__":true,"id":10803}},"10850":{},"10851":{"varMapping":{"__isSmartRef__":true,"id":10852},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10852":{"this":{"__isSmartRef__":true,"id":10803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10853}},"10853":{"$super":{"__isSmartRef__":true,"id":10854}},"10854":{"varMapping":{"__isSmartRef__":true,"id":10855},"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":10856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10855":{"obj":{"__isSmartRef__":true,"id":10803},"name":"onMouseDown"},"10856":{},"10857":{},"10858":{"varMapping":{"__isSmartRef__":true,"id":10859},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10859":{"this":{"__isSmartRef__":true,"id":10803}},"10860":{},"10861":{"varMapping":{"__isSmartRef__":true,"id":10862},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10862":{"this":{"__isSmartRef__":true,"id":10803}},"10863":{},"10864":{"varMapping":{"__isSmartRef__":true,"id":10865},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10865":{"this":{"__isSmartRef__":true,"id":10803}},"10866":{},"10867":{"_Position":{"__isSmartRef__":true,"id":10868},"renderContextTable":{"__isSmartRef__":true,"id":10869},"_Extent":{"__isSmartRef__":true,"id":10870},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10871},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10868":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10869":{"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"},"10870":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10871":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10872":{"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"},"10873":{"morph":{"__isSmartRef__":true,"id":10802},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10874":{"layouter":{"__isSmartRef__":true,"id":10875},"resizeWidth":true},"10875":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10802},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10876":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10877":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10878":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10879}},"10879":{"varMapping":{"__isSmartRef__":true,"id":10880},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10880":{"this":{"__isSmartRef__":true,"id":10802},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10881}},"10881":{"$super":{"__isSmartRef__":true,"id":10882}},"10882":{"varMapping":{"__isSmartRef__":true,"id":10883},"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":10884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10883":{"obj":{"__isSmartRef__":true,"id":10802},"name":"getLayoutableSubmorphs"},"10884":{},"10885":{},"10886":{"submorphs":[{"__isSmartRef__":true,"id":10887}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10951},"derivationIds":[null],"id":"7EEAA0FE-9C4E-484B-BFC0-811D86B5432C","renderContextTable":{"__isSmartRef__":true,"id":10956},"eventHandler":{"__isSmartRef__":true,"id":10957},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10958},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10960},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":10961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10962},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10887":{"submorphs":[{"__isSmartRef__":true,"id":10888},{"__isSmartRef__":true,"id":10905}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10921},"derivationIds":[null],"id":"CD4348C2-A58A-4509-B48C-F80FF692F2A9","renderContextTable":{"__isSmartRef__":true,"id":10926},"eventHandler":{"__isSmartRef__":true,"id":10927},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10928},"grabbingEnabled":false,"draggingEnabled":false,"data":[0,0],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"prevScroll","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10888},"text":{"__isSmartRef__":true,"id":10905},"owner":{"__isSmartRef__":true,"id":10886},"_Position":{"__isSmartRef__":true,"id":10929},"priorExtent":{"__isSmartRef__":true,"id":10930},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10931},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10888":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10889},"derivationIds":[null],"id":"97C78C17-E090-4F91-8EE6-B7F4F61C28D3","renderContextTable":{"__isSmartRef__":true,"id":10895},"eventHandler":{"__isSmartRef__":true,"id":10896},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10897},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10898},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10889":{"_Position":{"__isSmartRef__":true,"id":10890},"renderContextTable":{"__isSmartRef__":true,"id":10891},"_Extent":{"__isSmartRef__":true,"id":10892},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10893},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10894},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10890":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10891":{"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"},"10892":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10893":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10894":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10895":{"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"},"10896":{"morph":{"__isSmartRef__":true,"id":10888},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10897":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10898":{"toggle":{"__isSmartRef__":true,"id":10899},"toggleExpansion":{"__isSmartRef__":true,"id":10902}},"10899":{"varMapping":{"__isSmartRef__":true,"id":10900},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10900":{"this":{"__isSmartRef__":true,"id":10888}},"10901":{},"10902":{"varMapping":{"__isSmartRef__":true,"id":10903},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10903":{"this":{"__isSmartRef__":true,"id":10888}},"10904":{},"10905":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10906},"derivationIds":[null],"id":"B84690A1-5107-44F1-AED2-8F4C97B9D6E6","renderContextTable":{"__isSmartRef__":true,"id":10910},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10911},{"__isSmartRef__":true,"id":10913}],"eventHandler":{"__isSmartRef__":true,"id":10915},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":10916},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10917},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10906":{"_Position":{"__isSmartRef__":true,"id":10907},"renderContextTable":{"__isSmartRef__":true,"id":10908},"_Extent":{"__isSmartRef__":true,"id":10909},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10907":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10908":{"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"},"10909":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10910":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10911":{"style":{"__isSmartRef__":true,"id":10912},"chunkOwner":{"__isSmartRef__":true,"id":10905},"storedString":"prevScroll","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10912":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10913":{"style":{"__isSmartRef__":true,"id":10914},"chunkOwner":{"__isSmartRef__":true,"id":10905},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10914":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10915":{"morph":{"__isSmartRef__":true,"id":10905},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10916":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10917":{"layoutText":{"__isSmartRef__":true,"id":10918}},"10918":{"varMapping":{"__isSmartRef__":true,"id":10919},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":10920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10919":{"this":{"__isSmartRef__":true,"id":10905}},"10920":{},"10921":{"_Position":{"__isSmartRef__":true,"id":10922},"renderContextTable":{"__isSmartRef__":true,"id":10923},"_Extent":{"__isSmartRef__":true,"id":10924},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10925},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10922":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10923":{"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"},"10924":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10925":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10926":{"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"},"10927":{"morph":{"__isSmartRef__":true,"id":10887},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10928":{"resizeWidth":true},"10929":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10930":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10931":{"updateExpanderColor":{"__isSmartRef__":true,"id":10932},"onMouseDown":{"__isSmartRef__":true,"id":10935},"isRoot":{"__isSmartRef__":true,"id":10942},"displayValue":{"__isSmartRef__":true,"id":10945},"update":{"__isSmartRef__":true,"id":10948}},"10932":{"varMapping":{"__isSmartRef__":true,"id":10933},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10933":{"this":{"__isSmartRef__":true,"id":10887}},"10934":{},"10935":{"varMapping":{"__isSmartRef__":true,"id":10936},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10936":{"this":{"__isSmartRef__":true,"id":10887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10937}},"10937":{"$super":{"__isSmartRef__":true,"id":10938}},"10938":{"varMapping":{"__isSmartRef__":true,"id":10939},"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":10940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10939":{"obj":{"__isSmartRef__":true,"id":10887},"name":"onMouseDown"},"10940":{},"10941":{},"10942":{"varMapping":{"__isSmartRef__":true,"id":10943},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10943":{"this":{"__isSmartRef__":true,"id":10887}},"10944":{},"10945":{"varMapping":{"__isSmartRef__":true,"id":10946},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10946":{"this":{"__isSmartRef__":true,"id":10887}},"10947":{},"10948":{"varMapping":{"__isSmartRef__":true,"id":10949},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10949":{"this":{"__isSmartRef__":true,"id":10887}},"10950":{},"10951":{"_Position":{"__isSmartRef__":true,"id":10952},"renderContextTable":{"__isSmartRef__":true,"id":10953},"_Extent":{"__isSmartRef__":true,"id":10954},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10955},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10952":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10953":{"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"},"10954":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10955":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10956":{"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"},"10957":{"morph":{"__isSmartRef__":true,"id":10886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10958":{"layouter":{"__isSmartRef__":true,"id":10959},"resizeWidth":true},"10959":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10886},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10960":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10961":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10962":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10963}},"10963":{"varMapping":{"__isSmartRef__":true,"id":10964},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10964":{"this":{"__isSmartRef__":true,"id":10886},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10965}},"10965":{"$super":{"__isSmartRef__":true,"id":10966}},"10966":{"varMapping":{"__isSmartRef__":true,"id":10967},"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":10968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10967":{"obj":{"__isSmartRef__":true,"id":10886},"name":"getLayoutableSubmorphs"},"10968":{},"10969":{},"10970":{"submorphs":[{"__isSmartRef__":true,"id":10971}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11035},"derivationIds":[null],"id":"95D057B4-4FCB-4B12-B792-354128F62BBD","renderContextTable":{"__isSmartRef__":true,"id":11040},"eventHandler":{"__isSmartRef__":true,"id":11041},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11042},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11044},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11045},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11046},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10971":{"submorphs":[{"__isSmartRef__":true,"id":10972},{"__isSmartRef__":true,"id":10989}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11005},"derivationIds":[null],"id":"64152FD9-2CD9-4C88-91E1-630C1F3FF11E","renderContextTable":{"__isSmartRef__":true,"id":11010},"eventHandler":{"__isSmartRef__":true,"id":11011},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11012},"grabbingEnabled":false,"draggingEnabled":false,"data":[354,354],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"previousSelection","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":10972},"text":{"__isSmartRef__":true,"id":10989},"owner":{"__isSmartRef__":true,"id":10970},"_Position":{"__isSmartRef__":true,"id":11013},"priorExtent":{"__isSmartRef__":true,"id":11014},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11015},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10972":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10973},"derivationIds":[null],"id":"DE3C82C8-7B73-4D1B-95F0-8CEEFE499EFD","renderContextTable":{"__isSmartRef__":true,"id":10979},"eventHandler":{"__isSmartRef__":true,"id":10980},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10981},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10982},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10973":{"_Position":{"__isSmartRef__":true,"id":10974},"renderContextTable":{"__isSmartRef__":true,"id":10975},"_Extent":{"__isSmartRef__":true,"id":10976},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10977},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":10978},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10974":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10975":{"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"},"10976":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10977":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10978":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10979":{"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"},"10980":{"morph":{"__isSmartRef__":true,"id":10972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10981":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10982":{"toggle":{"__isSmartRef__":true,"id":10983},"toggleExpansion":{"__isSmartRef__":true,"id":10986}},"10983":{"varMapping":{"__isSmartRef__":true,"id":10984},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10984":{"this":{"__isSmartRef__":true,"id":10972}},"10985":{},"10986":{"varMapping":{"__isSmartRef__":true,"id":10987},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10987":{"this":{"__isSmartRef__":true,"id":10972}},"10988":{},"10989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10990},"derivationIds":[null],"id":"62B032F9-5E78-45FB-9A9A-99602A1156AF","renderContextTable":{"__isSmartRef__":true,"id":10994},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10995},{"__isSmartRef__":true,"id":10997}],"eventHandler":{"__isSmartRef__":true,"id":10999},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11000},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":10971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11001},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10990":{"_Position":{"__isSmartRef__":true,"id":10991},"renderContextTable":{"__isSmartRef__":true,"id":10992},"_Extent":{"__isSmartRef__":true,"id":10993},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10991":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10992":{"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"},"10993":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10994":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10995":{"style":{"__isSmartRef__":true,"id":10996},"chunkOwner":{"__isSmartRef__":true,"id":10989},"storedString":"previousSelection","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10996":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10997":{"style":{"__isSmartRef__":true,"id":10998},"chunkOwner":{"__isSmartRef__":true,"id":10989},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10998":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10999":{"morph":{"__isSmartRef__":true,"id":10989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11000":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11001":{"layoutText":{"__isSmartRef__":true,"id":11002}},"11002":{"varMapping":{"__isSmartRef__":true,"id":11003},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11003":{"this":{"__isSmartRef__":true,"id":10989}},"11004":{},"11005":{"_Position":{"__isSmartRef__":true,"id":11006},"renderContextTable":{"__isSmartRef__":true,"id":11007},"_Extent":{"__isSmartRef__":true,"id":11008},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11009},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11006":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11007":{"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"},"11008":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11009":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11010":{"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"},"11011":{"morph":{"__isSmartRef__":true,"id":10971},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11012":{"resizeWidth":true},"11013":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11014":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11015":{"updateExpanderColor":{"__isSmartRef__":true,"id":11016},"onMouseDown":{"__isSmartRef__":true,"id":11019},"isRoot":{"__isSmartRef__":true,"id":11026},"displayValue":{"__isSmartRef__":true,"id":11029},"update":{"__isSmartRef__":true,"id":11032}},"11016":{"varMapping":{"__isSmartRef__":true,"id":11017},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11017":{"this":{"__isSmartRef__":true,"id":10971}},"11018":{},"11019":{"varMapping":{"__isSmartRef__":true,"id":11020},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11020":{"this":{"__isSmartRef__":true,"id":10971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11021}},"11021":{"$super":{"__isSmartRef__":true,"id":11022}},"11022":{"varMapping":{"__isSmartRef__":true,"id":11023},"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":11024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11023":{"obj":{"__isSmartRef__":true,"id":10971},"name":"onMouseDown"},"11024":{},"11025":{},"11026":{"varMapping":{"__isSmartRef__":true,"id":11027},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11027":{"this":{"__isSmartRef__":true,"id":10971}},"11028":{},"11029":{"varMapping":{"__isSmartRef__":true,"id":11030},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11030":{"this":{"__isSmartRef__":true,"id":10971}},"11031":{},"11032":{"varMapping":{"__isSmartRef__":true,"id":11033},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11033":{"this":{"__isSmartRef__":true,"id":10971}},"11034":{},"11035":{"_Position":{"__isSmartRef__":true,"id":11036},"renderContextTable":{"__isSmartRef__":true,"id":11037},"_Extent":{"__isSmartRef__":true,"id":11038},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11039},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11036":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11037":{"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"},"11038":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11039":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11040":{"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"},"11041":{"morph":{"__isSmartRef__":true,"id":10970},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11042":{"layouter":{"__isSmartRef__":true,"id":11043},"resizeWidth":true},"11043":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10970},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11044":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11045":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11046":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11047}},"11047":{"varMapping":{"__isSmartRef__":true,"id":11048},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11048":{"this":{"__isSmartRef__":true,"id":10970},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11049}},"11049":{"$super":{"__isSmartRef__":true,"id":11050}},"11050":{"varMapping":{"__isSmartRef__":true,"id":11051},"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":11052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11051":{"obj":{"__isSmartRef__":true,"id":10970},"name":"getLayoutableSubmorphs"},"11052":{},"11053":{},"11054":{"submorphs":[{"__isSmartRef__":true,"id":11055}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11119},"derivationIds":[null],"id":"787E3DB0-6067-45A5-94E2-C04929D2BB7E","renderContextTable":{"__isSmartRef__":true,"id":11124},"eventHandler":{"__isSmartRef__":true,"id":11125},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11126},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11128},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11129},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11130},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11055":{"submorphs":[{"__isSmartRef__":true,"id":11056},{"__isSmartRef__":true,"id":11073}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11089},"derivationIds":[null],"id":"9E32A7A5-A62D-444F-97AA-0B4A3616B189","renderContextTable":{"__isSmartRef__":true,"id":11094},"eventHandler":{"__isSmartRef__":true,"id":11095},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11096},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4645},"propertyList":["x","y","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"priorExtent","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11056},"text":{"__isSmartRef__":true,"id":11073},"owner":{"__isSmartRef__":true,"id":11054},"_Position":{"__isSmartRef__":true,"id":11097},"priorExtent":{"__isSmartRef__":true,"id":11098},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11099},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11056":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11057},"derivationIds":[null],"id":"A400995E-3815-4B89-8FC6-28BE929C451B","renderContextTable":{"__isSmartRef__":true,"id":11063},"eventHandler":{"__isSmartRef__":true,"id":11064},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11065},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11055},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11066},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11057":{"_Position":{"__isSmartRef__":true,"id":11058},"renderContextTable":{"__isSmartRef__":true,"id":11059},"_Extent":{"__isSmartRef__":true,"id":11060},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11061},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11062},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11058":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11059":{"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"},"11060":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11061":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11062":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11063":{"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"},"11064":{"morph":{"__isSmartRef__":true,"id":11056},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11065":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11066":{"toggle":{"__isSmartRef__":true,"id":11067},"toggleExpansion":{"__isSmartRef__":true,"id":11070}},"11067":{"varMapping":{"__isSmartRef__":true,"id":11068},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11068":{"this":{"__isSmartRef__":true,"id":11056}},"11069":{},"11070":{"varMapping":{"__isSmartRef__":true,"id":11071},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11071":{"this":{"__isSmartRef__":true,"id":11056}},"11072":{},"11073":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11074},"derivationIds":[null],"id":"93D2BBBF-2EC2-4725-A28D-A569E512ECF8","renderContextTable":{"__isSmartRef__":true,"id":11078},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11079},{"__isSmartRef__":true,"id":11081}],"eventHandler":{"__isSmartRef__":true,"id":11083},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11084},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11055},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11085},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11074":{"_Position":{"__isSmartRef__":true,"id":11075},"renderContextTable":{"__isSmartRef__":true,"id":11076},"_Extent":{"__isSmartRef__":true,"id":11077},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11075":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11076":{"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"},"11077":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11078":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11079":{"style":{"__isSmartRef__":true,"id":11080},"chunkOwner":{"__isSmartRef__":true,"id":11073},"storedString":"priorExtent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11080":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11081":{"style":{"__isSmartRef__":true,"id":11082},"chunkOwner":{"__isSmartRef__":true,"id":11073},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11082":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11083":{"morph":{"__isSmartRef__":true,"id":11073},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11084":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11085":{"layoutText":{"__isSmartRef__":true,"id":11086}},"11086":{"varMapping":{"__isSmartRef__":true,"id":11087},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11087":{"this":{"__isSmartRef__":true,"id":11073}},"11088":{},"11089":{"_Position":{"__isSmartRef__":true,"id":11090},"renderContextTable":{"__isSmartRef__":true,"id":11091},"_Extent":{"__isSmartRef__":true,"id":11092},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11093},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11090":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11091":{"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"},"11092":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11093":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11094":{"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"},"11095":{"morph":{"__isSmartRef__":true,"id":11055},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11096":{"resizeWidth":true},"11097":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11099":{"updateExpanderColor":{"__isSmartRef__":true,"id":11100},"onMouseDown":{"__isSmartRef__":true,"id":11103},"isRoot":{"__isSmartRef__":true,"id":11110},"displayValue":{"__isSmartRef__":true,"id":11113},"update":{"__isSmartRef__":true,"id":11116}},"11100":{"varMapping":{"__isSmartRef__":true,"id":11101},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11101":{"this":{"__isSmartRef__":true,"id":11055}},"11102":{},"11103":{"varMapping":{"__isSmartRef__":true,"id":11104},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11104":{"this":{"__isSmartRef__":true,"id":11055},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11105}},"11105":{"$super":{"__isSmartRef__":true,"id":11106}},"11106":{"varMapping":{"__isSmartRef__":true,"id":11107},"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":11108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11107":{"obj":{"__isSmartRef__":true,"id":11055},"name":"onMouseDown"},"11108":{},"11109":{},"11110":{"varMapping":{"__isSmartRef__":true,"id":11111},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11111":{"this":{"__isSmartRef__":true,"id":11055}},"11112":{},"11113":{"varMapping":{"__isSmartRef__":true,"id":11114},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11114":{"this":{"__isSmartRef__":true,"id":11055}},"11115":{},"11116":{"varMapping":{"__isSmartRef__":true,"id":11117},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11117":{"this":{"__isSmartRef__":true,"id":11055}},"11118":{},"11119":{"_Position":{"__isSmartRef__":true,"id":11120},"renderContextTable":{"__isSmartRef__":true,"id":11121},"_Extent":{"__isSmartRef__":true,"id":11122},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11123},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11120":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11121":{"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"},"11122":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11123":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11124":{"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"},"11125":{"morph":{"__isSmartRef__":true,"id":11054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11126":{"layouter":{"__isSmartRef__":true,"id":11127},"resizeWidth":true},"11127":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11054},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11128":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11129":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11130":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11131}},"11131":{"varMapping":{"__isSmartRef__":true,"id":11132},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11132":{"this":{"__isSmartRef__":true,"id":11054},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11133}},"11133":{"$super":{"__isSmartRef__":true,"id":11134}},"11134":{"varMapping":{"__isSmartRef__":true,"id":11135},"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":11136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11135":{"obj":{"__isSmartRef__":true,"id":11054},"name":"getLayoutableSubmorphs"},"11136":{},"11137":{},"11138":{"submorphs":[{"__isSmartRef__":true,"id":11139},{"__isSmartRef__":true,"id":11234}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11394},"derivationIds":[null],"id":"EDF5AAB8-64FF-4DE6-97E5-4D64D9AFEC95","renderContextTable":{"__isSmartRef__":true,"id":11399},"eventHandler":{"__isSmartRef__":true,"id":11400},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11401},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11403},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11139":{"submorphs":[{"__isSmartRef__":true,"id":11140},{"__isSmartRef__":true,"id":11156}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11173},"derivationIds":[null],"id":"95497779-4E69-4476-8934-2103F69D0DEC","renderContextTable":{"__isSmartRef__":true,"id":11178},"eventHandler":{"__isSmartRef__":true,"id":11179},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11180},"grabbingEnabled":false,"draggingEnabled":false,"data":[157,157],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"priorSelectionRange","children":[{"__isSmartRef__":true,"id":11181},{"__isSmartRef__":true,"id":11236}],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11140},"text":{"__isSmartRef__":true,"id":11156},"owner":{"__isSmartRef__":true,"id":11138},"_Position":{"__isSmartRef__":true,"id":11372},"priorExtent":{"__isSmartRef__":true,"id":11373},"childrenWrapper":{"__isSmartRef__":true,"id":11234},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11374},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11140":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11141},"derivationIds":[null],"id":"DC7B8851-34F9-4850-BBC1-9719E94BCBB3","renderContextTable":{"__isSmartRef__":true,"id":11146},"eventHandler":{"__isSmartRef__":true,"id":11147},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11148},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":11139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11149},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11141":{"_Position":{"__isSmartRef__":true,"id":11142},"renderContextTable":{"__isSmartRef__":true,"id":11143},"_Extent":{"__isSmartRef__":true,"id":11144},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11145},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":2396},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11142":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11143":{"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"},"11144":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11145":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11146":{"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"},"11147":{"morph":{"__isSmartRef__":true,"id":11140},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11148":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11149":{"toggle":{"__isSmartRef__":true,"id":11150},"toggleExpansion":{"__isSmartRef__":true,"id":11153}},"11150":{"varMapping":{"__isSmartRef__":true,"id":11151},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11151":{"this":{"__isSmartRef__":true,"id":11140}},"11152":{},"11153":{"varMapping":{"__isSmartRef__":true,"id":11154},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11154":{"this":{"__isSmartRef__":true,"id":11140}},"11155":{},"11156":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11157},"derivationIds":[null],"id":"3885A9D9-C3A1-4C60-AF8A-438404EF3206","renderContextTable":{"__isSmartRef__":true,"id":11162},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11163},{"__isSmartRef__":true,"id":11165}],"eventHandler":{"__isSmartRef__":true,"id":11167},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11168},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11169},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11157":{"_Position":{"__isSmartRef__":true,"id":11158},"renderContextTable":{"__isSmartRef__":true,"id":11159},"_Extent":{"__isSmartRef__":true,"id":11160},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":{"__isSmartRef__":true,"id":11161},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11158":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11159":{"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"},"11160":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11161":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11162":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11163":{"style":{"__isSmartRef__":true,"id":11164},"chunkOwner":{"__isSmartRef__":true,"id":11156},"storedString":"priorSelectionRange","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11164":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11165":{"style":{"__isSmartRef__":true,"id":11166},"chunkOwner":{"__isSmartRef__":true,"id":11156},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11166":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11167":{"morph":{"__isSmartRef__":true,"id":11156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11168":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11169":{"layoutText":{"__isSmartRef__":true,"id":11170}},"11170":{"varMapping":{"__isSmartRef__":true,"id":11171},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11171":{"this":{"__isSmartRef__":true,"id":11156}},"11172":{},"11173":{"_Position":{"__isSmartRef__":true,"id":11174},"renderContextTable":{"__isSmartRef__":true,"id":11175},"_Extent":{"__isSmartRef__":true,"id":11176},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11177},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11174":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11175":{"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"},"11176":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11177":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11178":{"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"},"11179":{"morph":{"__isSmartRef__":true,"id":11139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11180":{"resizeWidth":true},"11181":{"submorphs":[{"__isSmartRef__":true,"id":11182},{"__isSmartRef__":true,"id":11199}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11215},"derivationIds":[null],"id":"DDEBC5F0-4E8D-4007-A212-700738F65063","renderContextTable":{"__isSmartRef__":true,"id":11220},"eventHandler":{"__isSmartRef__":true,"id":11221},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11222},"grabbingEnabled":false,"draggingEnabled":false,"data":157,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":4584},"label":"0","children":[],"parent":{"__isSmartRef__":true,"id":11139},"expander":{"__isSmartRef__":true,"id":11182},"text":{"__isSmartRef__":true,"id":11199},"owner":{"__isSmartRef__":true,"id":11223},"_Position":{"__isSmartRef__":true,"id":11350},"priorExtent":{"__isSmartRef__":true,"id":11351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11352},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11182":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11183},"derivationIds":[null],"id":"2D84A7CF-F929-461A-AA05-8C4FF3AE6384","renderContextTable":{"__isSmartRef__":true,"id":11189},"eventHandler":{"__isSmartRef__":true,"id":11190},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11191},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11181},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11192},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11183":{"_Position":{"__isSmartRef__":true,"id":11184},"renderContextTable":{"__isSmartRef__":true,"id":11185},"_Extent":{"__isSmartRef__":true,"id":11186},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11187},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11188},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11184":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11185":{"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"},"11186":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11187":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11188":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11189":{"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"},"11190":{"morph":{"__isSmartRef__":true,"id":11182},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11191":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11192":{"toggle":{"__isSmartRef__":true,"id":11193},"toggleExpansion":{"__isSmartRef__":true,"id":11196}},"11193":{"varMapping":{"__isSmartRef__":true,"id":11194},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11194":{"this":{"__isSmartRef__":true,"id":11182}},"11195":{},"11196":{"varMapping":{"__isSmartRef__":true,"id":11197},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11197":{"this":{"__isSmartRef__":true,"id":11182}},"11198":{},"11199":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11200},"derivationIds":[null],"id":"DEFC84D8-36F6-44C7-9895-AE1627FCEEAC","renderContextTable":{"__isSmartRef__":true,"id":11204},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11205},{"__isSmartRef__":true,"id":11207}],"eventHandler":{"__isSmartRef__":true,"id":11209},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11210},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11181},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11211},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11200":{"_Position":{"__isSmartRef__":true,"id":11201},"renderContextTable":{"__isSmartRef__":true,"id":11202},"_Extent":{"__isSmartRef__":true,"id":11203},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11201":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11202":{"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"},"11203":{"x":45,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11204":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11205":{"style":{"__isSmartRef__":true,"id":11206},"chunkOwner":{"__isSmartRef__":true,"id":11199},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11206":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11207":{"style":{"__isSmartRef__":true,"id":11208},"chunkOwner":{"__isSmartRef__":true,"id":11199},"storedString":": 157","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11208":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11209":{"morph":{"__isSmartRef__":true,"id":11199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11210":{"x":45,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11211":{"layoutText":{"__isSmartRef__":true,"id":11212}},"11212":{"varMapping":{"__isSmartRef__":true,"id":11213},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11213":{"this":{"__isSmartRef__":true,"id":11199}},"11214":{},"11215":{"_Position":{"__isSmartRef__":true,"id":11216},"renderContextTable":{"__isSmartRef__":true,"id":11217},"_Extent":{"__isSmartRef__":true,"id":11218},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11219},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11216":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11217":{"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"},"11218":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11219":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11220":{"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"},"11221":{"morph":{"__isSmartRef__":true,"id":11181},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11222":{"resizeWidth":true},"11223":{"submorphs":[{"__isSmartRef__":true,"id":11181}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11224},"derivationIds":[null],"id":"D3C4B3D1-F6B5-42D0-A7D8-83B4AE3AC8D7","renderContextTable":{"__isSmartRef__":true,"id":11229},"eventHandler":{"__isSmartRef__":true,"id":11230},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11231},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11233},"owner":{"__isSmartRef__":true,"id":11234},"_Position":{"__isSmartRef__":true,"id":11341},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11342},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11224":{"_Position":{"__isSmartRef__":true,"id":11225},"renderContextTable":{"__isSmartRef__":true,"id":11226},"_Extent":{"__isSmartRef__":true,"id":11227},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11228},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11225":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11226":{"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"},"11227":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11228":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11229":{"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"},"11230":{"morph":{"__isSmartRef__":true,"id":11223},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11231":{"layouter":{"__isSmartRef__":true,"id":11232},"resizeWidth":true},"11232":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11223},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11233":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11234":{"submorphs":[{"__isSmartRef__":true,"id":11223},{"__isSmartRef__":true,"id":11235}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11319},"derivationIds":[null],"id":"CFF95ACD-2D7E-449F-84F8-58A9A616A8AE","renderContextTable":{"__isSmartRef__":true,"id":11324},"eventHandler":{"__isSmartRef__":true,"id":11325},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11326},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11328},"owner":{"__isSmartRef__":true,"id":11138},"_Position":{"__isSmartRef__":true,"id":11329},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11330},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11235":{"submorphs":[{"__isSmartRef__":true,"id":11236}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11300},"derivationIds":[null],"id":"6B812BAD-3550-4768-8768-7B25988EB5BD","renderContextTable":{"__isSmartRef__":true,"id":11305},"eventHandler":{"__isSmartRef__":true,"id":11306},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11307},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11309},"owner":{"__isSmartRef__":true,"id":11234},"_Position":{"__isSmartRef__":true,"id":11310},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11311},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11236":{"submorphs":[{"__isSmartRef__":true,"id":11237},{"__isSmartRef__":true,"id":11254}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11270},"derivationIds":[null],"id":"164B53DA-7ACC-4BA4-9415-67775CE4FBFB","renderContextTable":{"__isSmartRef__":true,"id":11275},"eventHandler":{"__isSmartRef__":true,"id":11276},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11277},"grabbingEnabled":false,"draggingEnabled":false,"data":157,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":4584},"label":"1","children":[],"parent":{"__isSmartRef__":true,"id":11139},"expander":{"__isSmartRef__":true,"id":11237},"text":{"__isSmartRef__":true,"id":11254},"owner":{"__isSmartRef__":true,"id":11235},"_Position":{"__isSmartRef__":true,"id":11278},"priorExtent":{"__isSmartRef__":true,"id":11279},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11280},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11237":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11238},"derivationIds":[null],"id":"5D7634BA-C1D4-4E07-92FB-663D896D8353","renderContextTable":{"__isSmartRef__":true,"id":11244},"eventHandler":{"__isSmartRef__":true,"id":11245},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11246},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11236},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11247},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11238":{"_Position":{"__isSmartRef__":true,"id":11239},"renderContextTable":{"__isSmartRef__":true,"id":11240},"_Extent":{"__isSmartRef__":true,"id":11241},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11242},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11243},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11239":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11240":{"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"},"11241":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11242":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11243":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11244":{"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"},"11245":{"morph":{"__isSmartRef__":true,"id":11237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11246":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11247":{"toggle":{"__isSmartRef__":true,"id":11248},"toggleExpansion":{"__isSmartRef__":true,"id":11251}},"11248":{"varMapping":{"__isSmartRef__":true,"id":11249},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11249":{"this":{"__isSmartRef__":true,"id":11237}},"11250":{},"11251":{"varMapping":{"__isSmartRef__":true,"id":11252},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11252":{"this":{"__isSmartRef__":true,"id":11237}},"11253":{},"11254":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11255},"derivationIds":[null],"id":"6CE836C9-A183-4C20-BDF9-695A409A5A64","renderContextTable":{"__isSmartRef__":true,"id":11259},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11260},{"__isSmartRef__":true,"id":11262}],"eventHandler":{"__isSmartRef__":true,"id":11264},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11265},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11236},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11266},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11255":{"_Position":{"__isSmartRef__":true,"id":11256},"renderContextTable":{"__isSmartRef__":true,"id":11257},"_Extent":{"__isSmartRef__":true,"id":11258},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11256":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11257":{"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"},"11258":{"x":45,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11259":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11260":{"style":{"__isSmartRef__":true,"id":11261},"chunkOwner":{"__isSmartRef__":true,"id":11254},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11261":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11262":{"style":{"__isSmartRef__":true,"id":11263},"chunkOwner":{"__isSmartRef__":true,"id":11254},"storedString":": 157","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11263":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11264":{"morph":{"__isSmartRef__":true,"id":11254},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11265":{"x":45,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11266":{"layoutText":{"__isSmartRef__":true,"id":11267}},"11267":{"varMapping":{"__isSmartRef__":true,"id":11268},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11268":{"this":{"__isSmartRef__":true,"id":11254}},"11269":{},"11270":{"_Position":{"__isSmartRef__":true,"id":11271},"renderContextTable":{"__isSmartRef__":true,"id":11272},"_Extent":{"__isSmartRef__":true,"id":11273},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11274},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11271":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11272":{"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"},"11273":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11274":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11275":{"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"},"11276":{"morph":{"__isSmartRef__":true,"id":11236},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11277":{"resizeWidth":true},"11278":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11279":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11280":{"updateExpanderColor":{"__isSmartRef__":true,"id":11281},"onMouseDown":{"__isSmartRef__":true,"id":11284},"isRoot":{"__isSmartRef__":true,"id":11291},"displayValue":{"__isSmartRef__":true,"id":11294},"update":{"__isSmartRef__":true,"id":11297}},"11281":{"varMapping":{"__isSmartRef__":true,"id":11282},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11282":{"this":{"__isSmartRef__":true,"id":11236}},"11283":{},"11284":{"varMapping":{"__isSmartRef__":true,"id":11285},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11285":{"this":{"__isSmartRef__":true,"id":11236},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11286}},"11286":{"$super":{"__isSmartRef__":true,"id":11287}},"11287":{"varMapping":{"__isSmartRef__":true,"id":11288},"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":11289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11288":{"obj":{"__isSmartRef__":true,"id":11236},"name":"onMouseDown"},"11289":{},"11290":{},"11291":{"varMapping":{"__isSmartRef__":true,"id":11292},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11292":{"this":{"__isSmartRef__":true,"id":11236}},"11293":{},"11294":{"varMapping":{"__isSmartRef__":true,"id":11295},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11295":{"this":{"__isSmartRef__":true,"id":11236}},"11296":{},"11297":{"varMapping":{"__isSmartRef__":true,"id":11298},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11298":{"this":{"__isSmartRef__":true,"id":11236}},"11299":{},"11300":{"_Position":{"__isSmartRef__":true,"id":11301},"renderContextTable":{"__isSmartRef__":true,"id":11302},"_Extent":{"__isSmartRef__":true,"id":11303},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11304},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11301":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11302":{"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"},"11303":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11304":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11305":{"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"},"11306":{"morph":{"__isSmartRef__":true,"id":11235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11307":{"layouter":{"__isSmartRef__":true,"id":11308},"resizeWidth":true},"11308":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11235},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11309":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11310":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11311":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11312}},"11312":{"varMapping":{"__isSmartRef__":true,"id":11313},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11313":{"this":{"__isSmartRef__":true,"id":11235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11314}},"11314":{"$super":{"__isSmartRef__":true,"id":11315}},"11315":{"varMapping":{"__isSmartRef__":true,"id":11316},"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":11317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11316":{"obj":{"__isSmartRef__":true,"id":11235},"name":"getLayoutableSubmorphs"},"11317":{},"11318":{},"11319":{"_Position":{"__isSmartRef__":true,"id":11320},"renderContextTable":{"__isSmartRef__":true,"id":11321},"_Extent":{"__isSmartRef__":true,"id":11322},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11323},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11320":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11321":{"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"},"11322":{"x":100,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11323":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11324":{"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"},"11325":{"morph":{"__isSmartRef__":true,"id":11234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11326":{"layouter":{"__isSmartRef__":true,"id":11327},"resizeWidth":true},"11327":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11234},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11328":{"x":100,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11329":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11330":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11331},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":11338}},"11331":{"varMapping":{"__isSmartRef__":true,"id":11332},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11332":{"this":{"__isSmartRef__":true,"id":11234},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11333}},"11333":{"$super":{"__isSmartRef__":true,"id":11334}},"11334":{"varMapping":{"__isSmartRef__":true,"id":11335},"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":11336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11335":{"obj":{"__isSmartRef__":true,"id":11234},"name":"getLayoutableSubmorphs"},"11336":{},"11337":{},"11338":{"varMapping":{"__isSmartRef__":true,"id":11339},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11339":{"this":{"__isSmartRef__":true,"id":11234}},"11340":{},"11341":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11342":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11343}},"11343":{"varMapping":{"__isSmartRef__":true,"id":11344},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11344":{"this":{"__isSmartRef__":true,"id":11223},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11345}},"11345":{"$super":{"__isSmartRef__":true,"id":11346}},"11346":{"varMapping":{"__isSmartRef__":true,"id":11347},"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":11348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11347":{"obj":{"__isSmartRef__":true,"id":11223},"name":"getLayoutableSubmorphs"},"11348":{},"11349":{},"11350":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11351":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11352":{"updateExpanderColor":{"__isSmartRef__":true,"id":11353},"onMouseDown":{"__isSmartRef__":true,"id":11356},"isRoot":{"__isSmartRef__":true,"id":11363},"displayValue":{"__isSmartRef__":true,"id":11366},"update":{"__isSmartRef__":true,"id":11369}},"11353":{"varMapping":{"__isSmartRef__":true,"id":11354},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11354":{"this":{"__isSmartRef__":true,"id":11181}},"11355":{},"11356":{"varMapping":{"__isSmartRef__":true,"id":11357},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11357":{"this":{"__isSmartRef__":true,"id":11181},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11358}},"11358":{"$super":{"__isSmartRef__":true,"id":11359}},"11359":{"varMapping":{"__isSmartRef__":true,"id":11360},"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":11361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11360":{"obj":{"__isSmartRef__":true,"id":11181},"name":"onMouseDown"},"11361":{},"11362":{},"11363":{"varMapping":{"__isSmartRef__":true,"id":11364},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11364":{"this":{"__isSmartRef__":true,"id":11181}},"11365":{},"11366":{"varMapping":{"__isSmartRef__":true,"id":11367},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11367":{"this":{"__isSmartRef__":true,"id":11181}},"11368":{},"11369":{"varMapping":{"__isSmartRef__":true,"id":11370},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11370":{"this":{"__isSmartRef__":true,"id":11181}},"11371":{},"11372":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11373":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11374":{"updateExpanderColor":{"__isSmartRef__":true,"id":11375},"onMouseDown":{"__isSmartRef__":true,"id":11378},"isRoot":{"__isSmartRef__":true,"id":11385},"displayValue":{"__isSmartRef__":true,"id":11388},"update":{"__isSmartRef__":true,"id":11391}},"11375":{"varMapping":{"__isSmartRef__":true,"id":11376},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11376":{"this":{"__isSmartRef__":true,"id":11139}},"11377":{},"11378":{"varMapping":{"__isSmartRef__":true,"id":11379},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11379":{"this":{"__isSmartRef__":true,"id":11139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11380}},"11380":{"$super":{"__isSmartRef__":true,"id":11381}},"11381":{"varMapping":{"__isSmartRef__":true,"id":11382},"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":11383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11382":{"obj":{"__isSmartRef__":true,"id":11139},"name":"onMouseDown"},"11383":{},"11384":{},"11385":{"varMapping":{"__isSmartRef__":true,"id":11386},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11386":{"this":{"__isSmartRef__":true,"id":11139}},"11387":{},"11388":{"varMapping":{"__isSmartRef__":true,"id":11389},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11389":{"this":{"__isSmartRef__":true,"id":11139}},"11390":{},"11391":{"varMapping":{"__isSmartRef__":true,"id":11392},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11392":{"this":{"__isSmartRef__":true,"id":11139}},"11393":{},"11394":{"_Position":{"__isSmartRef__":true,"id":11395},"renderContextTable":{"__isSmartRef__":true,"id":11396},"_Extent":{"__isSmartRef__":true,"id":11397},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11398},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11395":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11396":{"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"},"11397":{"x":100,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11398":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11399":{"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"},"11400":{"morph":{"__isSmartRef__":true,"id":11138},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11401":{"layouter":{"__isSmartRef__":true,"id":11402},"resizeWidth":true},"11402":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11138},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11403":{"x":100,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11404":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11405":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11406}},"11406":{"varMapping":{"__isSmartRef__":true,"id":11407},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11407":{"this":{"__isSmartRef__":true,"id":11138},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11408}},"11408":{"$super":{"__isSmartRef__":true,"id":11409}},"11409":{"varMapping":{"__isSmartRef__":true,"id":11410},"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":11411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11410":{"obj":{"__isSmartRef__":true,"id":11138},"name":"getLayoutableSubmorphs"},"11411":{},"11412":{},"11413":{"submorphs":[{"__isSmartRef__":true,"id":11414}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11478},"derivationIds":[null],"id":"BA56FA15-02BB-4BDF-A182-A0B5DE93824F","renderContextTable":{"__isSmartRef__":true,"id":11483},"eventHandler":{"__isSmartRef__":true,"id":11484},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11485},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11487},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11488},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11489},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11414":{"submorphs":[{"__isSmartRef__":true,"id":11415},{"__isSmartRef__":true,"id":11432}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11448},"derivationIds":[null],"id":"960D9CC7-3091-4374-BBF4-533A59434E79","renderContextTable":{"__isSmartRef__":true,"id":11453},"eventHandler":{"__isSmartRef__":true,"id":11454},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11455},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4646},"propertyList":["replaceRenderContext","init","append","remove","triggerEvent","setTransform","setPosition","setRotation","setExtent","setScale","setVisible","adjustOrigin","setPivotPoint","setClipMode","showsVerticalScrollBar","showsHorizontalScrollBar","getScrollBarExtent","setHandStyle","setPointerEvents","setToolTip","focus","blur","setFocusable","updateText","setTextExtent","setMaxTextWidth","setMaxTextHeight","setMinTextWidth","setMinTextHeight","getTextExtent","getTextString","ignoreTextEvents","unignoreTextEvents","enableTextEvents","setFontFamily","setFontSize","setTextColor","setPadding","setAlign","setVerticalAlign","setDisplay","setWhiteSpaceHandling","focusMorph"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"renderContextTable","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11415},"text":{"__isSmartRef__":true,"id":11432},"owner":{"__isSmartRef__":true,"id":11413},"_Position":{"__isSmartRef__":true,"id":11456},"priorExtent":{"__isSmartRef__":true,"id":11457},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11458},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11415":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11416},"derivationIds":[null],"id":"E5785C02-2950-4CDB-8398-8B999194F6E4","renderContextTable":{"__isSmartRef__":true,"id":11422},"eventHandler":{"__isSmartRef__":true,"id":11423},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11424},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11414},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11425},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11416":{"_Position":{"__isSmartRef__":true,"id":11417},"renderContextTable":{"__isSmartRef__":true,"id":11418},"_Extent":{"__isSmartRef__":true,"id":11419},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11420},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11421},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11417":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11418":{"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"},"11419":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11420":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11421":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11422":{"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"},"11423":{"morph":{"__isSmartRef__":true,"id":11415},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11424":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11425":{"toggle":{"__isSmartRef__":true,"id":11426},"toggleExpansion":{"__isSmartRef__":true,"id":11429}},"11426":{"varMapping":{"__isSmartRef__":true,"id":11427},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11427":{"this":{"__isSmartRef__":true,"id":11415}},"11428":{},"11429":{"varMapping":{"__isSmartRef__":true,"id":11430},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11430":{"this":{"__isSmartRef__":true,"id":11415}},"11431":{},"11432":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11433},"derivationIds":[null],"id":"3BE973DC-50B3-4FE9-B831-7C989C1C775B","renderContextTable":{"__isSmartRef__":true,"id":11437},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11438},{"__isSmartRef__":true,"id":11440}],"eventHandler":{"__isSmartRef__":true,"id":11442},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11443},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11414},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11444},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11433":{"_Position":{"__isSmartRef__":true,"id":11434},"renderContextTable":{"__isSmartRef__":true,"id":11435},"_Extent":{"__isSmartRef__":true,"id":11436},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11434":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11435":{"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"},"11436":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11437":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11438":{"style":{"__isSmartRef__":true,"id":11439},"chunkOwner":{"__isSmartRef__":true,"id":11432},"storedString":"renderContextTable","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11439":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11440":{"style":{"__isSmartRef__":true,"id":11441},"chunkOwner":{"__isSmartRef__":true,"id":11432},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11441":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11442":{"morph":{"__isSmartRef__":true,"id":11432},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11443":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11444":{"layoutText":{"__isSmartRef__":true,"id":11445}},"11445":{"varMapping":{"__isSmartRef__":true,"id":11446},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11446":{"this":{"__isSmartRef__":true,"id":11432}},"11447":{},"11448":{"_Position":{"__isSmartRef__":true,"id":11449},"renderContextTable":{"__isSmartRef__":true,"id":11450},"_Extent":{"__isSmartRef__":true,"id":11451},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11452},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11449":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11450":{"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"},"11451":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11452":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11453":{"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"},"11454":{"morph":{"__isSmartRef__":true,"id":11414},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11455":{"resizeWidth":true},"11456":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11457":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11458":{"updateExpanderColor":{"__isSmartRef__":true,"id":11459},"onMouseDown":{"__isSmartRef__":true,"id":11462},"isRoot":{"__isSmartRef__":true,"id":11469},"displayValue":{"__isSmartRef__":true,"id":11472},"update":{"__isSmartRef__":true,"id":11475}},"11459":{"varMapping":{"__isSmartRef__":true,"id":11460},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11460":{"this":{"__isSmartRef__":true,"id":11414}},"11461":{},"11462":{"varMapping":{"__isSmartRef__":true,"id":11463},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11463":{"this":{"__isSmartRef__":true,"id":11414},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11464}},"11464":{"$super":{"__isSmartRef__":true,"id":11465}},"11465":{"varMapping":{"__isSmartRef__":true,"id":11466},"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":11467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11466":{"obj":{"__isSmartRef__":true,"id":11414},"name":"onMouseDown"},"11467":{},"11468":{},"11469":{"varMapping":{"__isSmartRef__":true,"id":11470},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11470":{"this":{"__isSmartRef__":true,"id":11414}},"11471":{},"11472":{"varMapping":{"__isSmartRef__":true,"id":11473},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11473":{"this":{"__isSmartRef__":true,"id":11414}},"11474":{},"11475":{"varMapping":{"__isSmartRef__":true,"id":11476},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11476":{"this":{"__isSmartRef__":true,"id":11414}},"11477":{},"11478":{"_Position":{"__isSmartRef__":true,"id":11479},"renderContextTable":{"__isSmartRef__":true,"id":11480},"_Extent":{"__isSmartRef__":true,"id":11481},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11482},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11479":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11480":{"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"},"11481":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11482":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11483":{"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"},"11484":{"morph":{"__isSmartRef__":true,"id":11413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11485":{"layouter":{"__isSmartRef__":true,"id":11486},"resizeWidth":true},"11486":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11413},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11487":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11488":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11489":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11490}},"11490":{"varMapping":{"__isSmartRef__":true,"id":11491},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11491":{"this":{"__isSmartRef__":true,"id":11413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11492}},"11492":{"$super":{"__isSmartRef__":true,"id":11493}},"11493":{"varMapping":{"__isSmartRef__":true,"id":11494},"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":11495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11494":{"obj":{"__isSmartRef__":true,"id":11413},"name":"getLayoutableSubmorphs"},"11495":{},"11496":{},"11497":{"submorphs":[{"__isSmartRef__":true,"id":11498}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11562},"derivationIds":[null],"id":"8913E908-3802-4FA8-A129-4DB26ABAAD53","renderContextTable":{"__isSmartRef__":true,"id":11567},"eventHandler":{"__isSmartRef__":true,"id":11568},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11569},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11571},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11572},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11573},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11498":{"submorphs":[{"__isSmartRef__":true,"id":11499},{"__isSmartRef__":true,"id":11516}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11532},"derivationIds":[null],"id":"803F21E2-D3F7-443F-8859-12820BB0C71A","renderContextTable":{"__isSmartRef__":true,"id":11537},"eventHandler":{"__isSmartRef__":true,"id":11538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11539},"grabbingEnabled":false,"draggingEnabled":false,"data":"// changed on Thu Apr 19 2012 11:30:26 GMT+0200 (CEST) by huberthesse \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.getSelectionRange();\n console.log(textSelectionRange)\n console.log(this.textMorph.domSelection())\n if (!textSelectionRange) {\n this.textMorph.focus();\n this.textMorph.setSelectionRange(this.prevSelectionRange[0], this.prevSelectionRange[1]);\n } else {\n this.prevSelectionRange = textSelectionRange;\n }\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","361","362","363","364","365","366","367","368","369","370","371","372","373","374","375","376","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","398","399","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"savedTextString","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11499},"text":{"__isSmartRef__":true,"id":11516},"owner":{"__isSmartRef__":true,"id":11497},"_Position":{"__isSmartRef__":true,"id":11540},"priorExtent":{"__isSmartRef__":true,"id":11541},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11542},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11499":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11500},"derivationIds":[null],"id":"C9789CDF-1E0B-4728-AADA-31620B5B5AD4","renderContextTable":{"__isSmartRef__":true,"id":11506},"eventHandler":{"__isSmartRef__":true,"id":11507},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11508},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11509},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11500":{"_Position":{"__isSmartRef__":true,"id":11501},"renderContextTable":{"__isSmartRef__":true,"id":11502},"_Extent":{"__isSmartRef__":true,"id":11503},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11504},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11505},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11502":{"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"},"11503":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11504":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11505":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11506":{"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"},"11507":{"morph":{"__isSmartRef__":true,"id":11499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11508":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11509":{"toggle":{"__isSmartRef__":true,"id":11510},"toggleExpansion":{"__isSmartRef__":true,"id":11513}},"11510":{"varMapping":{"__isSmartRef__":true,"id":11511},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11511":{"this":{"__isSmartRef__":true,"id":11499}},"11512":{},"11513":{"varMapping":{"__isSmartRef__":true,"id":11514},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11514":{"this":{"__isSmartRef__":true,"id":11499}},"11515":{},"11516":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11517},"derivationIds":[null],"id":"7F0F2D17-AF1A-4473-AED2-4AE830AC566D","renderContextTable":{"__isSmartRef__":true,"id":11521},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11522},{"__isSmartRef__":true,"id":11524}],"eventHandler":{"__isSmartRef__":true,"id":11526},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11527},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11528},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11517":{"_Position":{"__isSmartRef__":true,"id":11518},"renderContextTable":{"__isSmartRef__":true,"id":11519},"_Extent":{"__isSmartRef__":true,"id":11520},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11518":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11519":{"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"},"11520":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11521":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11522":{"style":{"__isSmartRef__":true,"id":11523},"chunkOwner":{"__isSmartRef__":true,"id":11516},"storedString":"savedTextString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11523":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11524":{"style":{"__isSmartRef__":true,"id":11525},"chunkOwner":{"__isSmartRef__":true,"id":11516},"storedString":": // changed on Thu Apr 19 2012 11:30:26 GMT+0200 (CEST) by huberthesse \nfunction on...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11525":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11526":{"morph":{"__isSmartRef__":true,"id":11516},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11527":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11528":{"layoutText":{"__isSmartRef__":true,"id":11529}},"11529":{"varMapping":{"__isSmartRef__":true,"id":11530},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11530":{"this":{"__isSmartRef__":true,"id":11516}},"11531":{},"11532":{"_Position":{"__isSmartRef__":true,"id":11533},"renderContextTable":{"__isSmartRef__":true,"id":11534},"_Extent":{"__isSmartRef__":true,"id":11535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11534":{"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"},"11535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11537":{"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"},"11538":{"morph":{"__isSmartRef__":true,"id":11498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11539":{"resizeWidth":true},"11540":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11542":{"updateExpanderColor":{"__isSmartRef__":true,"id":11543},"onMouseDown":{"__isSmartRef__":true,"id":11546},"isRoot":{"__isSmartRef__":true,"id":11553},"displayValue":{"__isSmartRef__":true,"id":11556},"update":{"__isSmartRef__":true,"id":11559}},"11543":{"varMapping":{"__isSmartRef__":true,"id":11544},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11544":{"this":{"__isSmartRef__":true,"id":11498}},"11545":{},"11546":{"varMapping":{"__isSmartRef__":true,"id":11547},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11547":{"this":{"__isSmartRef__":true,"id":11498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11548}},"11548":{"$super":{"__isSmartRef__":true,"id":11549}},"11549":{"varMapping":{"__isSmartRef__":true,"id":11550},"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":11551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11550":{"obj":{"__isSmartRef__":true,"id":11498},"name":"onMouseDown"},"11551":{},"11552":{},"11553":{"varMapping":{"__isSmartRef__":true,"id":11554},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11554":{"this":{"__isSmartRef__":true,"id":11498}},"11555":{},"11556":{"varMapping":{"__isSmartRef__":true,"id":11557},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11557":{"this":{"__isSmartRef__":true,"id":11498}},"11558":{},"11559":{"varMapping":{"__isSmartRef__":true,"id":11560},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11560":{"this":{"__isSmartRef__":true,"id":11498}},"11561":{},"11562":{"_Position":{"__isSmartRef__":true,"id":11563},"renderContextTable":{"__isSmartRef__":true,"id":11564},"_Extent":{"__isSmartRef__":true,"id":11565},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11566},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11563":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11564":{"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"},"11565":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11566":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11567":{"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"},"11568":{"morph":{"__isSmartRef__":true,"id":11497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11569":{"layouter":{"__isSmartRef__":true,"id":11570},"resizeWidth":true},"11570":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11497},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11571":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11572":{"x":0,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11573":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11574}},"11574":{"varMapping":{"__isSmartRef__":true,"id":11575},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11575":{"this":{"__isSmartRef__":true,"id":11497},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11576}},"11576":{"$super":{"__isSmartRef__":true,"id":11577}},"11577":{"varMapping":{"__isSmartRef__":true,"id":11578},"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":11579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11578":{"obj":{"__isSmartRef__":true,"id":11497},"name":"getLayoutableSubmorphs"},"11579":{},"11580":{},"11581":{"submorphs":[{"__isSmartRef__":true,"id":11582}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11646},"derivationIds":[null],"id":"7C10EF9C-DCC6-45E1-B793-CE79BC2DD83F","renderContextTable":{"__isSmartRef__":true,"id":11651},"eventHandler":{"__isSmartRef__":true,"id":11652},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11653},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11655},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11657},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11582":{"submorphs":[{"__isSmartRef__":true,"id":11583},{"__isSmartRef__":true,"id":11600}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11616},"derivationIds":[null],"id":"6781BFEF-6F6E-4877-9D9A-119D5D1F4A64","renderContextTable":{"__isSmartRef__":true,"id":11621},"eventHandler":{"__isSmartRef__":true,"id":11622},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11623},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"scripts","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11583},"text":{"__isSmartRef__":true,"id":11600},"owner":{"__isSmartRef__":true,"id":11581},"_Position":{"__isSmartRef__":true,"id":11624},"priorExtent":{"__isSmartRef__":true,"id":11625},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11626},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11583":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11584},"derivationIds":[null],"id":"E2FD34D3-44B6-4E24-AD34-9FBEB19401D7","renderContextTable":{"__isSmartRef__":true,"id":11590},"eventHandler":{"__isSmartRef__":true,"id":11591},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11592},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11582},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11593},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11584":{"_Position":{"__isSmartRef__":true,"id":11585},"renderContextTable":{"__isSmartRef__":true,"id":11586},"_Extent":{"__isSmartRef__":true,"id":11587},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11588},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11589},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11585":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11586":{"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"},"11587":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11588":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11589":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11590":{"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"},"11591":{"morph":{"__isSmartRef__":true,"id":11583},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11592":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11593":{"toggle":{"__isSmartRef__":true,"id":11594},"toggleExpansion":{"__isSmartRef__":true,"id":11597}},"11594":{"varMapping":{"__isSmartRef__":true,"id":11595},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11595":{"this":{"__isSmartRef__":true,"id":11583}},"11596":{},"11597":{"varMapping":{"__isSmartRef__":true,"id":11598},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11598":{"this":{"__isSmartRef__":true,"id":11583}},"11599":{},"11600":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11601},"derivationIds":[null],"id":"767244F0-B7E2-4D05-A8E5-EF293B2E7030","renderContextTable":{"__isSmartRef__":true,"id":11605},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11606},{"__isSmartRef__":true,"id":11608}],"eventHandler":{"__isSmartRef__":true,"id":11610},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11611},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11582},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11612},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11601":{"_Position":{"__isSmartRef__":true,"id":11602},"renderContextTable":{"__isSmartRef__":true,"id":11603},"_Extent":{"__isSmartRef__":true,"id":11604},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11602":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11603":{"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"},"11604":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11605":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11606":{"style":{"__isSmartRef__":true,"id":11607},"chunkOwner":{"__isSmartRef__":true,"id":11600},"storedString":"scripts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11607":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11608":{"style":{"__isSmartRef__":true,"id":11609},"chunkOwner":{"__isSmartRef__":true,"id":11600},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11609":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11610":{"morph":{"__isSmartRef__":true,"id":11600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11611":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11612":{"layoutText":{"__isSmartRef__":true,"id":11613}},"11613":{"varMapping":{"__isSmartRef__":true,"id":11614},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11614":{"this":{"__isSmartRef__":true,"id":11600}},"11615":{},"11616":{"_Position":{"__isSmartRef__":true,"id":11617},"renderContextTable":{"__isSmartRef__":true,"id":11618},"_Extent":{"__isSmartRef__":true,"id":11619},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11620},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11617":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11618":{"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"},"11619":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11620":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11621":{"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"},"11622":{"morph":{"__isSmartRef__":true,"id":11582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11623":{"resizeWidth":true},"11624":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11625":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11626":{"updateExpanderColor":{"__isSmartRef__":true,"id":11627},"onMouseDown":{"__isSmartRef__":true,"id":11630},"isRoot":{"__isSmartRef__":true,"id":11637},"displayValue":{"__isSmartRef__":true,"id":11640},"update":{"__isSmartRef__":true,"id":11643}},"11627":{"varMapping":{"__isSmartRef__":true,"id":11628},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11628":{"this":{"__isSmartRef__":true,"id":11582}},"11629":{},"11630":{"varMapping":{"__isSmartRef__":true,"id":11631},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11631":{"this":{"__isSmartRef__":true,"id":11582},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11632}},"11632":{"$super":{"__isSmartRef__":true,"id":11633}},"11633":{"varMapping":{"__isSmartRef__":true,"id":11634},"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":11635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11634":{"obj":{"__isSmartRef__":true,"id":11582},"name":"onMouseDown"},"11635":{},"11636":{},"11637":{"varMapping":{"__isSmartRef__":true,"id":11638},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11638":{"this":{"__isSmartRef__":true,"id":11582}},"11639":{},"11640":{"varMapping":{"__isSmartRef__":true,"id":11641},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11641":{"this":{"__isSmartRef__":true,"id":11582}},"11642":{},"11643":{"varMapping":{"__isSmartRef__":true,"id":11644},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11644":{"this":{"__isSmartRef__":true,"id":11582}},"11645":{},"11646":{"_Position":{"__isSmartRef__":true,"id":11647},"renderContextTable":{"__isSmartRef__":true,"id":11648},"_Extent":{"__isSmartRef__":true,"id":11649},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11650},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11647":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11648":{"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"},"11649":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11650":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11651":{"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"},"11652":{"morph":{"__isSmartRef__":true,"id":11581},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11653":{"layouter":{"__isSmartRef__":true,"id":11654},"resizeWidth":true},"11654":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11581},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11655":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11656":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11657":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11658}},"11658":{"varMapping":{"__isSmartRef__":true,"id":11659},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11659":{"this":{"__isSmartRef__":true,"id":11581},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11660}},"11660":{"$super":{"__isSmartRef__":true,"id":11661}},"11661":{"varMapping":{"__isSmartRef__":true,"id":11662},"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":11663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11662":{"obj":{"__isSmartRef__":true,"id":11581},"name":"getLayoutableSubmorphs"},"11663":{},"11664":{},"11665":{"submorphs":[{"__isSmartRef__":true,"id":11666}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11730},"derivationIds":[null],"id":"8F02F363-62FC-4740-A398-8B3E627FAF63","renderContextTable":{"__isSmartRef__":true,"id":11735},"eventHandler":{"__isSmartRef__":true,"id":11736},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11737},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11739},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11740},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11741},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11666":{"submorphs":[{"__isSmartRef__":true,"id":11667},{"__isSmartRef__":true,"id":11684}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11700},"derivationIds":[null],"id":"46DDFD97-1944-4E8D-AB2F-AD7E7CADAECC","renderContextTable":{"__isSmartRef__":true,"id":11705},"eventHandler":{"__isSmartRef__":true,"id":11706},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11707},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":4633},"propertyList":["_Position","_Extent","_BorderWidth","_BorderColor","_Fill","__SourceModuleName__","_BorderRadius","renderContextTable","_Opacity","_BorderStyle","_ClipMode","_Padding","_renderContext"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"shape","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11667},"text":{"__isSmartRef__":true,"id":11684},"owner":{"__isSmartRef__":true,"id":11665},"_Position":{"__isSmartRef__":true,"id":11708},"priorExtent":{"__isSmartRef__":true,"id":11709},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11710},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11667":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11668},"derivationIds":[null],"id":"93945E1D-64AF-459B-BD94-B937B9B76E53","renderContextTable":{"__isSmartRef__":true,"id":11674},"eventHandler":{"__isSmartRef__":true,"id":11675},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11676},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11666},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11677},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11668":{"_Position":{"__isSmartRef__":true,"id":11669},"renderContextTable":{"__isSmartRef__":true,"id":11670},"_Extent":{"__isSmartRef__":true,"id":11671},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11672},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11673},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11669":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11670":{"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"},"11671":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11672":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11673":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11674":{"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"},"11675":{"morph":{"__isSmartRef__":true,"id":11667},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11676":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11677":{"toggle":{"__isSmartRef__":true,"id":11678},"toggleExpansion":{"__isSmartRef__":true,"id":11681}},"11678":{"varMapping":{"__isSmartRef__":true,"id":11679},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11679":{"this":{"__isSmartRef__":true,"id":11667}},"11680":{},"11681":{"varMapping":{"__isSmartRef__":true,"id":11682},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11682":{"this":{"__isSmartRef__":true,"id":11667}},"11683":{},"11684":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11685},"derivationIds":[null],"id":"12337F01-40DB-4D40-BEF2-3DB14EDB80F4","renderContextTable":{"__isSmartRef__":true,"id":11689},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11690},{"__isSmartRef__":true,"id":11692}],"eventHandler":{"__isSmartRef__":true,"id":11694},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11695},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11666},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11696},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11685":{"_Position":{"__isSmartRef__":true,"id":11686},"renderContextTable":{"__isSmartRef__":true,"id":11687},"_Extent":{"__isSmartRef__":true,"id":11688},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11686":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11687":{"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"},"11688":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11689":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11690":{"style":{"__isSmartRef__":true,"id":11691},"chunkOwner":{"__isSmartRef__":true,"id":11684},"storedString":"shape","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11691":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11692":{"style":{"__isSmartRef__":true,"id":11693},"chunkOwner":{"__isSmartRef__":true,"id":11684},"storedString":": Rectangle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11693":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11694":{"morph":{"__isSmartRef__":true,"id":11684},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11695":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11696":{"layoutText":{"__isSmartRef__":true,"id":11697}},"11697":{"varMapping":{"__isSmartRef__":true,"id":11698},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11698":{"this":{"__isSmartRef__":true,"id":11684}},"11699":{},"11700":{"_Position":{"__isSmartRef__":true,"id":11701},"renderContextTable":{"__isSmartRef__":true,"id":11702},"_Extent":{"__isSmartRef__":true,"id":11703},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11704},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11701":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11702":{"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"},"11703":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11704":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11705":{"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"},"11706":{"morph":{"__isSmartRef__":true,"id":11666},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11707":{"resizeWidth":true},"11708":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11709":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11710":{"updateExpanderColor":{"__isSmartRef__":true,"id":11711},"onMouseDown":{"__isSmartRef__":true,"id":11714},"isRoot":{"__isSmartRef__":true,"id":11721},"displayValue":{"__isSmartRef__":true,"id":11724},"update":{"__isSmartRef__":true,"id":11727}},"11711":{"varMapping":{"__isSmartRef__":true,"id":11712},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11712":{"this":{"__isSmartRef__":true,"id":11666}},"11713":{},"11714":{"varMapping":{"__isSmartRef__":true,"id":11715},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11715":{"this":{"__isSmartRef__":true,"id":11666},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11716}},"11716":{"$super":{"__isSmartRef__":true,"id":11717}},"11717":{"varMapping":{"__isSmartRef__":true,"id":11718},"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":11719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11718":{"obj":{"__isSmartRef__":true,"id":11666},"name":"onMouseDown"},"11719":{},"11720":{},"11721":{"varMapping":{"__isSmartRef__":true,"id":11722},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11722":{"this":{"__isSmartRef__":true,"id":11666}},"11723":{},"11724":{"varMapping":{"__isSmartRef__":true,"id":11725},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11725":{"this":{"__isSmartRef__":true,"id":11666}},"11726":{},"11727":{"varMapping":{"__isSmartRef__":true,"id":11728},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11728":{"this":{"__isSmartRef__":true,"id":11666}},"11729":{},"11730":{"_Position":{"__isSmartRef__":true,"id":11731},"renderContextTable":{"__isSmartRef__":true,"id":11732},"_Extent":{"__isSmartRef__":true,"id":11733},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11734},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11731":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11732":{"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"},"11733":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11734":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11735":{"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"},"11736":{"morph":{"__isSmartRef__":true,"id":11665},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11737":{"layouter":{"__isSmartRef__":true,"id":11738},"resizeWidth":true},"11738":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11665},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11739":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11740":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11741":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11742}},"11742":{"varMapping":{"__isSmartRef__":true,"id":11743},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11743":{"this":{"__isSmartRef__":true,"id":11665},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11744}},"11744":{"$super":{"__isSmartRef__":true,"id":11745}},"11745":{"varMapping":{"__isSmartRef__":true,"id":11746},"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":11747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11746":{"obj":{"__isSmartRef__":true,"id":11665},"name":"getLayoutableSubmorphs"},"11747":{},"11748":{},"11749":{"submorphs":[{"__isSmartRef__":true,"id":11750}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11814},"derivationIds":[null],"id":"24C410CF-F563-44FC-87FC-0A0C2A953904","renderContextTable":{"__isSmartRef__":true,"id":11819},"eventHandler":{"__isSmartRef__":true,"id":11820},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11821},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11823},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11824},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11825},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11750":{"submorphs":[{"__isSmartRef__":true,"id":11751},{"__isSmartRef__":true,"id":11768}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11784},"derivationIds":[null],"id":"676724FD-2EA2-4783-806B-C427409833CB","renderContextTable":{"__isSmartRef__":true,"id":11789},"eventHandler":{"__isSmartRef__":true,"id":11790},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11791},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"showsHalos","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11751},"text":{"__isSmartRef__":true,"id":11768},"owner":{"__isSmartRef__":true,"id":11749},"_Position":{"__isSmartRef__":true,"id":11792},"priorExtent":{"__isSmartRef__":true,"id":11793},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11794},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11751":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11752},"derivationIds":[null],"id":"3701CA1C-CC8C-4F36-96A6-BABE76BFC46E","renderContextTable":{"__isSmartRef__":true,"id":11758},"eventHandler":{"__isSmartRef__":true,"id":11759},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11760},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11761},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11752":{"_Position":{"__isSmartRef__":true,"id":11753},"renderContextTable":{"__isSmartRef__":true,"id":11754},"_Extent":{"__isSmartRef__":true,"id":11755},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11756},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11757},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11753":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11754":{"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"},"11755":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11756":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11757":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11758":{"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"},"11759":{"morph":{"__isSmartRef__":true,"id":11751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11760":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11761":{"toggle":{"__isSmartRef__":true,"id":11762},"toggleExpansion":{"__isSmartRef__":true,"id":11765}},"11762":{"varMapping":{"__isSmartRef__":true,"id":11763},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11763":{"this":{"__isSmartRef__":true,"id":11751}},"11764":{},"11765":{"varMapping":{"__isSmartRef__":true,"id":11766},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11766":{"this":{"__isSmartRef__":true,"id":11751}},"11767":{},"11768":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11769},"derivationIds":[null],"id":"F8BB7864-9075-4DAD-8643-6E264B60A68A","renderContextTable":{"__isSmartRef__":true,"id":11773},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11774},{"__isSmartRef__":true,"id":11776}],"eventHandler":{"__isSmartRef__":true,"id":11778},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11779},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11780},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11769":{"_Position":{"__isSmartRef__":true,"id":11770},"renderContextTable":{"__isSmartRef__":true,"id":11771},"_Extent":{"__isSmartRef__":true,"id":11772},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11770":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11771":{"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"},"11772":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11773":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11774":{"style":{"__isSmartRef__":true,"id":11775},"chunkOwner":{"__isSmartRef__":true,"id":11768},"storedString":"showsHalos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11775":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11776":{"style":{"__isSmartRef__":true,"id":11777},"chunkOwner":{"__isSmartRef__":true,"id":11768},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11777":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11778":{"morph":{"__isSmartRef__":true,"id":11768},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11779":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11780":{"layoutText":{"__isSmartRef__":true,"id":11781}},"11781":{"varMapping":{"__isSmartRef__":true,"id":11782},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11782":{"this":{"__isSmartRef__":true,"id":11768}},"11783":{},"11784":{"_Position":{"__isSmartRef__":true,"id":11785},"renderContextTable":{"__isSmartRef__":true,"id":11786},"_Extent":{"__isSmartRef__":true,"id":11787},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11788},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11785":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11786":{"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"},"11787":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11788":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11789":{"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"},"11790":{"morph":{"__isSmartRef__":true,"id":11750},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11791":{"resizeWidth":true},"11792":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11793":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11794":{"updateExpanderColor":{"__isSmartRef__":true,"id":11795},"onMouseDown":{"__isSmartRef__":true,"id":11798},"isRoot":{"__isSmartRef__":true,"id":11805},"displayValue":{"__isSmartRef__":true,"id":11808},"update":{"__isSmartRef__":true,"id":11811}},"11795":{"varMapping":{"__isSmartRef__":true,"id":11796},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11796":{"this":{"__isSmartRef__":true,"id":11750}},"11797":{},"11798":{"varMapping":{"__isSmartRef__":true,"id":11799},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11799":{"this":{"__isSmartRef__":true,"id":11750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11800}},"11800":{"$super":{"__isSmartRef__":true,"id":11801}},"11801":{"varMapping":{"__isSmartRef__":true,"id":11802},"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":11803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11802":{"obj":{"__isSmartRef__":true,"id":11750},"name":"onMouseDown"},"11803":{},"11804":{},"11805":{"varMapping":{"__isSmartRef__":true,"id":11806},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11806":{"this":{"__isSmartRef__":true,"id":11750}},"11807":{},"11808":{"varMapping":{"__isSmartRef__":true,"id":11809},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11809":{"this":{"__isSmartRef__":true,"id":11750}},"11810":{},"11811":{"varMapping":{"__isSmartRef__":true,"id":11812},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11812":{"this":{"__isSmartRef__":true,"id":11750}},"11813":{},"11814":{"_Position":{"__isSmartRef__":true,"id":11815},"renderContextTable":{"__isSmartRef__":true,"id":11816},"_Extent":{"__isSmartRef__":true,"id":11817},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11818},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11815":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11816":{"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"},"11817":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11818":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11819":{"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"},"11820":{"morph":{"__isSmartRef__":true,"id":11749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11821":{"layouter":{"__isSmartRef__":true,"id":11822},"resizeWidth":true},"11822":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11749},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11823":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11824":{"x":0,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11825":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11826}},"11826":{"varMapping":{"__isSmartRef__":true,"id":11827},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11827":{"this":{"__isSmartRef__":true,"id":11749},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11828}},"11828":{"$super":{"__isSmartRef__":true,"id":11829}},"11829":{"varMapping":{"__isSmartRef__":true,"id":11830},"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":11831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11830":{"obj":{"__isSmartRef__":true,"id":11749},"name":"getLayoutableSubmorphs"},"11831":{},"11832":{},"11833":{"submorphs":[{"__isSmartRef__":true,"id":11834}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11898},"derivationIds":[null],"id":"0210EDCD-8C6F-4C41-BE3F-5500E962A7CF","renderContextTable":{"__isSmartRef__":true,"id":11903},"eventHandler":{"__isSmartRef__":true,"id":11904},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11905},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11907},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11908},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11909},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11834":{"submorphs":[{"__isSmartRef__":true,"id":11835},{"__isSmartRef__":true,"id":11852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11868},"derivationIds":[null],"id":"5177F586-A4AA-4703-A668-ED2F38377DA8","renderContextTable":{"__isSmartRef__":true,"id":11873},"eventHandler":{"__isSmartRef__":true,"id":11874},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11875},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":6742},"propertyList":["submorphs","scripts","shape","id","renderContextTable","_WhiteSpaceHandling","textChunks","eventHandler","grabbingEnabled","droppingEnabled","halosEnabled","_ClipMode","fixedWidth","fixedHeight","allowInput","_FontFamily","_FontSize","_Position","priorExtent","_MaxTextWidth","_MinTextWidth","_MaxTextHeight","_MinTextHeight","evalEnabled","_Align","_VerticalAlign","_TextColor","owner","__SourceModuleName__","_Rotation","_Scale","charsTyped"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"statusMorph","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11835},"text":{"__isSmartRef__":true,"id":11852},"owner":{"__isSmartRef__":true,"id":11833},"_Position":{"__isSmartRef__":true,"id":11876},"priorExtent":{"__isSmartRef__":true,"id":11877},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11878},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11835":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11836},"derivationIds":[null],"id":"8643AC76-0CE1-4B0B-B508-770FEFDE4DE1","renderContextTable":{"__isSmartRef__":true,"id":11842},"eventHandler":{"__isSmartRef__":true,"id":11843},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11844},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11834},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11845},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11836":{"_Position":{"__isSmartRef__":true,"id":11837},"renderContextTable":{"__isSmartRef__":true,"id":11838},"_Extent":{"__isSmartRef__":true,"id":11839},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11840},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11841},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11837":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11838":{"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"},"11839":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11840":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11841":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11842":{"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"},"11843":{"morph":{"__isSmartRef__":true,"id":11835},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11844":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11845":{"toggle":{"__isSmartRef__":true,"id":11846},"toggleExpansion":{"__isSmartRef__":true,"id":11849}},"11846":{"varMapping":{"__isSmartRef__":true,"id":11847},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11847":{"this":{"__isSmartRef__":true,"id":11835}},"11848":{},"11849":{"varMapping":{"__isSmartRef__":true,"id":11850},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11850":{"this":{"__isSmartRef__":true,"id":11835}},"11851":{},"11852":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11853},"derivationIds":[null],"id":"813345F2-C24F-4E2D-B74E-E0AF946FEBDB","renderContextTable":{"__isSmartRef__":true,"id":11857},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11858},{"__isSmartRef__":true,"id":11860}],"eventHandler":{"__isSmartRef__":true,"id":11862},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11863},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11834},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11864},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11853":{"_Position":{"__isSmartRef__":true,"id":11854},"renderContextTable":{"__isSmartRef__":true,"id":11855},"_Extent":{"__isSmartRef__":true,"id":11856},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11854":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11855":{"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"},"11856":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11857":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11858":{"style":{"__isSmartRef__":true,"id":11859},"chunkOwner":{"__isSmartRef__":true,"id":11852},"storedString":"statusMorph","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11859":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11860":{"style":{"__isSmartRef__":true,"id":11861},"chunkOwner":{"__isSmartRef__":true,"id":11852},"storedString":": Text","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11861":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11862":{"morph":{"__isSmartRef__":true,"id":11852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11863":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11864":{"layoutText":{"__isSmartRef__":true,"id":11865}},"11865":{"varMapping":{"__isSmartRef__":true,"id":11866},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11866":{"this":{"__isSmartRef__":true,"id":11852}},"11867":{},"11868":{"_Position":{"__isSmartRef__":true,"id":11869},"renderContextTable":{"__isSmartRef__":true,"id":11870},"_Extent":{"__isSmartRef__":true,"id":11871},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11872},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11869":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11870":{"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"},"11871":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11872":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11873":{"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"},"11874":{"morph":{"__isSmartRef__":true,"id":11834},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11875":{"resizeWidth":true},"11876":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11877":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11878":{"updateExpanderColor":{"__isSmartRef__":true,"id":11879},"onMouseDown":{"__isSmartRef__":true,"id":11882},"isRoot":{"__isSmartRef__":true,"id":11889},"displayValue":{"__isSmartRef__":true,"id":11892},"update":{"__isSmartRef__":true,"id":11895}},"11879":{"varMapping":{"__isSmartRef__":true,"id":11880},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11880":{"this":{"__isSmartRef__":true,"id":11834}},"11881":{},"11882":{"varMapping":{"__isSmartRef__":true,"id":11883},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11883":{"this":{"__isSmartRef__":true,"id":11834},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11884}},"11884":{"$super":{"__isSmartRef__":true,"id":11885}},"11885":{"varMapping":{"__isSmartRef__":true,"id":11886},"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":11887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11886":{"obj":{"__isSmartRef__":true,"id":11834},"name":"onMouseDown"},"11887":{},"11888":{},"11889":{"varMapping":{"__isSmartRef__":true,"id":11890},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11890":{"this":{"__isSmartRef__":true,"id":11834}},"11891":{},"11892":{"varMapping":{"__isSmartRef__":true,"id":11893},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11893":{"this":{"__isSmartRef__":true,"id":11834}},"11894":{},"11895":{"varMapping":{"__isSmartRef__":true,"id":11896},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11896":{"this":{"__isSmartRef__":true,"id":11834}},"11897":{},"11898":{"_Position":{"__isSmartRef__":true,"id":11899},"renderContextTable":{"__isSmartRef__":true,"id":11900},"_Extent":{"__isSmartRef__":true,"id":11901},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11902},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11899":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11900":{"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"},"11901":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11902":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11903":{"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"},"11904":{"morph":{"__isSmartRef__":true,"id":11833},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11905":{"layouter":{"__isSmartRef__":true,"id":11906},"resizeWidth":true},"11906":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11833},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11907":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11908":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11909":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11910}},"11910":{"varMapping":{"__isSmartRef__":true,"id":11911},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11911":{"this":{"__isSmartRef__":true,"id":11833},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11912}},"11912":{"$super":{"__isSmartRef__":true,"id":11913}},"11913":{"varMapping":{"__isSmartRef__":true,"id":11914},"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":11915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11914":{"obj":{"__isSmartRef__":true,"id":11833},"name":"getLayoutableSubmorphs"},"11915":{},"11916":{},"11917":{"submorphs":[{"__isSmartRef__":true,"id":11918}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11982},"derivationIds":[null],"id":"4BB4516B-CE3D-4D1A-9FE6-1191731F00DD","renderContextTable":{"__isSmartRef__":true,"id":11987},"eventHandler":{"__isSmartRef__":true,"id":11988},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11989},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11991},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":11992},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11993},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11918":{"submorphs":[{"__isSmartRef__":true,"id":11919},{"__isSmartRef__":true,"id":11936}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11952},"derivationIds":[null],"id":"08E771EB-FA45-4069-B7F4-D8250E930F2E","renderContextTable":{"__isSmartRef__":true,"id":11957},"eventHandler":{"__isSmartRef__":true,"id":11958},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11959},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"submorphs","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":11919},"text":{"__isSmartRef__":true,"id":11936},"owner":{"__isSmartRef__":true,"id":11917},"_Position":{"__isSmartRef__":true,"id":11960},"priorExtent":{"__isSmartRef__":true,"id":11961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11962},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11919":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11920},"derivationIds":[null],"id":"C89AB794-F6C2-4B10-9F58-C30F36A58CC3","renderContextTable":{"__isSmartRef__":true,"id":11926},"eventHandler":{"__isSmartRef__":true,"id":11927},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11928},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11929},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11920":{"_Position":{"__isSmartRef__":true,"id":11921},"renderContextTable":{"__isSmartRef__":true,"id":11922},"_Extent":{"__isSmartRef__":true,"id":11923},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11924},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":11925},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11921":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11922":{"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"},"11923":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11924":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11925":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11926":{"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"},"11927":{"morph":{"__isSmartRef__":true,"id":11919},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11928":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11929":{"toggle":{"__isSmartRef__":true,"id":11930},"toggleExpansion":{"__isSmartRef__":true,"id":11933}},"11930":{"varMapping":{"__isSmartRef__":true,"id":11931},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11931":{"this":{"__isSmartRef__":true,"id":11919}},"11932":{},"11933":{"varMapping":{"__isSmartRef__":true,"id":11934},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11934":{"this":{"__isSmartRef__":true,"id":11919}},"11935":{},"11936":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11937},"derivationIds":[null],"id":"D0D66098-01F1-41FB-A549-3273A84E285B","renderContextTable":{"__isSmartRef__":true,"id":11941},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11942},{"__isSmartRef__":true,"id":11944}],"eventHandler":{"__isSmartRef__":true,"id":11946},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":11947},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":11918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11948},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11937":{"_Position":{"__isSmartRef__":true,"id":11938},"renderContextTable":{"__isSmartRef__":true,"id":11939},"_Extent":{"__isSmartRef__":true,"id":11940},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11938":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11939":{"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"},"11940":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11941":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11942":{"style":{"__isSmartRef__":true,"id":11943},"chunkOwner":{"__isSmartRef__":true,"id":11936},"storedString":"submorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11943":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11944":{"style":{"__isSmartRef__":true,"id":11945},"chunkOwner":{"__isSmartRef__":true,"id":11936},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11945":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11946":{"morph":{"__isSmartRef__":true,"id":11936},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11947":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11948":{"layoutText":{"__isSmartRef__":true,"id":11949}},"11949":{"varMapping":{"__isSmartRef__":true,"id":11950},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":11951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11950":{"this":{"__isSmartRef__":true,"id":11936}},"11951":{},"11952":{"_Position":{"__isSmartRef__":true,"id":11953},"renderContextTable":{"__isSmartRef__":true,"id":11954},"_Extent":{"__isSmartRef__":true,"id":11955},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11956},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11953":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11954":{"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"},"11955":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11956":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11957":{"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"},"11958":{"morph":{"__isSmartRef__":true,"id":11918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11959":{"resizeWidth":true},"11960":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11961":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11962":{"updateExpanderColor":{"__isSmartRef__":true,"id":11963},"onMouseDown":{"__isSmartRef__":true,"id":11966},"isRoot":{"__isSmartRef__":true,"id":11973},"displayValue":{"__isSmartRef__":true,"id":11976},"update":{"__isSmartRef__":true,"id":11979}},"11963":{"varMapping":{"__isSmartRef__":true,"id":11964},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11964":{"this":{"__isSmartRef__":true,"id":11918}},"11965":{},"11966":{"varMapping":{"__isSmartRef__":true,"id":11967},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11967":{"this":{"__isSmartRef__":true,"id":11918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11968}},"11968":{"$super":{"__isSmartRef__":true,"id":11969}},"11969":{"varMapping":{"__isSmartRef__":true,"id":11970},"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":11971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11970":{"obj":{"__isSmartRef__":true,"id":11918},"name":"onMouseDown"},"11971":{},"11972":{},"11973":{"varMapping":{"__isSmartRef__":true,"id":11974},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11974":{"this":{"__isSmartRef__":true,"id":11918}},"11975":{},"11976":{"varMapping":{"__isSmartRef__":true,"id":11977},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11977":{"this":{"__isSmartRef__":true,"id":11918}},"11978":{},"11979":{"varMapping":{"__isSmartRef__":true,"id":11980},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11980":{"this":{"__isSmartRef__":true,"id":11918}},"11981":{},"11982":{"_Position":{"__isSmartRef__":true,"id":11983},"renderContextTable":{"__isSmartRef__":true,"id":11984},"_Extent":{"__isSmartRef__":true,"id":11985},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11986},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11983":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11984":{"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"},"11985":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11986":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11987":{"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"},"11988":{"morph":{"__isSmartRef__":true,"id":11917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11989":{"layouter":{"__isSmartRef__":true,"id":11990},"resizeWidth":true},"11990":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11917},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11991":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11992":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11993":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11994}},"11994":{"varMapping":{"__isSmartRef__":true,"id":11995},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11995":{"this":{"__isSmartRef__":true,"id":11917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11996}},"11996":{"$super":{"__isSmartRef__":true,"id":11997}},"11997":{"varMapping":{"__isSmartRef__":true,"id":11998},"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":11999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11998":{"obj":{"__isSmartRef__":true,"id":11917},"name":"getLayoutableSubmorphs"},"11999":{},"12000":{},"12001":{"submorphs":[{"__isSmartRef__":true,"id":12002}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12066},"derivationIds":[null],"id":"0657F82D-F3E4-458A-BC47-0FD43DD54DDB","renderContextTable":{"__isSmartRef__":true,"id":12071},"eventHandler":{"__isSmartRef__":true,"id":12072},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12073},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12075},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":12076},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12077},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12002":{"submorphs":[{"__isSmartRef__":true,"id":12003},{"__isSmartRef__":true,"id":12020}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12036},"derivationIds":[null],"id":"627AA41B-E1EC-4077-B1D4-8DF5DD09096D","renderContextTable":{"__isSmartRef__":true,"id":12041},"eventHandler":{"__isSmartRef__":true,"id":12042},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12043},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":4641}],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"textChunks","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":12003},"text":{"__isSmartRef__":true,"id":12020},"owner":{"__isSmartRef__":true,"id":12001},"_Position":{"__isSmartRef__":true,"id":12044},"priorExtent":{"__isSmartRef__":true,"id":12045},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12046},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12003":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12004},"derivationIds":[null],"id":"2254F5F4-840D-4518-922C-7038C8816AA5","renderContextTable":{"__isSmartRef__":true,"id":12010},"eventHandler":{"__isSmartRef__":true,"id":12011},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12012},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12002},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12013},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12004":{"_Position":{"__isSmartRef__":true,"id":12005},"renderContextTable":{"__isSmartRef__":true,"id":12006},"_Extent":{"__isSmartRef__":true,"id":12007},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12008},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":12009},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12005":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12006":{"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"},"12007":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12008":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12009":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12010":{"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"},"12011":{"morph":{"__isSmartRef__":true,"id":12003},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12012":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12013":{"toggle":{"__isSmartRef__":true,"id":12014},"toggleExpansion":{"__isSmartRef__":true,"id":12017}},"12014":{"varMapping":{"__isSmartRef__":true,"id":12015},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12015":{"this":{"__isSmartRef__":true,"id":12003}},"12016":{},"12017":{"varMapping":{"__isSmartRef__":true,"id":12018},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12018":{"this":{"__isSmartRef__":true,"id":12003}},"12019":{},"12020":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12021},"derivationIds":[null],"id":"2717738B-AA3E-41AB-A341-51E16115FC74","renderContextTable":{"__isSmartRef__":true,"id":12025},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12026},{"__isSmartRef__":true,"id":12028}],"eventHandler":{"__isSmartRef__":true,"id":12030},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":12031},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":12002},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12032},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12021":{"_Position":{"__isSmartRef__":true,"id":12022},"renderContextTable":{"__isSmartRef__":true,"id":12023},"_Extent":{"__isSmartRef__":true,"id":12024},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12022":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12023":{"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"},"12024":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12025":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12026":{"style":{"__isSmartRef__":true,"id":12027},"chunkOwner":{"__isSmartRef__":true,"id":12020},"storedString":"textChunks","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12027":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12028":{"style":{"__isSmartRef__":true,"id":12029},"chunkOwner":{"__isSmartRef__":true,"id":12020},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12029":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12030":{"morph":{"__isSmartRef__":true,"id":12020},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12031":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12032":{"layoutText":{"__isSmartRef__":true,"id":12033}},"12033":{"varMapping":{"__isSmartRef__":true,"id":12034},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":12035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12034":{"this":{"__isSmartRef__":true,"id":12020}},"12035":{},"12036":{"_Position":{"__isSmartRef__":true,"id":12037},"renderContextTable":{"__isSmartRef__":true,"id":12038},"_Extent":{"__isSmartRef__":true,"id":12039},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12040},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12037":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12038":{"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"},"12039":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12040":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12041":{"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"},"12042":{"morph":{"__isSmartRef__":true,"id":12002},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12043":{"resizeWidth":true},"12044":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12045":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12046":{"updateExpanderColor":{"__isSmartRef__":true,"id":12047},"onMouseDown":{"__isSmartRef__":true,"id":12050},"isRoot":{"__isSmartRef__":true,"id":12057},"displayValue":{"__isSmartRef__":true,"id":12060},"update":{"__isSmartRef__":true,"id":12063}},"12047":{"varMapping":{"__isSmartRef__":true,"id":12048},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12048":{"this":{"__isSmartRef__":true,"id":12002}},"12049":{},"12050":{"varMapping":{"__isSmartRef__":true,"id":12051},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12051":{"this":{"__isSmartRef__":true,"id":12002},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12052}},"12052":{"$super":{"__isSmartRef__":true,"id":12053}},"12053":{"varMapping":{"__isSmartRef__":true,"id":12054},"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":12055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12054":{"obj":{"__isSmartRef__":true,"id":12002},"name":"onMouseDown"},"12055":{},"12056":{},"12057":{"varMapping":{"__isSmartRef__":true,"id":12058},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12058":{"this":{"__isSmartRef__":true,"id":12002}},"12059":{},"12060":{"varMapping":{"__isSmartRef__":true,"id":12061},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12061":{"this":{"__isSmartRef__":true,"id":12002}},"12062":{},"12063":{"varMapping":{"__isSmartRef__":true,"id":12064},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12064":{"this":{"__isSmartRef__":true,"id":12002}},"12065":{},"12066":{"_Position":{"__isSmartRef__":true,"id":12067},"renderContextTable":{"__isSmartRef__":true,"id":12068},"_Extent":{"__isSmartRef__":true,"id":12069},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12070},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12067":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12068":{"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"},"12069":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12070":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12071":{"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"},"12072":{"morph":{"__isSmartRef__":true,"id":12001},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12073":{"layouter":{"__isSmartRef__":true,"id":12074},"resizeWidth":true},"12074":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12001},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12075":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12076":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12077":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12078}},"12078":{"varMapping":{"__isSmartRef__":true,"id":12079},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12079":{"this":{"__isSmartRef__":true,"id":12001},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12080}},"12080":{"$super":{"__isSmartRef__":true,"id":12081}},"12081":{"varMapping":{"__isSmartRef__":true,"id":12082},"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":12083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12082":{"obj":{"__isSmartRef__":true,"id":12001},"name":"getLayoutableSubmorphs"},"12083":{},"12084":{},"12085":{"submorphs":[{"__isSmartRef__":true,"id":12086}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12150},"derivationIds":[null],"id":"CCE63C4B-CCE6-4E06-BEB9-A122D2B78404","renderContextTable":{"__isSmartRef__":true,"id":12155},"eventHandler":{"__isSmartRef__":true,"id":12156},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12157},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12159},"owner":{"__isSmartRef__":true,"id":6852},"_Position":{"__isSmartRef__":true,"id":12160},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12161},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12086":{"submorphs":[{"__isSmartRef__":true,"id":12087},{"__isSmartRef__":true,"id":12104}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12120},"derivationIds":[null],"id":"F1EB8ED3-298D-41FA-AB77-38AEF2A10F2E","renderContextTable":{"__isSmartRef__":true,"id":12125},"eventHandler":{"__isSmartRef__":true,"id":12126},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12127},"grabbingEnabled":false,"draggingEnabled":false,"data":"// changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefined \nfunction onMouseDown() {\n var textSelectionRange = this.textMorph.priorSelectionRange;\n // todo: after insert, update the selection range\n this.textMorph.focus();\n this.textMorph.setSelectionRange(textSelectionRange[0], textSelectionRange[1]);\n this.textMorph.insertAtCursor(\"{\", true, true);\n}","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","361","362","363","364","365","366","367","368","369","370","371","372","373","374","375","376","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","398","399","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","545","546","547","548","549","550","551","552","553","554","555","556","557","558","559","560","561","562","563","564","565","566","567","568","569","570","571","572","573","574","575","576","577","578","579","580","581","582","583","584","585","586","587","588","589","590","591","592","593","594","595","596","597","598","599","600","601","602","603","604","605","606","607","608","609","610","611","612","613","614","615","616","617","618","619","620","621","622","623","624","625","626","627","628","629","630","631","632","633","634","635","636","637","638","639","640","641","642","643","644","645","646","647","648","649","650","651","652","653","654","655","656","657","658","659","660","661","662","663","664","665","666","667","668","669","670","671","672","673","674","675","676","677","678","679","680","681","682","683","684","685","686","687","688","689","690","691","692","693","694","695","696","697","698","699","700","701","702","703","704","705","706","707","708","709","710","711","712","713","714","715","716","717","718","719","720","721","722","723","724","725","726","727","728","729","730","731","732","733","734","735","736","737","738","739","740","741","742","743","744","745","746","747","748","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","869","870","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","910","911","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","955","956","957","958","959","960","961","962","963","964","965","966","967","968","969","970","971","972","973","974","975","976","977","978","979","980","981","982","983","984","985","986","987","988","989","990","991","992","993","994","995","996","997","998","999","1000","1001","1002","1003","1004","1005","1006","1007","1008","1009","1010","1011","1012","1013","1014","1015","1016","1017","1018","1019","1020","1021","1022","1023","1024","1025","1026","1027","1028","1029","1030","1031","1032","1033","1034","1035","1036","1037","1038","1039","1040","1041","1042","1043","1044","1045","1046","1047","1048","1049","1050","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1079","1080","1081","1082","1083","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1108","1109","1110","1111","1112","1113","1114","1115","1116","1117","1118","1119","1120","1121","1122","1123","1124","1125","1126","1127","1128","1129","1130","1131","1132","1133","1134","1135","1136","1137","1138","1139","1140","1141","1142","1143","1144","1145","1146","1147","1148","1149","1150","1151","1152","1153","1154","1155","1156","1157","1158","1159","1160","1161","1162","1163","1164","1165","1166","1167","1168","1169","1170","1171","1172","1173","1174","1175","1176","1177","1178","1179","1180","1181","1182","1183","1184","1185","1186","1187","1188","1189","1190","1191","1192","1193","1194","1195","1196","1197","1198","1199","1200","1201","1202","1203","1204","1205","1206","1207","1208","1209","1210","1211","1212","1213","1214","1215","1216","1217","1218","1219","1220","1221","1222","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1278","1279","1280","1281","1282","1283","1284","1285","1286","1287","1288","1289","1290","1291","1292","1293","1294","1295","1296","1297","1298","1299","1300","1301","1302","1303","1304","1305","1306","1307","1308","1309","1310","1311","1312","1313","1314","1315","1316","1317","1318","1319","1320","1321","1322","1323","1324","1325","1326","1327","1328","1329","1330","1331","1332","1333","1334","1335","1336","1337","1338","1339","1340","1341","1342","1343","1344","1345","1346","1347","1348","1349","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1399","1400","1401","1402","1403","1404","1405","1406","1407","1408","1409","1410","1411","1412","1413","1414","1415","1416","1417","1418","1419","1420","1421","1422","1423","1424","1425","1426","1427","1428","1429","1430","1431","1432","1433","1434","1435","1436","1437","1438","1439","1440","1441","1442","1443","1444","1445","1446","1447","1448","1449","1450","1451","1452","1453","1454","1455","1456","1457","1458","1459","1460","1461","1462","1463","1464","1465","1466","1467","1468","1469","1470","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1544","1545","1546","1547","1548","1549","1550","1551","1552","1553","1554","1555","1556","1557","1558","1559","1560","1561","1562","1563","1564","1565","1566","1567","1568","1569","1570","1571","1572","1573","1574","1575","1576","1577","1578","1579","1580","1581","1582","1583","1584","1585","1586","1587","1588","1589","1590","1591","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1623","1624","1625","1626","1627","1628","1629","1630","1631","1632","1633","1634","1635","1636","1637","1638","1639","1640","1641","1642","1643","1644","1645","1646","1647","1648","1649","1650","1651","1652","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1834","1835","1836","1837","1838","1839","1840","1841","1842","1843","1844","1845","1846","1847","1848","1849","1850","1851","1852","1853","1854","1855","1856","1857","1858","1859","1860","1861","1862","1863","1864","1865","1866","1867","1868","1869","1870","1871","1872","1873","1874","1875","1876","1877","1878","1879","1880","1881","1882","1883","1884","1885","1886","1887","1888","1889","1890","1891","1892","1893","1894","1895","1896","1897","1898","1899","1900","1901","1902","1903","1904","1905","1906","1907","1908","1909","1910","1911","1912","1913","1914","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1927","1928","1929","1930","1931","1932","1933","1934","1935","1936","1937","1938","1939","1940","1941","1942","1943","1944","1945","1946","1947","1948","1949","1950","1951","1952","1953","1954","1955","1956","1957","1958","1959","1960","1961","1962","1963","1964","1965","1966","1967","1968","1969","1970","1971","1972","1973","1974","1975","1976","1977","1978","1979","1980","1981","1982","1983","1984","1985","1986","1987","1988","1989","1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050","2051","2052","2053","2054","2055","2056","2057","2058","2059","2060","2061","2062","2063","2064","2065","2066","2067","2068","2069","2070","2071","2072","2073","2074","2075","2076","2077","2078","2079","2080","2081","2082","2083","2084","2085","2086","2087","2088","2089","2090","2091","2092","2093","2094","2095","2096","2097","2098","2099","2100","2101","2102","2103","2104","2105","2106","2107","2108","2109","2110","2111","2112","2113","2114","2115","2116","2117","2118","2119","2120","2121","2122","2123","2124","2125","2126","2127","2128","2129","2130","2131","2132","2133","2134","2135","2136","2137","2138","2139","2140","2141","2142","2143","2144","2145","2146","2147","2148","2149","2150","2151","2152","2153","2154","2155","2156","2157","2158","2159","2160","2161","2162","2163","2164","2165","2166","2167","2168","2169","2170","2171","2172","2173","2174","2175","2176","2177","2178","2179","2180","2181","2182","2183","2184","2185","2186","2187","2188","2189","2190","2191","2192","2193","2194","2195","2196","2197","2198","2199","2200","2201","2202","2203","2204","2205","2206","2207","2208","2209","2210","2211","2212","2213","2214","2215","2216","2217","2218","2219","2220","2221","2222","2223","2224","2225","2226","2227","2228","2229","2230","2231","2232","2233","2234","2235","2236","2237","2238","2239","2240","2241","2242","2243","2244","2245","2246","2247","2248","2249","2250","2251","2252","2253","2254","2255","2256","2257","2258","2259","2260","2261","2262","2263","2264","2265","2266","2267","2268","2269","2270","2271","2272","2273","2274","2275","2276","2277","2278","2279","2280","2281","2282","2283","2284","2285","2286","2287","2288","2289","2290","2291","2292","2293","2294","2295","2296","2297","2298","2299","2300","2301","2302","2303","2304","2305","2306","2307","2308","2309","2310","2311","2312","2313","2314","2315","2316","2317","2318","2319","2320","2321","2322","2323","2324","2325","2326","2327","2328","2329","2330","2331","2332","2333","2334","2335","2336","2337","2338","2339","2340","2341","2342","2343","2344","2345","2346","2347","2348","2349","2350","2351","2352","2353","2354","2355","2356","2357","2358","2359","2360","2361","2362","2363","2364","2365","2366","2367","2368","2369","2370","2371","2372","2373","2374","2375","2376","2377","2378","2379","2380","2381","2382","2383","2384","2385","2386","2387","2388","2389","2390","2391","2392","2393","2394","2395","2396","2397","2398","2399","2400","2401","2402","2403","2404","2405","2406","2407","2408","2409","2410","2411","2412","2413","2414","2415","2416","2417","2418","2419","2420","2421","2422","2423","2424","2425","2426","2427","2428","2429","2430","2431","2432","2433","2434","2435","2436","2437","2438","2439","2440","2441","2442","2443","2444","2445","2446","2447","2448","2449","2450","2451","2452","2453","2454","2455","2456","2457","2458","2459","2460","2461","2462","2463","2464","2465","2466","2467","2468","2469","2470","2471","2472","2473","2474","2475","2476","2477","2478","2479","2480","2481","2482","2483","2484","2485","2486","2487","2488","2489","2490","2491","2492","2493","2494","2495","2496","2497","2498","2499","2500","2501","2502","2503","2504","2505","2506","2507","2508","2509","2510","2511","2512","2513","2514","2515","2516","2517","2518","2519","2520","2521","2522","2523","2524","2525","2526","2527","2528","2529","2530","2531","2532","2533","2534","2535","2536","2537","2538","2539","2540","2541","2542","2543","2544","2545","2546","2547","2548","2549","2550","2551","2552","2553","2554","2555","2556","2557","2558","2559","2560","2561","2562","2563","2564","2565","2566","2567","2568","2569","2570","2571","2572","2573","2574","2575","2576","2577","2578","2579","2580","2581","2582","2583","2584","2585","2586","2587","2588","2589","2590","2591","2592","2593","2594","2595","2596","2597","2598","2599","2600","2601","2602","2603","2604","2605","2606","2607","2608","2609","2610","2611","2612","2613","2614","2615","2616","2617","2618","2619","2620","2621","2622","2623","2624","2625","2626","2627","2628","2629","2630","2631","2632","2633","2634","2635","2636","2637","2638","2639","2640","2641","2642","2643","2644","2645","2646","2647","2648","2649","2650","2651","2652","2653","2654","2655","2656","2657","2658","2659","2660","2661","2662","2663","2664","2665","2666","2667","2668","2669","2670","2671","2672","2673","2674","2675","2676","2677","2678","2679","2680","2681","2682","2683","2684","2685","2686","2687","2688","2689","2690","2691","2692","2693","2694","2695","2696","2697","2698","2699","2700","2701","2702","2703","2704","2705","2706","2707","2708","2709","2710","2711","2712","2713","2714","2715","2716","2717","2718","2719","2720","2721","2722","2723","2724","2725","2726","2727","2728","2729","2730","2731","2732","2733","2734","2735","2736","2737","2738","2739","2740","2741","2742","2743","2744","2745","2746","2747","2748","2749","2750","2751","2752","2753","2754","2755","2756","2757","2758","2759","2760","2761","2762","2763","2764","2765","2766","2767","2768","2769","2770","2771","2772","2773","2774","2775","2776","2777","2778","2779","2780","2781","2782","2783","2784","2785","2786","2787","2788","2789","2790","2791","2792","2793","2794","2795","2796","2797","2798","2799","2800","2801","2802","2803","2804","2805","2806","2807","2808","2809","2810","2811","2812","2813","2814","2815","2816","2817","2818","2819","2820","2821","2822","2823","2824","2825","2826","2827","2828","2829","2830","2831","2832","2833","2834","2835","2836","2837","2838","2839","2840","2841","2842","2843","2844","2845","2846","2847","2848","2849","2850","2851","2852","2853","2854","2855","2856","2857","2858","2859","2860","2861","2862","2863","2864","2865","2866","2867","2868","2869","2870","2871","2872","2873","2874","2875","2876","2877","2878","2879","2880","2881","2882","2883","2884","2885","2886","2887","2888","2889","2890","2891","2892","2893","2894","2895","2896","2897","2898","2899","2900","2901","2902","2903","2904","2905","2906","2907","2908","2909","2910","2911","2912","2913","2914","2915","2916","2917","2918","2919","2920","2921","2922","2923","2924","2925","2926","2927","2928","2929","2930","2931","2932","2933","2934","2935","2936","2937","2938","2939","2940","2941","2942","2943","2944","2945","2946","2947","2948","2949","2950","2951","2952","2953","2954","2955","2956","2957","2958","2959","2960","2961","2962","2963","2964","2965","2966","2967","2968","2969","2970","2971","2972","2973","2974","2975","2976","2977","2978","2979","2980","2981","2982","2983","2984","2985","2986","2987","2988","2989","2990","2991","2992","2993","2994","2995","2996","2997","2998","2999","3000","3001","3002","3003","3004","3005","3006","3007","3008","3009","3010","3011","3012","3013","3014","3015","3016","3017","3018","3019","3020","3021","3022","3023","3024","3025","3026","3027","3028","3029","3030","3031","3032","3033","3034","3035","3036","3037","3038","3039","3040","3041","3042","3043","3044","3045"],"level":1,"treeView":{"__isSmartRef__":true,"id":4584},"label":"textString","children":[],"parent":{"__isSmartRef__":true,"id":4587},"expander":{"__isSmartRef__":true,"id":12087},"text":{"__isSmartRef__":true,"id":12104},"owner":{"__isSmartRef__":true,"id":12085},"_Position":{"__isSmartRef__":true,"id":12128},"priorExtent":{"__isSmartRef__":true,"id":12129},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12130},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12087":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12088},"derivationIds":[null],"id":"B370BA6A-C1FC-4DAE-81B9-43A4C76792BD","renderContextTable":{"__isSmartRef__":true,"id":12094},"eventHandler":{"__isSmartRef__":true,"id":12095},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12096},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12086},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12097},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12088":{"_Position":{"__isSmartRef__":true,"id":12089},"renderContextTable":{"__isSmartRef__":true,"id":12090},"_Extent":{"__isSmartRef__":true,"id":12091},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12092},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4594},"_Fill":{"__isSmartRef__":true,"id":12093},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12089":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12090":{"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"},"12091":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12092":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12093":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12094":{"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"},"12095":{"morph":{"__isSmartRef__":true,"id":12087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12096":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12097":{"toggle":{"__isSmartRef__":true,"id":12098},"toggleExpansion":{"__isSmartRef__":true,"id":12101}},"12098":{"varMapping":{"__isSmartRef__":true,"id":12099},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12099":{"this":{"__isSmartRef__":true,"id":12087}},"12100":{},"12101":{"varMapping":{"__isSmartRef__":true,"id":12102},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12102":{"this":{"__isSmartRef__":true,"id":12087}},"12103":{},"12104":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12105},"derivationIds":[null],"id":"B21786EC-791C-4F31-A4AD-BCBB5DF35093","renderContextTable":{"__isSmartRef__":true,"id":12109},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12110},{"__isSmartRef__":true,"id":12112}],"eventHandler":{"__isSmartRef__":true,"id":12114},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":12115},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":12086},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12116},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12105":{"_Position":{"__isSmartRef__":true,"id":12106},"renderContextTable":{"__isSmartRef__":true,"id":12107},"_Extent":{"__isSmartRef__":true,"id":12108},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4611},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12106":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12107":{"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"},"12108":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12109":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12110":{"style":{"__isSmartRef__":true,"id":12111},"chunkOwner":{"__isSmartRef__":true,"id":12104},"storedString":"textString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12111":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12112":{"style":{"__isSmartRef__":true,"id":12113},"chunkOwner":{"__isSmartRef__":true,"id":12104},"storedString":": // changed on Thu Apr 19 2012 12:23:10 GMT+0200 (Mitteleuropäische Sommerzeit) by undefi...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12113":{"color":{"__isSmartRef__":true,"id":4617},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12114":{"morph":{"__isSmartRef__":true,"id":12104},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12115":{"x":772.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12116":{"layoutText":{"__isSmartRef__":true,"id":12117}},"12117":{"varMapping":{"__isSmartRef__":true,"id":12118},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":12119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12118":{"this":{"__isSmartRef__":true,"id":12104}},"12119":{},"12120":{"_Position":{"__isSmartRef__":true,"id":12121},"renderContextTable":{"__isSmartRef__":true,"id":12122},"_Extent":{"__isSmartRef__":true,"id":12123},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12124},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12121":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12122":{"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"},"12123":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12124":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12125":{"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"},"12126":{"morph":{"__isSmartRef__":true,"id":12086},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12127":{"resizeWidth":true},"12128":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12129":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12130":{"updateExpanderColor":{"__isSmartRef__":true,"id":12131},"onMouseDown":{"__isSmartRef__":true,"id":12134},"isRoot":{"__isSmartRef__":true,"id":12141},"displayValue":{"__isSmartRef__":true,"id":12144},"update":{"__isSmartRef__":true,"id":12147}},"12131":{"varMapping":{"__isSmartRef__":true,"id":12132},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12132":{"this":{"__isSmartRef__":true,"id":12086}},"12133":{},"12134":{"varMapping":{"__isSmartRef__":true,"id":12135},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12135":{"this":{"__isSmartRef__":true,"id":12086},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12136}},"12136":{"$super":{"__isSmartRef__":true,"id":12137}},"12137":{"varMapping":{"__isSmartRef__":true,"id":12138},"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":12139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12138":{"obj":{"__isSmartRef__":true,"id":12086},"name":"onMouseDown"},"12139":{},"12140":{},"12141":{"varMapping":{"__isSmartRef__":true,"id":12142},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12142":{"this":{"__isSmartRef__":true,"id":12086}},"12143":{},"12144":{"varMapping":{"__isSmartRef__":true,"id":12145},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12145":{"this":{"__isSmartRef__":true,"id":12086}},"12146":{},"12147":{"varMapping":{"__isSmartRef__":true,"id":12148},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12148":{"this":{"__isSmartRef__":true,"id":12086}},"12149":{},"12150":{"_Position":{"__isSmartRef__":true,"id":12151},"renderContextTable":{"__isSmartRef__":true,"id":12152},"_Extent":{"__isSmartRef__":true,"id":12153},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12154},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12151":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12152":{"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"},"12153":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12154":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12155":{"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"},"12156":{"morph":{"__isSmartRef__":true,"id":12085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12157":{"layouter":{"__isSmartRef__":true,"id":12158},"resizeWidth":true},"12158":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12085},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12159":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12160":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12161":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12162}},"12162":{"varMapping":{"__isSmartRef__":true,"id":12163},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12163":{"this":{"__isSmartRef__":true,"id":12085},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12164}},"12164":{"$super":{"__isSmartRef__":true,"id":12165}},"12165":{"varMapping":{"__isSmartRef__":true,"id":12166},"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":12167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12166":{"obj":{"__isSmartRef__":true,"id":12085},"name":"getLayoutableSubmorphs"},"12167":{},"12168":{},"12169":{"_Position":{"__isSmartRef__":true,"id":12170},"renderContextTable":{"__isSmartRef__":true,"id":12171},"_Extent":{"__isSmartRef__":true,"id":12172},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12173},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12170":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12171":{"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"},"12172":{"x":100,"y":1280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12173":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12174":{"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"},"12175":{"morph":{"__isSmartRef__":true,"id":6852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12176":{"layouter":{"__isSmartRef__":true,"id":12177},"resizeWidth":true},"12177":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6852},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12178":{"x":100,"y":1280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12179":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12180":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12181},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":12188}},"12181":{"varMapping":{"__isSmartRef__":true,"id":12182},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12182":{"this":{"__isSmartRef__":true,"id":6852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12183}},"12183":{"$super":{"__isSmartRef__":true,"id":12184}},"12184":{"varMapping":{"__isSmartRef__":true,"id":12185},"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":12186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12185":{"obj":{"__isSmartRef__":true,"id":6852},"name":"getLayoutableSubmorphs"},"12186":{},"12187":{},"12188":{"varMapping":{"__isSmartRef__":true,"id":12189},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12189":{"this":{"__isSmartRef__":true,"id":6852}},"12190":{},"12191":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12192":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12193}},"12193":{"varMapping":{"__isSmartRef__":true,"id":12194},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12194":{"this":{"__isSmartRef__":true,"id":6841},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12195}},"12195":{"$super":{"__isSmartRef__":true,"id":12196}},"12196":{"varMapping":{"__isSmartRef__":true,"id":12197},"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":12198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12197":{"obj":{"__isSmartRef__":true,"id":6841},"name":"getLayoutableSubmorphs"},"12198":{},"12199":{},"12200":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12201":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12202":{"updateExpanderColor":{"__isSmartRef__":true,"id":12203},"onMouseDown":{"__isSmartRef__":true,"id":12206},"isRoot":{"__isSmartRef__":true,"id":12213},"displayValue":{"__isSmartRef__":true,"id":12216},"update":{"__isSmartRef__":true,"id":12219}},"12203":{"varMapping":{"__isSmartRef__":true,"id":12204},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12204":{"this":{"__isSmartRef__":true,"id":6799}},"12205":{},"12206":{"varMapping":{"__isSmartRef__":true,"id":12207},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12207":{"this":{"__isSmartRef__":true,"id":6799},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12208}},"12208":{"$super":{"__isSmartRef__":true,"id":12209}},"12209":{"varMapping":{"__isSmartRef__":true,"id":12210},"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":12211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12210":{"obj":{"__isSmartRef__":true,"id":6799},"name":"onMouseDown"},"12211":{},"12212":{},"12213":{"varMapping":{"__isSmartRef__":true,"id":12214},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12214":{"this":{"__isSmartRef__":true,"id":6799}},"12215":{},"12216":{"varMapping":{"__isSmartRef__":true,"id":12217},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12217":{"this":{"__isSmartRef__":true,"id":6799}},"12218":{},"12219":{"varMapping":{"__isSmartRef__":true,"id":12220},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12220":{"this":{"__isSmartRef__":true,"id":6799}},"12221":{},"12222":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12223":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12224":{"updateExpanderColor":{"__isSmartRef__":true,"id":12225},"onMouseDown":{"__isSmartRef__":true,"id":12228},"isRoot":{"__isSmartRef__":true,"id":12235},"displayValue":{"__isSmartRef__":true,"id":12238},"update":{"__isSmartRef__":true,"id":12241}},"12225":{"varMapping":{"__isSmartRef__":true,"id":12226},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12226":{"this":{"__isSmartRef__":true,"id":4587}},"12227":{},"12228":{"varMapping":{"__isSmartRef__":true,"id":12229},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12229":{"this":{"__isSmartRef__":true,"id":4587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12230}},"12230":{"$super":{"__isSmartRef__":true,"id":12231}},"12231":{"varMapping":{"__isSmartRef__":true,"id":12232},"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":12233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12232":{"obj":{"__isSmartRef__":true,"id":4587},"name":"onMouseDown"},"12233":{},"12234":{},"12235":{"varMapping":{"__isSmartRef__":true,"id":12236},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12236":{"this":{"__isSmartRef__":true,"id":4587}},"12237":{},"12238":{"varMapping":{"__isSmartRef__":true,"id":12239},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12239":{"this":{"__isSmartRef__":true,"id":4587}},"12240":{},"12241":{"varMapping":{"__isSmartRef__":true,"id":12242},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12242":{"this":{"__isSmartRef__":true,"id":4587}},"12243":{},"12244":{"_Position":{"__isSmartRef__":true,"id":12245},"renderContextTable":{"__isSmartRef__":true,"id":12246},"_Extent":{"__isSmartRef__":true,"id":12247},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12248},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12245":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12246":{"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"},"12247":{"x":100,"y":1300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12248":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12249":{"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"},"12250":{"morph":{"__isSmartRef__":true,"id":4586},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12251":{"layouter":{"__isSmartRef__":true,"id":12252},"resizeWidth":true},"12252":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4586},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12253":{"x":100,"y":1280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12254":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12255}},"12255":{"varMapping":{"__isSmartRef__":true,"id":12256},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12256":{"this":{"__isSmartRef__":true,"id":4586},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12257}},"12257":{"$super":{"__isSmartRef__":true,"id":12258}},"12258":{"varMapping":{"__isSmartRef__":true,"id":12259},"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":12260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12259":{"obj":{"__isSmartRef__":true,"id":4586},"name":"getLayoutableSubmorphs"},"12260":{},"12261":{},"12262":{"_Position":{"__isSmartRef__":true,"id":12263},"renderContextTable":{"__isSmartRef__":true,"id":12264},"_Extent":{"__isSmartRef__":true,"id":12265},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":12266},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12263":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12264":{"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"},"12265":{"x":270.8398611920343,"y":263.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12266":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12267":{"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"},"12268":{"morph":{"__isSmartRef__":true,"id":4585},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12269":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12270":{"resizeWidth":true,"resizeHeight":true},"12271":{"x":270.8398611920343,"y":263.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12272":{"setClipModeHTML":{"__isSmartRef__":true,"id":12273}},"12273":{"varMapping":{"__isSmartRef__":true,"id":12274},"source":"function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n }","funcProperties":{"__isSmartRef__":true,"id":12279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12274":{"this":{"__isSmartRef__":true,"id":4585},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12275}},"12275":{"$super":{"__isSmartRef__":true,"id":12276}},"12276":{"varMapping":{"__isSmartRef__":true,"id":12277},"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":12278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12277":{"obj":{"__isSmartRef__":true,"id":4585},"name":"setClipModeHTML"},"12278":{},"12279":{},"12280":{"target":{"__isSmartRef__":true,"id":4584},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":4653,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"12281":{"position":{"__isSmartRef__":true,"id":12282},"_Extent":{"__isSmartRef__":true,"id":12283},"_BorderWidth":1.9240000000000002,"_BorderColor":{"__isSmartRef__":true,"id":12284},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":12285},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12286},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12282":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12283":{"x":290.8398611920343,"y":283.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12284":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12285":{"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"},"12286":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12287":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12288":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A tree view morph. You can visualize a graph of object data with it (for example).","migrationLevel":4,"partName":"TreeView","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12289":{"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"},"12290":{"morph":{"__isSmartRef__":true,"id":4584},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12291":{"x":290.8398611920343,"y":283.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12292":{"layouter":{"__isSmartRef__":true,"id":12293},"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false,"adjustForNewBounds":true},"12293":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":4584},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"12294":{"x":164.35052570087606,"y":-15.96995493992489,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12295":{"border":{"__isSmartRef__":true,"id":4594},"contractedExpander":{"__isSmartRef__":true,"id":8962},"expandedExpander":{"__isSmartRef__":true,"id":2396},"focusedText":{"__isSmartRef__":true,"id":11161},"emphasizedText":{"__isSmartRef__":true,"id":4617}},"12296":{"size":10},"12297":{"wrapperExtent":{"__isSmartRef__":true,"id":12298},"expanderExtent":{"__isSmartRef__":true,"id":12299},"expanderOffset":{"__isSmartRef__":true,"id":12300},"textOffset":{"__isSmartRef__":true,"id":12301},"levelIndent":10,"maxTextWidth":500},"12298":{"x":0,"y":0,"width":100,"height":18,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12299":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12300":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12301":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12302":{"renderTree":{"__isSmartRef__":true,"id":12303},"createTreeNode":{"__isSmartRef__":true,"id":12307},"createTreeWrapper":{"__isSmartRef__":true,"id":12311},"reset":{"__isSmartRef__":true,"id":12315},"createTreeNodeMorph":{"__isSmartRef__":true,"id":12319},"createExpanderButton":{"__isSmartRef__":true,"id":12323},"createPropertyText":{"__isSmartRef__":true,"id":12327},"createScrollClip":{"__isSmartRef__":true,"id":12331},"resetDefaults":{"__isSmartRef__":true,"id":12335},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":12339},"addScriptsToExpander":{"__isSmartRef__":true,"id":12342},"getDisplayStringFor":{"__isSmartRef__":true,"id":12345},"update":{"__isSmartRef__":true,"id":12349},"addScriptsToText":{"__isSmartRef__":true,"id":12353},"toggleAll":{"__isSmartRef__":true,"id":12357}},"12303":{"varMapping":{"__isSmartRef__":true,"id":12304},"source":"function renderTree(data) {\n this.rootNode = this.createTreeNode('Properties', data);\n this.addMorph(this.rootNode);\n     \n var wrapper = this.createTreeWrapper(this.rootNode);\n var scroll = this.createScrollClip(wrapper);\n\n this.addMorph(scroll);\n\n this.startStepping(500/*ms*/, 'update'); \n}","funcProperties":{"__isSmartRef__":true,"id":12305},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12304":{"this":{"__isSmartRef__":true,"id":4584}},"12305":{"timestamp":{"__isSmartRef__":true,"id":12306},"user":"lauritz","tags":[]},"12306":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:23:33 GMT+0100 (Mitteleuropäische Zeit)"},"12307":{"varMapping":{"__isSmartRef__":true,"id":12308},"source":"function createTreeNode(label, data, level, parent) {\n level = level || 0;\n\n // create morph / layout\n var treeNode = this.createTreeNodeMorph(data, level);\n\n // add scripts\n this.addScriptsToTreeNode(treeNode);\n\n // initialization\n treeNode.data = data;\n treeNode.propertyList = [].pushAll(Properties.own(treeNode.data));\n treeNode.level = level;\n treeNode.treeView = this;\n treeNode.label = label;\n treeNode.children = [];\n treeNode.parent = (parent ? parent : null);\n\n var expander = this.createExpanderButton(treeNode);\n treeNode.addMorph(expander);\n\n var text = this.createPropertyText(treeNode);\n treeNode.addMorph(text);\n\n\n return treeNode;\n}","funcProperties":{"__isSmartRef__":true,"id":12309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12308":{"this":{"__isSmartRef__":true,"id":4584}},"12309":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12310}},"12310":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:43:34 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12311":{"varMapping":{"__isSmartRef__":true,"id":12312},"source":"function createTreeWrapper(node) {\n\n var rectangleMorph = new lively.morphic.Shapes.Rectangle(this.sizes.wrapperExtent);\n var wrapper = new lively.morphic.Morph(rectangleMorph);\n\n wrapper.addScript(function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n });\n\n var layouter = new lively.morphic.Layout.JournalLayout(wrapper);\n var superBasicLayout = layouter.basicLayout;\n layouter.basicLayout = function(container, submorphs) {\n submorphs.sortBy = function() { return this };\n superBasicLayout.bind(layouter)(container, submorphs);\n delete submorphs.sortBy;\n };\n layouter.borderSize = 0;\n layouter.spacing = 0;\n wrapper.setLayouter(layouter);\n wrapper.layout.resizeWidth = true;\n\n if (node)\n wrapper.addMorph(node);\n\n return wrapper;\n}","funcProperties":{"__isSmartRef__":true,"id":12313},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12312":{"this":{"__isSmartRef__":true,"id":4584}},"12313":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12314}},"12314":{"isSerializedDate":true,"string":"Tue Sep 20 2011 17:05:52 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12315":{"varMapping":{"__isSmartRef__":true,"id":12316},"source":"function reset() {\n this.removeAllMorphs();\n this.resetDefaults();\n this.rootNode = null; \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":12317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12316":{"this":{"__isSmartRef__":true,"id":4584}},"12317":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12318}},"12318":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:41:57 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12319":{"varMapping":{"__isSmartRef__":true,"id":12320},"source":"function createTreeNodeMorph(data, level) {\n var treeNodeExtent = new lively.morphic.Shapes.Rectangle(pt(100, 20).extentAsRectangle());\n var treeNode = new lively.morphic.Morph(treeNodeExtent);\n\n treeNode.layout = {\n layouter: undefined,\n resizeWidth: true\n }\n treeNode.disableGrabbing();\n treeNode.disableDragging();\n\n return treeNode; \n}","funcProperties":{"__isSmartRef__":true,"id":12321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12320":{"this":{"__isSmartRef__":true,"id":4584}},"12321":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12322}},"12322":{"isSerializedDate":true,"string":"Tue Oct 25 2011 19:24:35 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12323":{"varMapping":{"__isSmartRef__":true,"id":12324},"source":"function createExpanderButton(treeNode) {\n\n var expanderPositionX = this.sizes.expanderOffset.x + this.sizes.levelIndent * treeNode.level;\n var expanderPosition = pt(expanderPositionX, this.sizes.expanderOffset.y);\n var expander = new lively.morphic.Box(expanderPosition.extent(this.sizes.expanderExtent));\n\n // layout\n expander.setBorderWidth(1);\n expander.setBorderColor(this.colors.border);\n expander.disableGrabbing();\n expander.disableDragging();\n treeNode.expander = expander;\n\n // add scripts\n this.addScriptsToExpander(expander);\n\n // initialization\n expander.isExpanded = false;\n treeNode.updateExpanderColor();\n\n return expander;\n}","funcProperties":{"__isSmartRef__":true,"id":12325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12324":{"this":{"__isSmartRef__":true,"id":4584}},"12325":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12326}},"12326":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:32:58 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12327":{"varMapping":{"__isSmartRef__":true,"id":12328},"source":"function createPropertyText(treeNode) {\n \n var textPosition = pt(this.sizes.textOffset.x + this.sizes.levelIndent * treeNode.level, this.sizes.textOffset.y);\n\n var textMorph = new lively.morphic.Text(textPosition.extent(pt(0, 0)), \"\");  \n this.addScriptsToText(textMorph);\n textMorph.layoutText(this.fonts);\n\n treeNode.text = textMorph;\n treeNode.displayValue();\n\n return textMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":12329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12328":{"this":{"__isSmartRef__":true,"id":4584}},"12329":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12330}},"12330":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:18:07 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12331":{"varMapping":{"__isSmartRef__":true,"id":12332},"source":"function createScrollClip(wrapper) {\n var scroll = new lively.morphic.Clip(this.getExtent().extentAsRectangle());\n\n // layout\n scroll.layout = {\n resizeWidth: true,\n resizeHeight: true\n };\n scroll.disableGrabbing();\n scroll.disableDragging();\n scroll.setName('TreeViewScrollPane');\n\n scroll.addScript(function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n });\n\n scroll.addMorph(wrapper);\n return scroll;\n}","funcProperties":{"__isSmartRef__":true,"id":12333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12332":{"this":{"__isSmartRef__":true,"id":4584}},"12333":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12334}},"12334":{"isSerializedDate":true,"string":"Mon Sep 19 2011 19:54:00 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12335":{"varMapping":{"__isSmartRef__":true,"id":12336},"source":"function resetDefaults() {\n this.colors = {\n border : Color.rgb(145,145,145),\n contractedExpander : Color.rgb(145,145,145),\n expandedExpander : Color.white,\n focusedText : Color.rgb(243,243,243),\n emphasizedText : Color.rgb(145,145,145)\n };\n this.fonts = {\n size : 10\n };\n this.sizes = {\n wrapperExtent : pt(100, 18).extentAsRectangle(),\n expanderExtent : pt(8, 8),\n expanderOffset : pt(8, 5),\n textOffset : pt(18, 0),\n levelIndent : 10,\n maxTextWidth : 500\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12336":{"this":{"__isSmartRef__":true,"id":4584}},"12337":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12338}},"12338":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:38:04 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12339":{"varMapping":{"__isSmartRef__":true,"id":12340},"source":"function addScriptsToTreeNode(treeNode) {\n\n treeNode.addScript(function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n });\n\n treeNode.addScript(function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n });\n\n treeNode.addScript(function isRoot() {\n return (this.parent === null || this.parent === undefined);\n });\n\n treeNode.addScript(function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n });\n \n treeNode.addScript(function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":12341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12340":{"this":{"__isSmartRef__":true,"id":4584}},"12341":{},"12342":{"varMapping":{"__isSmartRef__":true,"id":12343},"source":"function addScriptsToExpander(expander) {\n\n expander.addScript(function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n });\n\n expander.addScript(function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":12344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12343":{"this":{"__isSmartRef__":true,"id":4584}},"12344":{},"12345":{"varMapping":{"__isSmartRef__":true,"id":12346},"source":"function getDisplayStringFor(treeNode) {\n var typeInfo = '';\n if (treeNode.data && treeNode.data.name) {\n typeInfo = treeNode.data.name;\n } else {\n typeInfo = (Objects.isMutableType(treeNode.data) ? \n Objects.shortPrintStringOf(treeNode.data) : treeNode.data);\n }\n return treeNode.label + \": \" + typeInfo;\n}","funcProperties":{"__isSmartRef__":true,"id":12347},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12346":{"this":{"__isSmartRef__":true,"id":4584}},"12347":{"timestamp":{"__isSmartRef__":true,"id":12348},"user":"lauritz","tags":[]},"12348":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:35:06 GMT+0100 (Mitteleuropäische Zeit)"},"12349":{"varMapping":{"__isSmartRef__":true,"id":12350},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":12351},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12350":{"this":{"__isSmartRef__":true,"id":4584}},"12351":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12352}},"12352":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:42:27 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12353":{"varMapping":{"__isSmartRef__":true,"id":12354},"source":"function addScriptsToText(textMorph) {\n\n textMorph.addScript(function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":12355},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12354":{"this":{"__isSmartRef__":true,"id":4584}},"12355":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12356}},"12356":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:16:48 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12357":{"varMapping":{"__isSmartRef__":true,"id":12358},"source":"function toggleAll() {\n\n if (!this.rootNode) return;\n\n try {\n JSON.stringify(this.rootNode.data);\n } catch (e) {\n // probably a circular structure\n return;\n }\n\n var toggleChildren = function (node) {\n\n if (!node.children) return;\n\n (function() {\n node.children.forEach(function (each) {\n each.expander.toggleExpansion();\n toggleChildren(each);\n });\n }).bind(this).delay(0); // asynchronous\n }\n\n toggleChildren(this.rootNode);\n \n}","funcProperties":{"__isSmartRef__":true,"id":12359},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12358":{"this":{"__isSmartRef__":true,"id":4584}},"12359":{"timestamp":{"__isSmartRef__":true,"id":12360},"user":"lauritz","tags":[]},"12360":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:58:11 GMT+0100 (Mitteleuropäische Zeit)"},"12361":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12362},"id":"354FD5D3-F05C-457F-A08A-1E5BFE614EDE","renderContextTable":{"__isSmartRef__":true,"id":12369},"textChunks":[{"__isSmartRef__":true,"id":12370}],"eventHandler":{"__isSmartRef__":true,"id":12372},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12373},"priorExtent":{"__isSmartRef__":true,"id":12374},"_MaxTextWidth":285.8398611920343,"_MinTextWidth":285.8398611920343,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":12375},"doitContext":[226,226],"previousSelection":[0,5],"priorSelectionRange":[24,24],"charsReplaced":"typeof(this)","lastFindLoc":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":4583},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":12376},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":12377},"lastDragTime":1317079672221,"derivationIds":[372,"3BBD270B-A828-436A-915C-D23688CF2067","D0890AA7-6E65-4B35-9600-1AD66DF96797","243534E4-AE49-45EC-9DB9-384D7DE4B994","251CC01A-7FDF-4357-9313-99DE732BDF7B","49FB5C89-127F-411D-9E7D-74274AFC6322","4BCE87D8-39F3-4B7F-A78F-10398B72A854"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12380},"__LivelyClassName__":"lively.morphic.Text"},"12362":{"_Position":{"__isSmartRef__":true,"id":12363},"renderContextTable":{"__isSmartRef__":true,"id":12364},"_Extent":{"__isSmartRef__":true,"id":12365},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":12366},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":12367},"_Fill":{"__isSmartRef__":true,"id":12368},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":4,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12363":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12364":{"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"},"12365":{"x":290.8398611920343,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12366":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12367":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12368":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12369":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12370":{"style":{"__isSmartRef__":true,"id":12371},"chunkOwner":{"__isSmartRef__":true,"id":12361},"storedString":"this.getSelectionRange()","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12371":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12372":{"morph":{"__isSmartRef__":true,"id":12361},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12373":{"x":10,"y":308.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12374":{"x":290.8398611920343,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12375":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"12376":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12377":{"reset":{"__isSmartRef__":true,"id":12378}},"12378":{"time":{"__isSmartRef__":true,"id":12379},"user":"lauritz"},"12379":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:03:51 GMT+0100 (Mitteleuropäische Zeit)"},"12380":{"reset":{"__isSmartRef__":true,"id":12381}},"12381":{"varMapping":{"__isSmartRef__":true,"id":12382},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":12383},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12382":{"this":{"__isSmartRef__":true,"id":12361}},"12383":{},"12384":{"position":{"__isSmartRef__":true,"id":12385},"_Extent":{"__isSmartRef__":true,"id":12386},"_BorderWidth":1.4500000000000002,"_BorderColor":{"__isSmartRef__":true,"id":12387},"_Fill":{"__isSmartRef__":true,"id":12388},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":12389},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12390},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12385":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12386":{"x":310.8398611920343,"y":399.4718889536274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12387":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12388":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12389":{"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"},"12390":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12391":{"x":0,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12392":{"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":"ExplorerPane","changes":[{"__isSmartRef__":true,"id":12393}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12393":{"date":{"__isSmartRef__":true,"id":12394},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"12394":{"isSerializedDate":true,"string":"Tue Oct 25 2011 20:21:08 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12395":{"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"},"12396":{"morph":{"__isSmartRef__":true,"id":4583},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12397":{"x":306.8398611920343,"y":397.4718889536274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12398":{"x":212.32023310549857,"y":-12.472093186624761,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12399":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":12400}},"12400":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":4583},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"12401":{"reset":{"__isSmartRef__":true,"id":12402},"moveFocusTo":{"__isSmartRef__":true,"id":12406},"explore":{"__isSmartRef__":true,"id":12410},"toggleAll":{"__isSmartRef__":true,"id":12414}},"12402":{"varMapping":{"__isSmartRef__":true,"id":12403},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12404},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12403":{"this":{"__isSmartRef__":true,"id":4583}},"12404":{"timestamp":{"__isSmartRef__":true,"id":12405},"user":"lauritz","tags":[]},"12405":{"isSerializedDate":true,"string":"Wed Sep 21 2011 01:48:08 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12406":{"varMapping":{"__isSmartRef__":true,"id":12407},"source":"function moveFocusTo(focusedNode) {\n\n // set workspace context\n var previouslyFocusedNode = this.focusedNode;\n this.focusedNode = focusedNode;\n this.workspace.doitContext = this.focusedNode.data;\n\n // display focus\n if (previouslyFocusedNode && previouslyFocusedNode.setFill) \n previouslyFocusedNode.text.setFill(null);\n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\n this.focusedNode.expander.toggle();\n}","funcProperties":{"__isSmartRef__":true,"id":12408},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12407":{"this":{"__isSmartRef__":true,"id":4583}},"12408":{"timestamp":{"__isSmartRef__":true,"id":12409},"user":"lauritz","tags":[]},"12409":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:21:02 GMT+0100 (Mitteleuropäische Zeit)"},"12410":{"varMapping":{"__isSmartRef__":true,"id":12411},"source":"function explore(object) {\n this.reset();\n this.treeView.renderTree(object);\n\n this.moveFocusTo(this.treeView.rootNode);\n this.workspace.setTextString(\"this\");\n}","funcProperties":{"__isSmartRef__":true,"id":12412},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12411":{"this":{"__isSmartRef__":true,"id":4583}},"12412":{"timestamp":{"__isSmartRef__":true,"id":12413},"user":"lauritz","tags":[]},"12413":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:21:07 GMT+0100 (Mitteleuropäische Zeit)"},"12414":{"varMapping":{"__isSmartRef__":true,"id":12415},"source":"function toggleAll() {\n this.treeView.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":12416},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12415":{"this":{"__isSmartRef__":true,"id":4583}},"12416":{"timestamp":{"__isSmartRef__":true,"id":12417},"user":"lauritz","tags":[]},"12417":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:40:54 GMT+0100 (Mitteleuropäische Zeit)"},"12418":{"submorphs":[],"scripts":[],"id":"61AFBB60-4B47-49D0-A409-5ED410EA9370","shape":{"__isSmartRef__":true,"id":12419},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":12426},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":12427},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":12428},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":12429},"eventHandler":{"__isSmartRef__":true,"id":12430},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":4582},"priorExtent":{"__isSmartRef__":true,"id":12431},"distanceToDragEvent":{"__isSmartRef__":true,"id":12432},"derivationIds":[373,"EE44AF79-9BA3-4128-9A82-23CA02A35CBA","2DF62558-574F-4341-A678-C082E7B62474","0B40BDFA-37E3-4097-9157-BE8CCF94B0A1","3600D2AA-3070-493B-839E-BF41427E5A08","B8F4C02B-011E-483E-A3AB-BE57DC9B1FBE","4C05283E-F381-40A9-9AEF-6D6D233F85FF"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12433},"__LivelyClassName__":"lively.morphic.Box"},"12419":{"position":{"__isSmartRef__":true,"id":12420},"_Extent":{"__isSmartRef__":true,"id":12421},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12422},"_Fill":{"__isSmartRef__":true,"id":12423},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":12424},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12425},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12420":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12421":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12422":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12423":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12424":{"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"},"12425":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12426":{"x":300.49672894514134,"y":409.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12427":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12428":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12429":{"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"},"12430":{"morph":{"__isSmartRef__":true,"id":12418},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12431":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12432":{"x":33.337083585580785,"y":-5.721794364406264,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12433":{"onDrag":{"__isSmartRef__":true,"id":12434},"onDragEnd":{"__isSmartRef__":true,"id":12441},"onDragStart":{"__isSmartRef__":true,"id":12448}},"12434":{"varMapping":{"__isSmartRef__":true,"id":12435},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":12440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12435":{"this":{"__isSmartRef__":true,"id":12418},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12436}},"12436":{"$super":{"__isSmartRef__":true,"id":12437}},"12437":{"varMapping":{"__isSmartRef__":true,"id":12438},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":12439},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12438":{"obj":{"__isSmartRef__":true,"id":12418},"name":"onDrag"},"12439":{},"12440":{},"12441":{"varMapping":{"__isSmartRef__":true,"id":12442},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12447},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12442":{"this":{"__isSmartRef__":true,"id":12418},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12443}},"12443":{"$super":{"__isSmartRef__":true,"id":12444}},"12444":{"varMapping":{"__isSmartRef__":true,"id":12445},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":12446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12445":{"obj":{"__isSmartRef__":true,"id":12418},"name":"onDragEnd"},"12446":{},"12447":{},"12448":{"varMapping":{"__isSmartRef__":true,"id":12449},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":12454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12449":{"this":{"__isSmartRef__":true,"id":12418},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12450}},"12450":{"$super":{"__isSmartRef__":true,"id":12451}},"12451":{"varMapping":{"__isSmartRef__":true,"id":12452},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":12453},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12452":{"obj":{"__isSmartRef__":true,"id":12418},"name":"onDragStart"},"12453":{},"12454":{},"12455":{"submorphs":[{"__isSmartRef__":true,"id":12456},{"__isSmartRef__":true,"id":12470},{"__isSmartRef__":true,"id":12517},{"__isSmartRef__":true,"id":12552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12588},"id":"0B25B62F-BE09-4501-BBA0-184E05860AFF","renderContextTable":{"__isSmartRef__":true,"id":12594},"eventHandler":{"__isSmartRef__":true,"id":12595},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12596},"_Position":{"__isSmartRef__":true,"id":12597},"windowMorph":{"__isSmartRef__":true,"id":4582},"label":{"__isSmartRef__":true,"id":12456},"closeButton":{"__isSmartRef__":true,"id":12470},"menuButton":{"__isSmartRef__":true,"id":12517},"collapseButton":{"__isSmartRef__":true,"id":12552},"priorExtent":{"__isSmartRef__":true,"id":12598},"owner":{"__isSmartRef__":true,"id":4582},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[374,"CFE848EF-BE01-4E69-BBD0-796826FDBA2C","27B1F973-A4A1-49ED-8194-15A2125092E5","1AAC1E25-BFD3-4949-82B7-CA49C7FE30CC","AAFC6ADC-565B-42D5-B95A-49BB4FAE6F07","AA057279-ADDD-4D59-9A0A-E86FD7D21BE6","8EADAC43-54B0-4FAC-AF1C-A0D8FDD9E3CA"],"__LivelyClassName__":"lively.morphic.TitleBar"},"12456":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12457},"id":"63A77AB2-ECD8-4A2F-89DD-D798D28E60E2","renderContextTable":{"__isSmartRef__":true,"id":12463},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12464}],"eventHandler":{"__isSmartRef__":true,"id":12466},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":12467},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12455},"priorExtent":{"__isSmartRef__":true,"id":12468},"_MaxTextWidth":251.49672894514134,"_MinTextWidth":251.49672894514134,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":12469},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[375,"73673BCB-A91C-4ECA-A36D-D85A24B4F4A3","2EE1A4B9-842D-4C63-ABEA-21DC74163CEE","3F973521-D5D9-4B44-BCF8-822B923644E8","F50BD739-1DA1-4EB3-9653-7B3145EA8817","A7AE88A1-BD5C-4F03-9E65-373F047B2C25","F8F2EE4C-88F2-4D50-ABC7-1F747DC646BB"],"__LivelyClassName__":"lively.morphic.Text"},"12457":{"_Position":{"__isSmartRef__":true,"id":12458},"renderContextTable":{"__isSmartRef__":true,"id":12459},"_Extent":{"__isSmartRef__":true,"id":12460},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12461},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12462},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12458":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12459":{"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"},"12460":{"x":251.49672894514134,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12461":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12462":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12463":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12464":{"style":{"__isSmartRef__":true,"id":12465},"chunkOwner":{"__isSmartRef__":true,"id":12456},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Explorer","__LivelyClassName__":"lively.morphic.TextChunk"},"12465":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12466":{"morph":{"__isSmartRef__":true,"id":12456},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12467":{"resizeWidth":true},"12468":{"x":251.49672894514134,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12469":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12470":{"submorphs":[{"__isSmartRef__":true,"id":12471}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12483},"id":"ADA29472-CC43-449E-B9C5-36F2EF13DBB6","renderContextTable":{"__isSmartRef__":true,"id":12499},"eventHandler":{"__isSmartRef__":true,"id":12500},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":12501},"priorExtent":{"__isSmartRef__":true,"id":12502},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12489},"lighterFill":{"__isSmartRef__":true,"id":12503},"label":{"__isSmartRef__":true,"id":12471},"owner":{"__isSmartRef__":true,"id":12455},"layout":{"__isSmartRef__":true,"id":12512},"attributeConnections":[{"__isSmartRef__":true,"id":12513},{"__isSmartRef__":true,"id":12515}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[376,"C3AC01F3-7977-4D0A-A42C-700DE29F8F8E","A9533421-3987-49B1-B8FE-11D3B48B77B3","EC79C6DC-0809-4378-8061-032B4DD2D496","4DB70E9E-760D-401A-9BAD-25367B78CF72","1DC03620-BC8A-47EC-978A-2036FF929A8A","B048691C-3D91-4A6E-B21D-2AF0EB3E85C7"],"__LivelyClassName__":"lively.morphic.WindowControl"},"12471":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12472},"id":"7B017515-4E8A-411D-AC30-61C50E274F9E","renderContextTable":{"__isSmartRef__":true,"id":12477},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12478}],"eventHandler":{"__isSmartRef__":true,"id":12480},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":12481},"priorExtent":{"__isSmartRef__":true,"id":12482},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12470},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[377,"C621D837-4DB4-4C83-A8C9-1C995944A45D","BCB8C9A6-BD1A-49F5-8BDD-7C6C8BFB840C","9AA4F44C-9D66-4990-B0E2-2998FC750C65","E136552C-1013-430B-8229-122AA2720D75","D343D9D5-BB6B-471C-89FD-977D04A54C18","198CEAEE-A3BF-4CED-8D10-C86583D458D7"],"__LivelyClassName__":"lively.morphic.Text"},"12472":{"_Position":{"__isSmartRef__":true,"id":12473},"renderContextTable":{"__isSmartRef__":true,"id":12474},"_Extent":{"__isSmartRef__":true,"id":12475},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12476},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12462},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12473":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12474":{"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"},"12475":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12476":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12477":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12478":{"style":{"__isSmartRef__":true,"id":12479},"chunkOwner":{"__isSmartRef__":true,"id":12471},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"12479":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12480":{"morph":{"__isSmartRef__":true,"id":12471},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12481":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12482":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12483":{"_Position":{"__isSmartRef__":true,"id":12484},"renderContextTable":{"__isSmartRef__":true,"id":12485},"_Extent":{"__isSmartRef__":true,"id":12486},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12487},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12488},"_Fill":{"__isSmartRef__":true,"id":12489},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12484":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12485":{"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"},"12486":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12487":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12488":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12489":{"stops":[{"__isSmartRef__":true,"id":12490},{"__isSmartRef__":true,"id":12492},{"__isSmartRef__":true,"id":12494},{"__isSmartRef__":true,"id":12496}],"vector":{"__isSmartRef__":true,"id":12498},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"12490":{"offset":0,"color":{"__isSmartRef__":true,"id":12491}},"12491":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12492":{"offset":0.4,"color":{"__isSmartRef__":true,"id":12493}},"12493":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12494":{"offset":0.6,"color":{"__isSmartRef__":true,"id":12495}},"12495":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12496":{"offset":1,"color":{"__isSmartRef__":true,"id":12497}},"12497":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12498":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12499":{"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"},"12500":{"morph":{"__isSmartRef__":true,"id":12470},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12501":{"x":290.49672894514134,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12502":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12503":{"stops":[{"__isSmartRef__":true,"id":12504},{"__isSmartRef__":true,"id":12506},{"__isSmartRef__":true,"id":12508},{"__isSmartRef__":true,"id":12510}],"vector":{"__isSmartRef__":true,"id":12498},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"12504":{"offset":0,"color":{"__isSmartRef__":true,"id":12505}},"12505":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12506":{"offset":0.4,"color":{"__isSmartRef__":true,"id":12507}},"12507":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12508":{"offset":0.6,"color":{"__isSmartRef__":true,"id":12509}},"12509":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12510":{"offset":1,"color":{"__isSmartRef__":true,"id":12511}},"12511":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12512":{"moveHorizontal":true},"12513":{"sourceObj":{"__isSmartRef__":true,"id":12470},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4582},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12514},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12514":{"source":{"__isSmartRef__":true,"id":12470},"target":{"__isSmartRef__":true,"id":4582}},"12515":{"sourceObj":{"__isSmartRef__":true,"id":12470},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4582},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12516},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12516":{"source":{"__isSmartRef__":true,"id":12470},"target":{"__isSmartRef__":true,"id":4582}},"12517":{"submorphs":[{"__isSmartRef__":true,"id":12518}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12530},"id":"A53B7265-AB5F-4ADB-8679-ED627F82DFBB","renderContextTable":{"__isSmartRef__":true,"id":12535},"eventHandler":{"__isSmartRef__":true,"id":12536},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":12537},"priorExtent":{"__isSmartRef__":true,"id":12538},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12489},"lighterFill":{"__isSmartRef__":true,"id":12539},"label":{"__isSmartRef__":true,"id":12518},"owner":{"__isSmartRef__":true,"id":12455},"attributeConnections":[{"__isSmartRef__":true,"id":12548},{"__isSmartRef__":true,"id":12550}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","prevScroll":[0,0],"derivationIds":[378,"FF4FE4CA-DFFC-40C6-A1E8-32667E37F3EC","A8A6A338-D618-4672-AFA8-914FD7C2A19E","85D2A7A2-F0B5-45CD-BB83-E6F60E8B681C","535E0653-E19D-4F22-952A-34C8EDED44E9","977A1381-981C-4500-B887-78143DE21406","62DA4EDF-FBE4-4D01-834D-C3E763CF55DE"],"__LivelyClassName__":"lively.morphic.WindowControl"},"12518":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12519},"id":"E6F97E61-DE73-4FC4-BB9D-BFA9D8EBD431","renderContextTable":{"__isSmartRef__":true,"id":12524},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12525}],"eventHandler":{"__isSmartRef__":true,"id":12527},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":12528},"priorExtent":{"__isSmartRef__":true,"id":12529},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12517},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[379,"9C08820E-6B60-44C2-9150-BD546391671F","36F5662C-375A-4549-B94E-F150DCBCE3F8","030ACD5E-7567-45E7-928D-24821846DBD3","B1DB7B8C-99F5-44D9-8312-ADD58545154E","9037A2C8-C56D-4C9B-B2B6-FFEBD4CFC0B0","353D5A24-E404-457D-93C4-BC195B094724"],"__LivelyClassName__":"lively.morphic.Text"},"12519":{"_Position":{"__isSmartRef__":true,"id":12520},"renderContextTable":{"__isSmartRef__":true,"id":12521},"_Extent":{"__isSmartRef__":true,"id":12522},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12523},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12462},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12520":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12521":{"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"},"12522":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12523":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12524":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12525":{"style":{"__isSmartRef__":true,"id":12526},"chunkOwner":{"__isSmartRef__":true,"id":12518},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"12526":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12527":{"morph":{"__isSmartRef__":true,"id":12518},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12528":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12529":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12530":{"_Position":{"__isSmartRef__":true,"id":12531},"renderContextTable":{"__isSmartRef__":true,"id":12532},"_Extent":{"__isSmartRef__":true,"id":12533},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12534},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12488},"_Fill":{"__isSmartRef__":true,"id":12489},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12531":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12532":{"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"},"12533":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12534":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12535":{"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"},"12536":{"morph":{"__isSmartRef__":true,"id":12517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12537":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12538":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12539":{"stops":[{"__isSmartRef__":true,"id":12540},{"__isSmartRef__":true,"id":12542},{"__isSmartRef__":true,"id":12544},{"__isSmartRef__":true,"id":12546}],"vector":{"__isSmartRef__":true,"id":12498},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"12540":{"offset":0,"color":{"__isSmartRef__":true,"id":12541}},"12541":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12542":{"offset":0.4,"color":{"__isSmartRef__":true,"id":12543}},"12543":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12544":{"offset":0.6,"color":{"__isSmartRef__":true,"id":12545}},"12545":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12546":{"offset":1,"color":{"__isSmartRef__":true,"id":12547}},"12547":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12548":{"sourceObj":{"__isSmartRef__":true,"id":12517},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4582},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12549},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12549":{"source":{"__isSmartRef__":true,"id":12517},"target":{"__isSmartRef__":true,"id":4582}},"12550":{"sourceObj":{"__isSmartRef__":true,"id":12517},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4582},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12551},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12551":{"source":{"__isSmartRef__":true,"id":12517},"target":{"__isSmartRef__":true,"id":4582}},"12552":{"submorphs":[{"__isSmartRef__":true,"id":12553}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12565},"id":"61DC2BCE-7EA1-4B31-8846-A4F31229D314","renderContextTable":{"__isSmartRef__":true,"id":12570},"eventHandler":{"__isSmartRef__":true,"id":12571},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":12572},"priorExtent":{"__isSmartRef__":true,"id":12573},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12489},"lighterFill":{"__isSmartRef__":true,"id":12574},"label":{"__isSmartRef__":true,"id":12553},"owner":{"__isSmartRef__":true,"id":12455},"layout":{"__isSmartRef__":true,"id":12583},"attributeConnections":[{"__isSmartRef__":true,"id":12584},{"__isSmartRef__":true,"id":12586}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[380,"B603C6F6-E6E9-4618-BF46-1521ADDE21FE","7D67707D-A36A-46C7-AF4E-DBA063259CD8","0CE8DB38-9500-4B3D-BA30-191E72ABDE7C","9C2B6C81-CB1C-4AD9-941A-5307CCDA74CC","27DE4ECD-BBB4-4CA2-9C13-DBE49DE7A744","B9D13F17-7AA4-44BC-AA55-FF1F6DB50D8C"],"__LivelyClassName__":"lively.morphic.WindowControl"},"12553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12554},"id":"22C35283-CB78-4F1E-9A88-28F97364458E","renderContextTable":{"__isSmartRef__":true,"id":12559},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12560}],"eventHandler":{"__isSmartRef__":true,"id":12562},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":12563},"priorExtent":{"__isSmartRef__":true,"id":12564},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12552},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[381,"B48F0AA9-A9AE-4316-865F-D969FFFD4C87","3CE2E949-41E5-4680-ADB0-8AF865F87CA7","C865C749-7005-416E-B5A2-0FB224AB308E","CAED6589-594E-438B-ADB7-264F9B9D92B0","A391E593-03B1-4FDA-B6B3-978336437357","40913CEC-D4ED-4CA1-97B2-858D96CDC1F3"],"__LivelyClassName__":"lively.morphic.Text"},"12554":{"_Position":{"__isSmartRef__":true,"id":12555},"renderContextTable":{"__isSmartRef__":true,"id":12556},"_Extent":{"__isSmartRef__":true,"id":12557},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12558},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12462},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12555":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12556":{"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"},"12557":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12558":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12559":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12560":{"style":{"__isSmartRef__":true,"id":12561},"chunkOwner":{"__isSmartRef__":true,"id":12553},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"12561":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12562":{"morph":{"__isSmartRef__":true,"id":12553},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12563":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12564":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12565":{"_Position":{"__isSmartRef__":true,"id":12566},"renderContextTable":{"__isSmartRef__":true,"id":12567},"_Extent":{"__isSmartRef__":true,"id":12568},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12569},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12488},"_Fill":{"__isSmartRef__":true,"id":12489},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12566":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12567":{"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"},"12568":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12569":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12570":{"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"},"12571":{"morph":{"__isSmartRef__":true,"id":12552},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12572":{"x":271.49672894514134,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12573":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12574":{"stops":[{"__isSmartRef__":true,"id":12575},{"__isSmartRef__":true,"id":12577},{"__isSmartRef__":true,"id":12579},{"__isSmartRef__":true,"id":12581}],"vector":{"__isSmartRef__":true,"id":12498},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"12575":{"offset":0,"color":{"__isSmartRef__":true,"id":12576}},"12576":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12577":{"offset":0.4,"color":{"__isSmartRef__":true,"id":12578}},"12578":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12579":{"offset":0.6,"color":{"__isSmartRef__":true,"id":12580}},"12580":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12581":{"offset":1,"color":{"__isSmartRef__":true,"id":12582}},"12582":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12583":{"moveHorizontal":true},"12584":{"sourceObj":{"__isSmartRef__":true,"id":12552},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4582},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12585},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12585":{"source":{"__isSmartRef__":true,"id":12552},"target":{"__isSmartRef__":true,"id":4582}},"12586":{"sourceObj":{"__isSmartRef__":true,"id":12552},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4582},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12587},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12587":{"source":{"__isSmartRef__":true,"id":12552},"target":{"__isSmartRef__":true,"id":4582}},"12588":{"_Position":{"__isSmartRef__":true,"id":12589},"renderContextTable":{"__isSmartRef__":true,"id":12590},"_Extent":{"__isSmartRef__":true,"id":12591},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12592},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":12593},"_Fill":{"__isSmartRef__":true,"id":2394},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12589":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12590":{"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"},"12591":{"x":310.49672894514134,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12592":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12593":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12594":{"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"},"12595":{"morph":{"__isSmartRef__":true,"id":12455},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12596":{"resizeWidth":true,"adjustForNewBounds":true},"12597":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12598":{"x":310.49672894514134,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12599":{"renderContextTable":{"__isSmartRef__":true,"id":12600},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12601},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":12602},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12600":{"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"},"12601":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12602":{"x":310.49672894514134,"y":419.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12603":{"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"},"12604":{"morph":{"__isSmartRef__":true,"id":4582},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12605":{"adjustForNewBounds":true},"12606":{"x":1928.8877838765295,"y":444.07769545390755,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12607":{"x":310.49672894514134,"y":419.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12608":{"x":0,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12609":{"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Displays object properties and provides a workspace. The workspace's context is set to the last clicked element.","migrationLevel":4,"partName":"Explorer","changes":[{"__isSmartRef__":true,"id":12610},{"__isSmartRef__":true,"id":12612},{"__isSmartRef__":true,"id":12614},{"__isSmartRef__":true,"id":12616},{"__isSmartRef__":true,"id":12618},{"__isSmartRef__":true,"id":12620},{"__isSmartRef__":true,"id":12622},{"__isSmartRef__":true,"id":12624},{"__isSmartRef__":true,"id":12626},{"__isSmartRef__":true,"id":12628},{"__isSmartRef__":true,"id":12630},{"__isSmartRef__":true,"id":12632},{"__isSmartRef__":true,"id":12634},{"__isSmartRef__":true,"id":12636},{"__isSmartRef__":true,"id":12638},{"__isSmartRef__":true,"id":12640},{"__isSmartRef__":true,"id":12642},{"__isSmartRef__":true,"id":12644},{"__isSmartRef__":true,"id":12646},{"__isSmartRef__":true,"id":12648},{"__isSmartRef__":true,"id":12650},{"__isSmartRef__":true,"id":12652}],"revisionOnLoad":148785,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12610":{"date":{"__isSmartRef__":true,"id":12611},"author":"lauritz","message":"","id":"41FC1B0F-23FC-4454-A424-F141A1C09663"},"12611":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:46:05 GMT+0100 (Mitteleuropäische Zeit)"},"12612":{"date":{"__isSmartRef__":true,"id":12613},"author":"lauritz","message":"added >>expandAllNodes() which can expand complete trees, but not graphs.","id":"60178F3F-BA87-45A8-BD26-CF776AC017A7"},"12613":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:33:39 GMT+0100 (Mitteleuropäische Zeit)"},"12614":{"date":{"__isSmartRef__":true,"id":12615},"author":"lauritz","message":"decreased width a bit","id":"837B2170-C0B8-4FA1-99D3-D6A1EB465519"},"12615":{"isSerializedDate":true,"string":"Sat Dec 03 2011 00:36:19 GMT+0100 (Mitteleuropäische Zeit)"},"12616":{"date":{"__isSmartRef__":true,"id":12617},"author":"lauritz","message":"made expanding loop asynchronous","id":"5DFF88BC-08E6-43BD-B5B1-A9E8C93C7B19"},"12617":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:23:19 GMT+0100 (Mitteleuropäische Zeit)"},"12618":{"date":{"__isSmartRef__":true,"id":12619},"author":"lauritz","message":"corrected toggling","id":"BFC57057-2596-42D0-89A1-811C34FCF5E1"},"12619":{"isSerializedDate":true,"string":"Tue Nov 22 2011 22:44:25 GMT+0100 (Mitteleuropäische Zeit)"},"12620":{"date":{"__isSmartRef__":true,"id":12621},"author":"lauritz","message":"set a minimal extent","id":"D1DCDCB8-84EE-48D9-8AAE-3926E9D97D30"},"12621":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:39:16 GMT+0100 (Mitteleuropäische Zeit)"},"12622":{"date":{"__isSmartRef__":true,"id":12623},"author":"lauritz","message":"convenience preset by default: tree is expanded, workspace says \"this\"","id":"D364A417-6014-4266-8DF3-CEA313F15793"},"12623":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:18:29 GMT+0100 (Mitteleuropäische Zeit)"},"12624":{"date":{"__isSmartRef__":true,"id":12625},"author":"lauritz","message":"Disabled grabbing and dragging on other morphs as well."},"12625":{"isSerializedDate":true,"string":"Tue Oct 25 2011 20:23:10 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12626":{"date":{"__isSmartRef__":true,"id":12627},"author":"lauritz","message":"Disabled dragging and grabbing on tree nodes. Those should only be clickable."},"12627":{"isSerializedDate":true,"string":"Tue Oct 25 2011 19:25:14 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12628":{"date":{"__isSmartRef__":true,"id":12629},"author":"lauritz","message":"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor."},"12629":{"isSerializedDate":true,"string":"Tue Oct 25 2011 22:37:11 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12630":{"date":{"__isSmartRef__":true,"id":12631},"author":"jenslincke","message":"reset scales","id":"5E64592A-C360-44DD-BDAE-AD956FBA7675"},"12631":{"isSerializedDate":true,"string":"Fri Oct 28 2011 16:11:21 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12632":{"date":{"__isSmartRef__":true,"id":12633},"author":"jenslincke","message":"bring resize corner to front","id":"765AA8A1-AA38-433A-B800-FFF743B3B9EF"},"12633":{"isSerializedDate":true,"string":"Thu Nov 03 2011 16:10:26 GMT+0100 (Mitteleuropäische Zeit)"},"12634":{"date":{"__isSmartRef__":true,"id":12635},"author":"lauritz","message":"layout changes","id":"F09F5196-5203-405A-8EC3-1648A100FFF5"},"12635":{"isSerializedDate":true,"string":"Fri Nov 18 2011 23:54:38 GMT+0100 (Mitteleuropäische Zeit)"},"12636":{"date":{"__isSmartRef__":true,"id":12637},"author":"lauritz","message":"corrected the order of array elements","id":"B41E19A0-DDED-40DC-BD23-6AB94F76D76D"},"12637":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:44:29 GMT+0100 (Mitteleuropäische Zeit)"},"12638":{"date":{"__isSmartRef__":true,"id":12639},"author":"fbo","message":"fix Date bug","id":"64EDCB63-EB39-477E-A73D-E066101A8B21"},"12639":{"isSerializedDate":true,"string":"Sat Dec 03 2011 00:07:10 GMT+0100 (Mitteleuropäische Zeit)"},"12640":{"date":{"__isSmartRef__":true,"id":12641},"author":"lauritz","message":"significantly reduced a performance problem regarding \"long\" string properties, doesnt freeze anymore.","id":"EA85DB22-3FD3-4D13-B769-763C4483C445"},"12641":{"isSerializedDate":true,"string":"Tue Dec 06 2011 00:55:19 GMT+0100 (Mitteleuropäische Zeit)"},"12642":{"date":{"__isSmartRef__":true,"id":12643},"author":"lauritz","message":"clicking a node no longer resets the workspace content","id":"C8AE0678-08F5-4FFB-9662-77D7120DA285"},"12643":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:22:10 GMT+0100 (Mitteleuropäische Zeit)"},"12644":{"date":{"__isSmartRef__":true,"id":12645},"author":"lauritz","message":"renamed >>#expandAllNodes to >>#toggleAll","id":"D9931ABA-396B-4C81-9C7E-7C2712405803"},"12645":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:41:44 GMT+0100 (Mitteleuropäische Zeit)"},"12646":{"date":{"__isSmartRef__":true,"id":12647},"author":"lauritz","message":"asynchronous >>#toggleAll, because toggling is actually asynchronous and rendering as well...","id":"3B15F99C-CFD6-41FA-9778-D2BFBBD53B8D"},"12647":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:58:54 GMT+0100 (Mitteleuropäische Zeit)"},"12648":{"date":{"__isSmartRef__":true,"id":12649},"author":"lauritz","message":"cleaned up how all typeof stuff","id":"98CD54B3-3527-4C4C-8577-A0B7476D8718"},"12649":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:31:53 GMT+0100 (Mitteleuropäische Zeit)"},"12650":{"date":{"__isSmartRef__":true,"id":12651},"author":"lauritz","message":"","id":"183BD443-7A32-4E3B-8F6B-96473B0C4CB7"},"12651":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:35:42 GMT+0100 (Mitteleuropäische Zeit)"},"12652":{"date":{"__isSmartRef__":true,"id":12653},"author":"jenslincke","message":"style tweak","id":"C366B53C-40DC-445D-B882-F5F147CD349F"},"12653":{"isSerializedDate":true,"string":"Mon Jan 30 2012 14:04:58 GMT+0100 (Mitteleuropäische Zeit)"},"12654":{"x":2103,"y":462,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12655":{"x":178,"y":269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12656":{"explore":{"__isSmartRef__":true,"id":12657},"reset":{"__isSmartRef__":true,"id":12661},"inspect":{"__isSmartRef__":true,"id":12665},"toggleAll":{"__isSmartRef__":true,"id":12669}},"12657":{"varMapping":{"__isSmartRef__":true,"id":12658},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":12659},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12658":{"this":{"__isSmartRef__":true,"id":4582}},"12659":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12660}},"12660":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:25:04 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12661":{"varMapping":{"__isSmartRef__":true,"id":12662},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":12663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12662":{"this":{"__isSmartRef__":true,"id":4582}},"12663":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12664}},"12664":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:25:04 GMT+0200 (Mitteleuropäische Sommerzeit)"},"12665":{"varMapping":{"__isSmartRef__":true,"id":12666},"source":"function inspect(object) {\n // alias for explore\n this.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":12667},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12666":{"this":{"__isSmartRef__":true,"id":4582}},"12667":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12668}},"12668":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:04:54 GMT+0100 (Mitteleuropäische Zeit)"},"12669":{"varMapping":{"__isSmartRef__":true,"id":12670},"source":"function toggleAll() {\n this.explorer.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":12671},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12670":{"this":{"__isSmartRef__":true,"id":4582}},"12671":{"timestamp":{"__isSmartRef__":true,"id":12672},"user":"lauritz","tags":[]},"12672":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:40:45 GMT+0100 (Mitteleuropäische Zeit)"},"12673":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12674},"id":2,"renderContextTable":{"__isSmartRef__":true,"id":12680},"eventHandler":{"__isSmartRef__":true,"id":12681},"droppingEnabled":false,"halosEnabled":false,"_world":{"__isSmartRef__":true,"id":0},"eventsAreIgnored":true,"_HandStyle":"default","_PointerEvents":"none","_Position":{"__isSmartRef__":true,"id":12682},"priorExtent":{"__isSmartRef__":true,"id":12683},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__SourceModuleName__":"Global.lively.morphic.Events","internalClickedOnMorph":{"__isSmartRef__":true,"id":0},"carriesGrabbedMorphs":false,"lastScrollTime":1334830904774,"scrollFocusMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.HandMorph","withLayers":["Global.NoMagnetsLayer"]},"12674":{"_Position":{"__isSmartRef__":true,"id":12675},"renderContextTable":{"__isSmartRef__":true,"id":12676},"_Extent":{"__isSmartRef__":true,"id":12677},"_Fill":{"__isSmartRef__":true,"id":12678},"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12679},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12675":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12676":{"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"},"12677":{"x":2,"y":2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12678":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12679":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12680":{"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"},"12681":{"morph":{"__isSmartRef__":true,"id":12673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12682":{"x":806,"y":1193,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12683":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12684":{"_Position":{"__isSmartRef__":true,"id":12685},"renderContextTable":{"__isSmartRef__":true,"id":12686},"_Extent":{"__isSmartRef__":true,"id":12687},"_Fill":{"__isSmartRef__":true,"id":12688},"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12689},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12685":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12686":{"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"},"12687":{"x":3000,"y":4000,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12688":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12689":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12690":{"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","setScroll":"setScrollHTML"},"12691":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12692":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12693":{"x":1440,"y":6000,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12694":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"12695":{"submorphs":[{"__isSmartRef__":true,"id":12696}],"scripts":[],"id":"2E92C5C3-84F2-46C6-B62C-E6E44D63C485","shape":{"__isSmartRef__":true,"id":12725},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":12732},"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12733},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":12830},"eventHandler":{"__isSmartRef__":true,"id":12831},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"59692BC3-6C7B-4E23-B820-8699260EA722","486BB935-1313-4103-B2A8-642B19437478","18AFFD44-46CD-489E-B1D6-DED43E2B6B06","2608C892-2204-4981-9A87-8E749F8944AB","5535861F-4EA2-44AB-8A40-0538124E0AAC","16C292B3-86E8-4622-B516-27C48263B8CC","87731A20-D455-44D0-97E5-98A7CFD4E417","A17081E7-E597-47ED-BD32-6E4D206BD7D7","CFB4A44C-BFEA-4584-BCBA-AE2A56739200","76B3DD9B-8D01-42BA-A574-AB99D5F899BB","1EBC5512-8F54-4B24-998C-69A285EC8533","DD1165C7-6C1A-4361-A4AE-FCF6F31152FD","4D6D36E8-48F3-408A-B03C-202E4DC182BD","5F3B3E0F-BBC6-4DDA-BAA0-7EFC05FF2011","E0A6B33B-767A-4532-9021-892414520200","F5F5E2B1-5FF0-4E09-B323-AE88A3920B8D","0C7E832A-A741-430F-B295-8BC181D066FE","472AED3B-CB76-49BD-BF49-354A2D568F86","A7C52F65-D140-4791-880F-F7584C7BB570","3516412B-8B36-4E52-9416-6B7FB358BDC2","1840CACC-078C-4795-AD3F-E9D6F8D557A0","1FEDCA25-0131-46FA-840F-DC5F1B05C6CA","C620CED3-0AE9-4097-9AA7-2706A042F9C9","679A861B-40E0-4DB2-B22F-95B454C6978D","FEF39B3C-E634-4825-BAB8-2D44FE647B03"],"isBeingDragged":false,"priorExtent":{"__isSmartRef__":true,"id":12832},"layout":{"__isSmartRef__":true,"id":12833},"distanceToDragEvent":{"__isSmartRef__":true,"id":12834},"prevScroll":[0,0],"moved":true,"_Rotation":0,"_Scale":1,"headRevision":146469,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12835},"__LivelyClassName__":"lively.morphic.Box"},"12696":{"submorphs":[{"__isSmartRef__":true,"id":12697}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12713},"id":"372E5A8D-CC8D-4240-85A1-557995605B48","renderContextTable":{"__isSmartRef__":true,"id":12718},"eventHandler":{"__isSmartRef__":true,"id":12719},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12720},"name":"ProgressIndicator","priorExtent":{"__isSmartRef__":true,"id":12721},"showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":12722},"partsBinMetaInfo":{"__isSmartRef__":true,"id":12723},"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[520,"071F18BE-FF28-40F5-ACAD-1916E0D25C38","DF185A10-743D-45FC-B9C2-76E12D908BCF","BF125D2C-596A-4C1E-A5F8-DAE4801E9497","3CEE8CFF-B8F1-4B4B-A405-CB583080252A","D0652878-8F9C-4591-8A82-296898AACDB6","31441DDF-2220-43BE-A99F-69E1FEC68030","14A90039-0D3E-46DC-8445-D42B8E02EB42","681EF5DE-A344-4114-B2F3-B96CE3872524","C0381116-5116-4F33-B082-A411D0E4534E","24E9581E-B008-46EE-9CBC-D5190E100D98","C69D1041-2C5E-48FE-B04C-04E66450658A","4830945B-4FFF-4564-9424-34D7995DAE60","8602C233-B3E7-4682-9B0E-D7549761D934","B4E0E11F-2BED-462E-B708-89D63971856E","EE0144C2-D016-4390-8A67-4E7DEF171C83","F44DF6E4-5F27-440E-AB5F-3721C0A10CA6","73FC6648-DAAF-4673-8CF4-7DA219513F22","B78EB1B5-780C-45F7-B0A7-B988B52B1FF1","DFDB8CD1-72F7-40F4-849B-1F9B866277AB","66111105-B1FC-41F7-BF70-D45118C9E09F","02420416-1E35-4831-AABB-91CD0460CA1A","7C6B2EB2-4510-4A8E-BAFF-5CF0040DD7F5","0503F5A1-1732-4610-9A5A-920D658CA766","07C5AE03-36AD-4849-BACD-27D7D9A2CCF2","9FFF9D73-931C-404C-AA4B-5AC2E7C53504"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":12695},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":12724},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image"},"12697":{"submorphs":[],"scripts":[],"id":"12AB5DB7-234E-4B52-AA5A-082926A0BC6F","shape":{"__isSmartRef__":true,"id":12698},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":12704},"_MaxTextWidth":257,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":12701},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"loadedMorphName","partsBinMetaInfo":{"__isSmartRef__":true,"id":12705},"textChunks":[{"__isSmartRef__":true,"id":12706}],"charsReplaced":"MorphName","lastFindLoc":18,"priorSelectionRange":[9,0],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":12708},"renderContextTable":{"__isSmartRef__":true,"id":12709},"eventHandler":{"__isSmartRef__":true,"id":12710},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":12711},"_ClipMode":"visible","derivationIds":[355,"023045B3-2D6B-4425-89FB-F4806D527BE0","DC0C2365-868C-41AE-8369-51C31E91493E","C6D9D314-86A1-4015-970B-F6787F535E1A","6AA4552E-2E85-447E-9033-99D5AA1A94BC","D94BE49C-8A3E-4F1F-BF28-FEDD9B40D213","AA8F0470-654C-4AA2-8135-4607F5429AC5","E0BAABCC-FFB2-4EDF-BAE5-C63CC99B6A97","1A86AE17-73AE-442E-AB36-DD90C6DFC8BC","EF750075-E964-4CD3-B6A4-161511E1D058","CED69CBF-FFA5-45E7-B333-FBACE4F278AC","E56978C1-7424-4C10-8168-11FD3237B540","D5AB2532-A4DC-42D6-AF17-99CBBCEAA848","245866CB-598A-4172-A3A0-A06D4D26C6AD","43B0F12E-5793-43AA-80E1-496774E0EBA6","1B776A8C-0413-475F-8EBD-120BBD91D2BB","F84F2C9A-8003-4E81-833A-83F48C92F3B8","3124B389-9FA4-4348-BC5D-0DFF9C59CD1B","1A1BCBAC-D7CC-4BAE-B8C2-7C693F7327A1","1CB201BA-5E0B-4771-821A-139FA2AEFBC2","195520FA-4816-47A4-B0F5-BA890AFD9DF9","0D15F28A-24C9-46B7-89C5-6D2354728AC1","316FE9D3-62EC-4FD6-9B0F-FFA622B79575","739F3743-9BE1-48C8-813D-C0BFB0DCACA6","01877B3B-7DA7-4222-B011-7B5F4E501862","B8FE7DEE-9568-4BE6-BA12-EA674BA79E08"],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":12696},"_MinTextWidth":257,"_MinTextHeight":null,"previousSelection":[6,6],"_Align":"center","distanceToDragEvent":{"__isSmartRef__":true,"id":12712},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"12698":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":12699},"_Extent":{"__isSmartRef__":true,"id":12700},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12701},"renderContextTable":{"__isSmartRef__":true,"id":12702},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12703},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12699":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12700":{"x":257,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12701":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12702":{"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"},"12703":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12704":{"x":-109,"y":38,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12705":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12706":{"style":{"__isSmartRef__":true,"id":12707},"chunkOwner":{"__isSmartRef__":true,"id":12697},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"loading part","__LivelyClassName__":"lively.morphic.TextChunk"},"12707":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12708":{"x":257,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12709":{"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","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","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12710":{"morph":{"__isSmartRef__":true,"id":12697},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12711":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12712":{"x":179,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12713":{"_Position":{"__isSmartRef__":true,"id":12714},"renderContextTable":{"__isSmartRef__":true,"id":12715},"_Extent":{"__isSmartRef__":true,"id":12716},"_ImageURL":"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12717},"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Image"},"12714":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12715":{"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","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"12716":{"x":31,"y":31,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12717":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12718":{"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"},"12719":{"morph":{"__isSmartRef__":true,"id":12696},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12720":{"x":113.5,"y":81,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12721":{"x":30,"y":31,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12722":{"x":39,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12723":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12724":{"centeredHorizontal":true,"centeredVertical":true},"12725":{"position":{"__isSmartRef__":true,"id":12726},"_Extent":{"__isSmartRef__":true,"id":12727},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":12728},"_Fill":{"__isSmartRef__":true,"id":12729},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":12730},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12731},"_BorderRadius":8.515,"_Opacity":0.8146,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12726":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12727":{"x":266,"y":223,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12728":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"12729":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12730":{"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"},"12731":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12732":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12733":{"partsSpaceName":"PartsBin/iPadWidgets","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a placeholder to indicate that a morph is being loaded. It will be replaced by the morph as soon as the requested morph finished loading.","migrationLevel":4,"partName":"LoadingMorph","changes":[{"__isSmartRef__":true,"id":12734},{"__isSmartRef__":true,"id":12736},{"__isSmartRef__":true,"id":12738},{"__isSmartRef__":true,"id":12740},{"__isSmartRef__":true,"id":12742},{"__isSmartRef__":true,"id":12744},{"__isSmartRef__":true,"id":12746},{"__isSmartRef__":true,"id":12748},{"__isSmartRef__":true,"id":12750},{"__isSmartRef__":true,"id":12752},{"__isSmartRef__":true,"id":12754},{"__isSmartRef__":true,"id":12756},{"__isSmartRef__":true,"id":12758},{"__isSmartRef__":true,"id":12760},{"__isSmartRef__":true,"id":12762},{"__isSmartRef__":true,"id":12764},{"__isSmartRef__":true,"id":12766},{"__isSmartRef__":true,"id":12768},{"__isSmartRef__":true,"id":12770},{"__isSmartRef__":true,"id":12772},{"__isSmartRef__":true,"id":12774},{"__isSmartRef__":true,"id":12776},{"__isSmartRef__":true,"id":12778},{"__isSmartRef__":true,"id":12780},{"__isSmartRef__":true,"id":12782},{"__isSmartRef__":true,"id":12784},{"__isSmartRef__":true,"id":12786},{"__isSmartRef__":true,"id":12788},{"__isSmartRef__":true,"id":12790},{"__isSmartRef__":true,"id":12792},{"__isSmartRef__":true,"id":12794},{"__isSmartRef__":true,"id":12796},{"__isSmartRef__":true,"id":12798},{"__isSmartRef__":true,"id":12800},{"__isSmartRef__":true,"id":12802},{"__isSmartRef__":true,"id":12804},{"__isSmartRef__":true,"id":12806},{"__isSmartRef__":true,"id":12808},{"__isSmartRef__":true,"id":12810},{"__isSmartRef__":true,"id":12812},{"__isSmartRef__":true,"id":12814},{"__isSmartRef__":true,"id":12816},{"__isSmartRef__":true,"id":12818},{"__isSmartRef__":true,"id":12820},{"__isSmartRef__":true,"id":12822},{"__isSmartRef__":true,"id":12824},{"__isSmartRef__":true,"id":12826},{"__isSmartRef__":true,"id":12828}],"revisionOnLoad":151069,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12734":{"date":{"__isSmartRef__":true,"id":12735},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"12735":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:02:04 GMT+0100 (Mitteleuropäische Zeit)"},"12736":{"date":{"__isSmartRef__":true,"id":12737},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"12737":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:43:10 GMT+0100 (Mitteleuropäische Zeit)"},"12738":{"date":{"__isSmartRef__":true,"id":12739},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"12739":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:36:14 GMT+0100 (Mitteleuropäische Zeit)"},"12740":{"date":{"__isSmartRef__":true,"id":12741},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"12741":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:23:04 GMT+0100 (Mitteleuropäische Zeit)"},"12742":{"date":{"__isSmartRef__":true,"id":12743},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"12743":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:45 GMT+0100 (Mitteleuropäische Zeit)"},"12744":{"date":{"__isSmartRef__":true,"id":12745},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"12745":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:10 GMT+0100 (Mitteleuropäische Zeit)"},"12746":{"date":{"__isSmartRef__":true,"id":12747},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"12747":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:56:54 GMT+0100 (Mitteleuropäische Zeit)"},"12748":{"date":{"__isSmartRef__":true,"id":12749},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"12749":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:51:05 GMT+0100 (Mitteleuropäische Zeit)"},"12750":{"date":{"__isSmartRef__":true,"id":12751},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"12751":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:47:19 GMT+0100 (Mitteleuropäische Zeit)"},"12752":{"date":{"__isSmartRef__":true,"id":12753},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"12753":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:46:25 GMT+0100 (Mitteleuropäische Zeit)"},"12754":{"date":{"__isSmartRef__":true,"id":12755},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"12755":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:45:05 GMT+0100 (Mitteleuropäische Zeit)"},"12756":{"date":{"__isSmartRef__":true,"id":12757},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"12757":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:37:15 GMT+0100 (Mitteleuropäische Zeit)"},"12758":{"date":{"__isSmartRef__":true,"id":12759},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"12759":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:35:29 GMT+0100 (Mitteleuropäische Zeit)"},"12760":{"date":{"__isSmartRef__":true,"id":12761},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"12761":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:31:52 GMT+0100 (Mitteleuropäische Zeit)"},"12762":{"date":{"__isSmartRef__":true,"id":12763},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"12763":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:14:10 GMT+0100 (Mitteleuropäische Zeit)"},"12764":{"date":{"__isSmartRef__":true,"id":12765},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"12765":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:02:56 GMT+0100 (Mitteleuropäische Zeit)"},"12766":{"date":{"__isSmartRef__":true,"id":12767},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"12767":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:01:50 GMT+0100 (Mitteleuropäische Zeit)"},"12768":{"date":{"__isSmartRef__":true,"id":12769},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"12769":{"isSerializedDate":true,"string":"Wed Feb 22 2012 10:55:44 GMT+0100 (Mitteleuropäische Zeit)"},"12770":{"date":{"__isSmartRef__":true,"id":12771},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"12771":{"isSerializedDate":true,"string":"Fri Feb 10 2012 09:45:55 GMT+0100 (Mitteleuropäische Zeit)"},"12772":{"date":{"__isSmartRef__":true,"id":12773},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"12773":{"isSerializedDate":true,"string":"Wed Feb 08 2012 11:41:50 GMT+0100 (Mitteleuropäische Zeit)"},"12774":{"date":{"__isSmartRef__":true,"id":12775},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"12775":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:13:49 GMT+0100 (Mitteleuropäische Zeit)"},"12776":{"date":{"__isSmartRef__":true,"id":12777},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"12777":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:22:07 GMT+0100 (Mitteleuropäische Zeit)"},"12778":{"date":{"__isSmartRef__":true,"id":12779},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"12779":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:14 GMT+0100 (Mitteleuropäische Zeit)"},"12780":{"date":{"__isSmartRef__":true,"id":12781},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"12781":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:54:35 GMT+0100 (Mitteleuropäische Zeit)"},"12782":{"date":{"__isSmartRef__":true,"id":12783},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"12783":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:26:01 GMT+0100 (Mitteleuropäische Zeit)"},"12784":{"date":{"__isSmartRef__":true,"id":12785},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"12785":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:04:01 GMT+0100 (Mitteleuropäische Zeit)"},"12786":{"date":{"__isSmartRef__":true,"id":12787},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"12787":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:28:30 GMT+0100 (Mitteleuropäische Zeit)"},"12788":{"date":{"__isSmartRef__":true,"id":12789},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"12789":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:32:58 GMT+0100 (Mitteleuropäische Zeit)"},"12790":{"date":{"__isSmartRef__":true,"id":12791},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"12791":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:41:00 GMT+0100 (Mitteleuropäische Zeit)"},"12792":{"date":{"__isSmartRef__":true,"id":12793},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"12793":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:24:30 GMT+0100 (Mitteleuropäische Zeit)"},"12794":{"date":{"__isSmartRef__":true,"id":12795},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"12795":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:26:23 GMT+0100 (Mitteleuropäische Zeit)"},"12796":{"date":{"__isSmartRef__":true,"id":12797},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"12797":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:48:04 GMT+0100 (Mitteleuropäische Zeit)"},"12798":{"date":{"__isSmartRef__":true,"id":12799},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"12799":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:53:49 GMT+0100 (Mitteleuropäische Zeit)"},"12800":{"date":{"__isSmartRef__":true,"id":12801},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"12801":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:49:48 GMT+0100 (Mitteleuropäische Zeit)"},"12802":{"date":{"__isSmartRef__":true,"id":12803},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"12803":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:58:43 GMT+0100 (Mitteleuropäische Zeit)"},"12804":{"date":{"__isSmartRef__":true,"id":12805},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"12805":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:04:28 GMT+0100 (Mitteleuropäische Zeit)"},"12806":{"date":{"__isSmartRef__":true,"id":12807},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"12807":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:10:27 GMT+0100 (Mitteleuropäische Zeit)"},"12808":{"date":{"__isSmartRef__":true,"id":12809},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"12809":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:31:50 GMT+0100 (Mitteleuropäische Zeit)"},"12810":{"date":{"__isSmartRef__":true,"id":12811},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"12811":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:38:26 GMT+0100 (Mitteleuropäische Zeit)"},"12812":{"date":{"__isSmartRef__":true,"id":12813},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"12813":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:44:11 GMT+0100 (Mitteleuropäische Zeit)"},"12814":{"date":{"__isSmartRef__":true,"id":12815},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"12815":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:48:14 GMT+0100 (Mitteleuropäische Zeit)"},"12816":{"date":{"__isSmartRef__":true,"id":12817},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"12817":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:49:47 GMT+0100 (Mitteleuropäische Zeit)"},"12818":{"date":{"__isSmartRef__":true,"id":12819},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"12819":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:59:48 GMT+0100 (Mitteleuropäische Zeit)"},"12820":{"date":{"__isSmartRef__":true,"id":12821},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"12821":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:02:33 GMT+0100 (Mitteleuropäische Zeit)"},"12822":{"date":{"__isSmartRef__":true,"id":12823},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"12823":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:03:42 GMT+0100 (Mitteleuropäische Zeit)"},"12824":{"date":{"__isSmartRef__":true,"id":12825},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"12825":{"isSerializedDate":true,"string":"Thu Feb 09 2012 20:20:11 GMT+0100 (Mitteleuropäische Zeit)"},"12826":{"date":{"__isSmartRef__":true,"id":12827},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"12827":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:37:34 GMT+0100 (Mitteleuropäische Zeit)"},"12828":{"date":{"__isSmartRef__":true,"id":12829},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"12829":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:29 GMT+0100 (Mitteleuropäische Zeit)"},"12830":{"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"},"12831":{"morph":{"__isSmartRef__":true,"id":12695},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12832":{"x":266,"y":223,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12833":{"adjustForNewBounds":true},"12834":{"x":171,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12835":{"loadPart":{"__isSmartRef__":true,"id":12836},"loadFinished":{"__isSmartRef__":true,"id":12840},"loadPartByName":{"__isSmartRef__":true,"id":12844}},"12836":{"varMapping":{"__isSmartRef__":true,"id":12837},"source":"function loadPart(partItem, isAsync) {\n this.partItem = partItem;\n \n this.openInWorld();\n if(partItem.part) {\n this.setExtent(partItem.part.getExtent());\n }\n this.align(this.bounds().center(), $world.visibleBounds().center());\n \n \n if(typeof isAsync === \"function\") {\n this.callback = isAsync;\n }\n\n connect(partItem, 'part', this, \"loadFinished\");\n\n partItem.loadPart(isAsync);\n\n return partItem.part;\n\n}","funcProperties":{"__isSmartRef__":true,"id":12838},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12837":{"this":{"__isSmartRef__":true,"id":12695}},"12838":{"timestamp":{"__isSmartRef__":true,"id":12839},"user":"sstamm","tags":[]},"12839":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:18 GMT+0100 (Mitteleuropäische Zeit)"},"12840":{"varMapping":{"__isSmartRef__":true,"id":12841},"source":"function loadFinished(part) {\n if(this.owner === $world.firstHand()) {\n $world.firstHand().removeAllMorphs();\n } else {\n this.owner.addMorph(part);\n part.align(part.bounds().center(), this.bounds().center());\n this.remove();\n }\n disconnect(this.partItem, 'part', this, \"loadFinished\");\n if(this.callback) {\n this.callback(part);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12842},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12841":{"this":{"__isSmartRef__":true,"id":12695}},"12842":{"timestamp":{"__isSmartRef__":true,"id":12843},"user":"sstamm","tags":[]},"12843":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:01:53 GMT+0100 (Mitteleuropäische Zeit)"},"12844":{"varMapping":{"__isSmartRef__":true,"id":12845},"source":"function loadPartByName(partName, optPartsSpaceName, isAsync) {\n var partItem = lively.PartsBin.getPartItem(partName, optPartsSpaceName);\n return this.loadPart(partItem, isAsync);\n}","funcProperties":{"__isSmartRef__":true,"id":12846},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12845":{"this":{"__isSmartRef__":true,"id":12695}},"12846":{"timestamp":{"__isSmartRef__":true,"id":12847},"user":"sstamm","tags":[]},"12847":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:03:18 GMT+0100 (Mitteleuropäische Zeit)"},"12848":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converter":null,"converterString":null,"updaterString":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","varMapping":{"__isSmartRef__":true,"id":12849},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12850},"__LivelyClassName__":"AttributeConnection"},"12849":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"12850":{"updater":{"__isSmartRef__":true,"id":12851}},"12851":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":12849},"source":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12852},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12852":{},"12853":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/projects/BP2012/Research/ScriptEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"isSimplifiedRegistry":true}}]]>